diff options
author | David Maus <dmaus@ictsoc.de> | 2011-12-18 20:28:00 +0100 |
---|---|---|
committer | David Maus <dmaus@ictsoc.de> | 2011-12-18 20:28:00 +0100 |
commit | 0c09a9e7683c79c8525f87ccd1b7ba0255a94b1c (patch) | |
tree | fe9a8fe1b61d5483426ebad3932cc00e3fb649d4 | |
parent | 0b7ae6ffb940c452e6553d0ed1a5b06730d5a3bc (diff) | |
download | org-mode-0c09a9e7683c79c8525f87ccd1b7ba0255a94b1c.tar.gz |
Ignore headlines without a true headline
* org.el (org-refile-get-targets): Ignore headlines without a true
headline.
This fixes a bug reported by Nathan Neff in
<http://article.gmane.org/gmane.emacs.orgmode/50035>.
Headlines with just a keyword are ignored as possible refile target.
-rw-r--r-- | lisp/org.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 8a1fbd3..9980d03 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10405,7 +10405,8 @@ on the system \"/user@host:\"." (or (funcall org-refile-target-verify-function) (throw 'next t)))) (when (and (looking-at org-complex-heading-regexp) - (not (member (match-string 4) excluded-entries))) + (not (member (match-string 4) excluded-entries)) + (match-string 4)) (setq level (org-reduced-level (- (match-end 1) (match-beginning 1))) txt (org-link-display-format (match-string 4)) |