lisp/ol.el (org-link-open): Use let-bound :follow function

TINYCHANGE
This commit is contained in:
Joseph Turner 2024-01-15 00:24:30 -08:00 committed by Ihor Radchenko
parent 87da1ff15b
commit 0254854eea
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 2 additions and 2 deletions

View File

@ -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.