Function: org-docview-store-link

org-docview-store-link is a byte-compiled function defined in ol-docview.el.gz.

Signature

(org-docview-store-link &optional INTERACTIVE?)

Documentation

Store a link to a docview buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ol-docview.el.gz
(defun org-docview-store-link (&optional _interactive?)
  "Store a link to a docview buffer."
  (when (eq major-mode 'doc-view-mode)
    ;; This buffer is in doc-view-mode
    (let* ((path buffer-file-name)
	   (page (image-mode-window-get 'page))
	   (link (concat "docview:" path "::" (number-to-string page))))
      (org-link-store-props
       :type "docview"
       :link link
       :description path))))