0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-22 10:10:42 +00:00

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

View file

@ -10405,7 +10405,8 @@ on the system \"/user@host:\"."
(or (funcall org-refile-target-verify-function) (or (funcall org-refile-target-verify-function)
(throw 'next t)))) (throw 'next t))))
(when (and (looking-at org-complex-heading-regexp) (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 (setq level (org-reduced-level
(- (match-end 1) (match-beginning 1))) (- (match-end 1) (match-beginning 1)))
txt (org-link-display-format (match-string 4)) txt (org-link-display-format (match-string 4))