From 094173b45d034799951c6b77b29b84368f5ad734 Mon Sep 17 00:00:00 2001 From: David Maus Date: Sun, 18 Dec 2011 20:28:00 +0100 Subject: [PATCH] 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 . Headlines with just a keyword are ignored as possible refile target. --- lisp/org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 8a1fbd398..9980d03d7 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))