Explorar o código

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
Bastien Guerry %!s(int64=13) %!d(string=hai) anos
pai
achega
c73f32c14a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lisp/org.el

+ 2 - 1
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)