summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToby S. Cubitt <tsc25@cantab.net>2012-02-08 10:21:13 +0100
committerBastien Guerry <bzg@altern.org>2012-02-13 16:19:06 +0100
commit30f06ae2b55513f55212931a600c8cb1dfa7378a (patch)
treebe5b3aabdc78cf9335b6994c73ff25a3e0ef8b5c
parent762c3047a89f967f58e93c9cdd24aff36405afc1 (diff)
downloadorg-mode-30f06ae2b55513f55212931a600c8cb1dfa7378a.tar.gz
Fix bug in org-goto `outline-path-completion' interface
* lisp/org.el (org-goto): call org-refile-get-location with NO-EXCLUDE argument set, otherwise not only are headlines in the current subtree excluded, but it throws an error if point happens not to be within a subtree (e.g. at start of buffer). TINYCHANGE
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 2a02c4a..8b24cf2 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6843,7 +6843,7 @@ hierarchy above."
(selected-point
(if (eq interface 'outline)
(car (org-get-location (current-buffer) org-goto-help))
- (let ((pa (org-refile-get-location "Goto")))
+ (let ((pa (org-refile-get-location "Goto" nil nil t)))
(org-refile-check-position pa)
(nth 3 pa)))))
(if selected-point