emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] org-find-exact-heading-in-directory: Use full path
@ 2014-04-29 19:00 Kyle Meyer
  2014-05-06  9:31 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Kyle Meyer @ 2014-04-29 19:00 UTC (permalink / raw)
  To: emacs-orgmode

* 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
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index d20bb3d..24f694b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16133,7 +16133,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))
-- 
1.9.2

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] org-find-exact-heading-in-directory: Use full path
  2014-04-29 19:00 [PATCH] org-find-exact-heading-in-directory: Use full path Kyle Meyer
@ 2014-05-06  9:31 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-05-06  9:31 UTC (permalink / raw)
  To: Kyle Meyer; +Cc: emacs-orgmode

Hi Kyle,

Kyle Meyer <kyle@kyleam.com> writes:

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

Applied, thanks,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-06 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-29 19:00 [PATCH] org-find-exact-heading-in-directory: Use full path Kyle Meyer
2014-05-06  9:31 ` Bastien

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).