summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-03-20 15:44:44 +0100
committerBastien Guerry <bzg@altern.org>2012-03-20 15:44:44 +0100
commitc73f32c14a6d2fd7732c73bc780b88f869dff61f (patch)
tree3fece4f9e6fee61839d753655edf27424b66c41a
parent1987412be683bbff9a4701fc7ca63763e564bf29 (diff)
downloadorg-mode-c73f32c14a6d2fd7732c73bc780b88f869dff61f.tar.gz
org.el: Don't allow creation of parents when using refile as goto.
* org.el (org-refile): Don't allow creation of parents when using the refile command to go to a headline. TINYCHANGE
-rw-r--r--lisp/org.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 5028c43..a1eb9d8 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10642,7 +10642,8 @@ prefix argument (`C-u C-u C-u C-c C-w')."
(t (concat "Refile subtree \""
heading-text "\" to")))
default-buffer
- org-refile-allow-creating-parent-nodes
+ (and (not (equal '(4) goto))
+ org-refile-allow-creating-parent-nodes)
goto))))))
(setq file (nth 1 it)
re (nth 2 it)