[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to t
From: |
Toby Cubitt |
Subject: |
Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt |
Date: |
Tue, 24 Apr 2012 15:37:19 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Apr 24, 2012 at 02:51:29PM +0200, Bastien wrote:
> Toby Cubitt <address@hidden> writes:
>
> > On Tue, Apr 24, 2012 at 11:57:02AM +0200, Bastien wrote:
> >> I've pushed a change to this new feature:
> >> http://orgmode.org/w/?p=org-mode.git;a=commit;h=1666b9
> >>
> >> Using %n is not good, because it will match many escaped
> >> strings that you don't want to match. Using %\n looks
> >> good to me as it resonates with \1 in replace-regexp.
> >>
> >> Toby, let me know if you agree with this change.
> >
> > I'm fine with it. But I don't understand, what other escapes will it
> > match? None of the other % escapes documented in org-capture-templates
> > start with a digit, they all start with a letter or punctuation.
>
> It is not the escapes from the capture template itself, but at the time
> the capture buffer is prepared, links go to `org-make-link-string' which
> calls `org-link-escape' which might in turn insert "%20" strings.
Ah, I get it now.
Your %\n syntax looks to be a good choice. I'll pull your changes and
update my org-capture-template setting.
Thanks!
Toby
--
Dr T. S. Cubitt
Mathematics and Quantum Information group
Department of Mathematics
Complutense University
Madrid, Spain
email: address@hidden
web: www.dr-qubit.org
- [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt, Toby Cubitt, 2012/04/22
- Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt, Bastien, 2012/04/23
- Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt, Toby Cubitt, 2012/04/23
- Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt, Bastien, 2012/04/23
- Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt, Toby Cubitt, 2012/04/23
- Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt, Bastien, 2012/04/23
- Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt, Bastien, 2012/04/24
- Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt, Toby Cubitt, 2012/04/24
- Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt, Bastien, 2012/04/24
- Re: [O] [PATCH] Allow %<num> escapes to capture templates, expanded to text entered in <num>'th prompt,
Toby Cubitt <=