Skip to content

Instantly share code, notes, and snippets.

@lewang
Created January 27, 2012 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lewang/1689071 to your computer and use it in GitHub Desktop.
Save lewang/1689071 to your computer and use it in GitHub Desktop.
org-mode patch for better C-u C-c C-w completion
diff --git a/lisp/org.el b/lisp/org.el
index 7a68b73..ccdcace 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10625,7 +10625,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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment