diff options
author | David Maus <dmaus@ictsoc.de> | 2011-12-18 20:28:00 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-01-03 09:13:14 +0100 |
commit | 094173b45d034799951c6b77b29b84368f5ad734 (patch) | |
tree | 11b395f33e7a57fb0de93ea11f3431c90e022703 | |
parent | a2cdccf5cbcef919b0e3675ecf26f625a2052717 (diff) | |
download | org-mode-094173b45d034799951c6b77b29b84368f5ad734.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)) |