Re: [Orgmode] Re: question about capture templates

2011-02-23 Thread Filippo A. Salustri
Yup; I just tried the git snapshot of 23 Feb and it's working. Thanks!! Cheers. Fil On 22 February 2011 04:15, Carsten Dominik wrote: > > On Feb 22, 2011, at 1:39 AM, Filippo A. Salustri wrote: > > > Thanks to everyone for the varied and thoughtful responses. I didn't > think of backquotes, but

Re: [Orgmode] Re: question about capture templates

2011-02-23 Thread Filippo A. Salustri
Carsten, Would your mod be implemented in the git build of 22 Feb? Cheers. Fil On 22 February 2011 04:15, Carsten Dominik wrote: > > On Feb 22, 2011, at 1:39 AM, Filippo A. Salustri wrote: > > > Thanks to everyone for the varied and thoughtful responses. I didn't > think of backquotes, but I kno

[Orgmode] Re: question about capture templates

2011-02-22 Thread Richard Lawrence
Carsten Dominik writes: > I do love dynamic scoping, this give a lot of power in Emacs. > Org-mode internals use that power often. This is venturing a bit far afield, at least for this thread, but I'm curious if anyone knows: does the recent work on supporting Elisp in Guile mean that Elisp appl

Re: [Orgmode] Re: question about capture templates

2011-02-22 Thread Bastien
Hi Carsten, Carsten Dominik writes: > I have just implemented that whenever you mean a file name > in capture templates, you can instead give a function, a > variable, or a lisp form. So your original attempt > >>> ("m" "Message" entry (file+datetree (buffer-file-name >>> (buffer-base-buffer)))

Re: [Orgmode] Re: question about capture templates

2011-02-22 Thread Carsten Dominik
On Feb 22, 2011, at 5:59 AM, Richard Lawrence wrote: > "Filippo A. Salustri" writes: > >> org-capture clearly has the original buffer handy (for %a >> stuff) yet I can't get it out of there without hacking the org code, which I >> am loathe to do. > > I too was in a situation just today where

Re: [Orgmode] Re: question about capture templates

2011-02-22 Thread Carsten Dominik
On Feb 22, 2011, at 1:39 AM, Filippo A. Salustri wrote: > Thanks to everyone for the varied and thoughtful responses. I didn't think > of backquotes, but I know about them from Scheme, and no, they shouldn't work > in this case. > > Very frustrating. org-capture clearly has the original buff

Re: [Orgmode] Re: question about capture templates

2011-02-21 Thread Nick Dokos
Filippo A. Salustri wrote: > Very frustrating. org-capture clearly has the original buffer handy (for %= > a > stuff) yet I can't get it out of there without hacking the org code, which = > I > am loathe to do. Hmmm. I'll think some more. If I come up with anything; > I'll report it. > The

[Orgmode] Re: question about capture templates

2011-02-21 Thread Richard Lawrence
"Filippo A. Salustri" writes: > org-capture clearly has the original buffer handy (for %a > stuff) yet I can't get it out of there without hacking the org code, which I > am loathe to do. I too was in a situation just today where I was calling org-capture programatically, and needed access to st

Re: [Orgmode] Re: question about capture templates

2011-02-21 Thread Filippo A. Salustri
Thanks to everyone for the varied and thoughtful responses. I didn't think of backquotes, but I know about them from Scheme, and no, they shouldn't work in this case. Very frustrating. org-capture clearly has the original buffer handy (for %a stuff) yet I can't get it out of there without hackin

[Orgmode] Re: question about capture templates

2011-02-21 Thread Sébastien Vauban
Hi Richard, Richard Lawrence wrote: > Sébastien Vauban writes: >> "Filippo A. Salustri" wrote: >>> I would really like to be able to vary the file into which a captured item >>> goes. Specifically, I'd like to insert the item into whatever file I was >>> visiting when I started the capture. > >>

[Orgmode] Re: question about capture templates

2011-02-21 Thread Richard Lawrence
Sébastien Vauban writes: > "Filippo A. Salustri" wrote: >> I would really like to be able to vary the file into which a captured item >> goes. Specifically, I'd like to insert the item into whatever file I was >> visiting when I started the capture. > You have to use backquotes so that expressi

[Orgmode] Re: question about capture templates

2011-02-21 Thread Sébastien Vauban
Hi Filippo, "Filippo A. Salustri" wrote: > I would really like to be able to vary the file into which a captured item > goes. Specifically, I'd like to insert the item into whatever file I was > visiting when I started the capture. > > I've been trying something like this: > >> ("m" "Message" ent