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:
parent
a2cdccf5cb
commit
094173b45d
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue