From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: [PATCH] org-find-exact-heading-in-directory: Use full path Date: Tue, 29 Apr 2014 15:00:37 -0400 Message-ID: <87fvkw6jvu.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfDGr-00038s-Pe for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 15:00:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfDGj-0005kH-Ml for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 15:00:49 -0400 Received: from mail-qc0-f169.google.com ([209.85.216.169]:52713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfDGj-0005k0-Cw for emacs-orgmode@gnu.org; Tue, 29 Apr 2014 15:00:41 -0400 Received: by mail-qc0-f169.google.com with SMTP id m20so733207qcx.28 for ; Tue, 29 Apr 2014 12:00:39 -0700 (PDT) Received: from localhost (nat-130-132-173-5.central.yale.edu. [130.132.173.5]) by mx.google.com with ESMTPSA id o11sm41083802qay.39.2014.04.29.12.00.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Apr 2014 12:00:38 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * 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