mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-25 22:32:51 +00:00
lisp/ol.el (org-link-open): Use let-bound :follow function
TINYCHANGE
This commit is contained in:
parent
87da1ff15b
commit
0254854eea
|
@ -1145,9 +1145,9 @@ for internal and \"file\" links, or stored as a parameter in
|
|||
;; argument, as it was mandatory before Org 9.4. This is
|
||||
;; deprecated, but support it for now.
|
||||
(condition-case nil
|
||||
(funcall (org-link-get-parameter type :follow) path arg)
|
||||
(funcall f path arg)
|
||||
(wrong-number-of-arguments
|
||||
(funcall (org-link-get-parameter type :follow) path)))))))))
|
||||
(funcall f path)))))))))
|
||||
|
||||
(defun org-link-open-from-string (s &optional arg)
|
||||
"Open a link in the string S, as if it was in Org mode.
|
||||
|
|
Loading…
Reference in a new issue