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.
This commit is contained in:
David Maus 2011-12-18 20:28:00 +01:00 committed by Bastien Guerry
parent a2cdccf5cb
commit 094173b45d
1 changed files with 2 additions and 1 deletions

View File

@ -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))