diff options
| -rw-r--r-- | lisp/pdf-links.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/pdf-links.el b/lisp/pdf-links.el index 24baa3c..6c8fd62 100644 --- a/lisp/pdf-links.el +++ b/lisp/pdf-links.el @@ -369,7 +369,12 @@ Wraps the URI in \[\[ ... \]\] and calls `org-open-link-from-string' on the resulting string." (cl-check-type uri string) (message "Opening `%s' with Org" uri) - (org-open-link-from-string (format "[[%s]]" uri))) + (cond + ((fboundp 'org-link-open-from-string) + (org-link-open-from-string (format "[[%s]]" uri))) + ;; For Org 9.2 and older + ((fboundp 'org-open-link-from-string) + (org-open-link-from-string (format "[[%s]]" uri))))) (provide 'pdf-links) |
