Function: org-docview-open
org-docview-open is a byte-compiled function defined in
ol-docview.el.gz.
Signature
(org-docview-open LINK _)
Documentation
Open docview: LINK.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ol-docview.el.gz
(defun org-docview-open (link _)
"Open docview: LINK."
(string-match "\\(.*?\\)\\(?:::\\([0-9]+\\)\\)?$" link)
(let ((path (match-string 1 link))
(page (and (match-beginning 2)
(string-to-number (match-string 2 link)))))
;; Let Org mode open the file (in-emacs = 1) to ensure
;; org-link-frame-setup is respected.
(if (file-exists-p path)
(org-open-file path 1)
(error "No such file: %s" path))
(when page (doc-view-goto-page page))))