Ver código fonte

org-find-exact-heading-in-directory: Use full path

* lisp/org.el (org-find-exact-heading-in-directory): Use full path for
files.

When the path is not included, `org-find-exact-heading-in-directory'
will fail when the current value of `default-directory' is different
from the argument DIR.

TINYCHANGE
Kyle Meyer 11 anos atrás
pai
commit
d3f210676c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -16136,7 +16136,7 @@ a priority cookie and tags in the standard locations."
   "Find Org node headline HEADING in all .org files in directory DIR.
 When the target headline is found, return a marker to this location."
   (let ((files (directory-files (or dir default-directory)
-				nil "\\`[^.#].*\\.org\\'"))
+				t "\\`[^.#].*\\.org\\'"))
         file visiting m buffer)
     (catch 'found
       (while (setq file (pop files))