Function: preview-inactive-string

preview-inactive-string is a byte-compiled function defined in preview.el.

Signature

(preview-inactive-string OV)

Documentation

Generate before-string for an inactive preview overlay OV.

This is for overlays where the source text has been clicked visible. For efficiency reasons it is expected that the buffer is already selected and unnarrowed.

Source Code

;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-inactive-string (ov)
  "Generate before-string for an inactive preview overlay OV.
This is for overlays where the source text has been clicked
visible.  For efficiency reasons it is expected that the buffer
is already selected and unnarrowed."
  (concat
   (preview-make-clickable (overlay-get ov 'preview-map)
                           (if preview-leave-open-previews-visible
                               (overlay-get ov 'preview-image)
                             preview-icon)
                           "\
%s redisplays preview
%s more options")
;; icon on separate line only for stuff starting on its own line
   (with-current-buffer (overlay-buffer ov)
     (save-excursion
       (save-restriction
         (widen)
         (goto-char (overlay-start ov))
         (if (bolp) "\n" ""))))))