emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Le Wang <l26wang@gmail.com>
To: Bernt Hansen <bernt@norang.ca>
Cc: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: patch to org-refile for more accurate completing-read
Date: Sat, 28 Jan 2012 16:51:51 +0800	[thread overview]
Message-ID: <CAM=K+irwGeZv2yBt=anjmTWP0ZubE2aY3=85orPPZ73RjBQ++w@mail.gmail.com> (raw)
In-Reply-To: <87lios3e6l.fsf@norang.ca>


[-- Attachment #1.1: Type: text/plain, Size: 672 bytes --]

Sure.

On Sat, Jan 28, 2012 at 7:42 AM, Bernt Hansen <bernt@norang.ca> wrote:

> Le Wang <l26wang@gmail.com> writes:
>
> > Here: https://gist.github.com/1689071
> >
> > When we are using using refile as navigation, require must-match
> > regardless of org-refile-allow-creating-parent-nodes.
>
> Hi,
>
> I suggest you post the patch to the mailing list as an attachment so
>  1) we can read it inline and comment on it without having to go find
>     it on the web
>  2) it will get automatically picked up by the patchwork patch tracker
>     so it can be easily applied to the source
>  3) it will forever be in the mailing list archive
>
> Regards,
> Bernt
>



-- 
Le

[-- Attachment #1.2: Type: text/html, Size: 1151 bytes --]

[-- Attachment #2: org.el.diff --]
[-- Type: application/octet-stream, Size: 459 bytes --]

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)

  reply	other threads:[~2012-01-28  8:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-27 14:44 patch to org-refile for more accurate completing-read Le Wang
2012-01-27 23:42 ` Bernt Hansen
2012-01-28  8:51   ` Le Wang [this message]
2012-02-08 19:21     ` David Maus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAM=K+irwGeZv2yBt=anjmTWP0ZubE2aY3=85orPPZ73RjBQ++w@mail.gmail.com' \
    --to=l26wang@gmail.com \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).