Re: [O] %(SEXP) with %c in org-capture templates

2011-07-25 Thread Bastien
Philipp Möller writes: > A patch for the doc string and the info manual is attached. Let me > know if anything is wrong with it. Applied, thanks a lot! -- Bastien

Re: [O] %(SEXP) with %c in org-capture templates

2011-07-25 Thread Philipp Möller
On 24 July 2011 18:48, Bastien wrote: > Hi Philipp, > > Philipp Möller writes: > >> nevermind. I figured out that the expansion order of %s and s >> expressions is the problem and also the reason for the with the >> correct URL. >> The solution is to use %(get-page-title (current-kill 0)). > > Th

Re: [O] %(SEXP) with %c in org-capture templates

2011-07-24 Thread Bastien
Hi Philipp, Philipp Möller writes: > nevermind. I figured out that the expansion order of %s and s > expressions is the problem and also the reason for the with the > correct URL. > The solution is to use %(get-page-title (current-kill 0)). Thanks for letting us know! > Can this be added to th

Re: [O] %(SEXP) with %c in org-capture templates

2011-07-15 Thread Philipp Möller
On 13 July 2011 01:46, Philipp Möller wrote: > Hello all, > I want to define a capture template which pre-processes the head of the kill > ring with a sexp that takes a string as an argument: > > (setq org-capture-templates >   (quote >    (("l" "Link" entry (file+headline "" "Links") >   

[O] %(SEXP) with %c in org-capture templates

2011-07-12 Thread Philipp Möller
Hello all, I want to define a capture template which pre-processes the head of the kill ring with a sexp that takes a string as an argument: (setq org-capture-templates (quote (("l" "Link" entry (file+headline "" "Links") "* \"%c\" %(get-page-title \"%c\")" ;; throws Bad