diff options
author | Kyle Meyer <kyle@kyleam.com> | 2022-11-29 23:05:53 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2022-11-29 23:05:53 -0500 |
commit | 0625651e8a61c9effc31ff771f15885a3a37c6e6 (patch) | |
tree | db4c09e8ef119ad4a9a4028c5e615fd58d2dee69 /lisp/org/ol-docview.el | |
parent | edd64e64a389e0f0e6ce670846d4fae79a9d8b35 (diff) | |
download | emacs-0625651e8a61c9effc31ff771f15885a3a37c6e6.tar.gz emacs-0625651e8a61c9effc31ff771f15885a3a37c6e6.tar.bz2 emacs-0625651e8a61c9effc31ff771f15885a3a37c6e6.zip |
Update to Org 9.6-3-ga4d38e
Diffstat (limited to 'lisp/org/ol-docview.el')
-rw-r--r-- | lisp/org/ol-docview.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/org/ol-docview.el b/lisp/org/ol-docview.el index 6ea224c76c8..7dbeb0ada5c 100644 --- a/lisp/org/ol-docview.el +++ b/lisp/org/ol-docview.el @@ -4,7 +4,7 @@ ;; Author: Jan Böcker <jan.boecker at jboecker dot de> ;; Keywords: outlines, hypermedia, calendar, wp -;; Homepage: https://orgmode.org +;; URL: https://orgmode.org ;; ;; This file is part of GNU Emacs. ;; @@ -42,6 +42,8 @@ ;;; Code: +(require 'org-macs) +(org-assert-version) (require 'doc-view) (require 'ol) @@ -75,7 +77,9 @@ (string-to-number (match-string 2 link))))) ;; Let Org mode open the file (in-emacs = 1) to ensure ;; org-link-frame-setup is respected. - (org-open-file path 1) + (if (file-exists-p path) + (org-open-file path 1) + (error "No such file: %s" path)) (when page (doc-view-goto-page page)))) (defun org-docview-store-link () |