branch: externals/org
commit 20ab29117c80a177761f84d23179134998ce7447
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    * lisp/ol.el (org-link-open-as-file): Document function arguments
---
 lisp/ol.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/ol.el b/lisp/ol.el
index a0de877406..e684b9504e 100644
--- a/lisp/ol.el
+++ b/lisp/ol.el
@@ -1334,9 +1334,11 @@ priority cookie or tag."
          (org-link--normalize-string
           (or string (org-get-heading t t t t)))))
 
-(defun org-link-open-as-file (path arg)
+(defun org-link-open-as-file (path in-emacs)
   "Pretend PATH is a file name and open it.
 
+IN-EMACS is passed to `org-open-file'.
+
 According to \"file\"-link syntax, PATH may include additional
 search options, separated from the file name with \"::\".
 
@@ -1350,7 +1352,7 @@ This function is meant to be used as a possible tool for
        (dired file-name)
       (apply #'org-open-file
             file-name
-            arg
+            in-emacs
             (cond ((not option) nil)
                   ((string-match-p "\\`[0-9]+\\'" option)
                    (list (string-to-number option)))

Reply via email to