Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-05 Thread Nicolas Goaziou
Hello, Ryo TAKAISHI writes: > But, I had forgot to escape double quote in docstring, so attach patch > fixing it. Fixed. Thank you. Regards, -- Nicolas Goaziou

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-05 Thread Ryo TAKAISHI
Hello, Nicolas Goaziou writes: > Hello, > > Ryo TAKAISHI writes: > >> I create a complete patch for current commit. > > I've pushed your patch on master (with some documentation tweaks). Thank > you for your work. Thank you very much. But, I had forgot to escape double quote in docstring, so a

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-04 Thread Nicolas Goaziou
Hello, Ryo TAKAISHI writes: > I create a complete patch for current commit. I've pushed your patch on master (with some documentation tweaks). Thank you for your work. Also, please consider signing FSF papers if you want to make other contributions to Org. Regards, -- Nicolas Goaziou

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-04 Thread Ryo TAKAISHI
Nicolas Goaziou writes: > Otherwise the code is fine. Would you provide a complete patch, i.e. > with `git format-patch'? The changelog entry may be: I create a complete patch for current commit. Regards, Ryo >From d82c99bb643e2c61e1f5b598a687160340a1558f Mon Sep 17 00:00:00 2001 From: Ryo TAK

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-04 Thread Nicolas Goaziou
Ryo TAKAISHI writes: > I fixed and added document in docstring & org.texi. Thank you. > + @r{If sexp's attr is link keyword (@code{%:keyword}),} > + @r{it will be expanded using @code{org-store-link-plist}.} Documentation should not contain a reference to `org

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-04 Thread Ryo TAKAISHI
Nicolas Goaziou writes: > The code looks good, although I would have moved the external `mapcar' > within the worker function in order to make its purpose clearer. > > Also, would you mind to provide a docstring for the function? Something > along the lines of: > > "Recursively replace captur

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-03 Thread Nicolas Goaziou
Hello, > I fix these problem. A new patch expand keyword recursively, and only > symbol. Great. > + (let* ((sexp (mapcar 'org-capture-expand-keyword-in-embedded-elisp > + (read (current-buffer > +(result (org-eval sexp))) > (delete-region temp

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-02 Thread Ryo TAKAISHI
Nicolas Goaziou writes: > Ryo TAKAISHI writes: > >> I did'nt come up with to use it. >> But "%(func %:description)" or "%(func (plist-get >> org-store-link-plist :description))", I think the former is readble >> template than the latter. > > Probably, but it's also more error-prone. > > For exam

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-02 Thread Nicolas Goaziou
Ryo TAKAISHI writes: > I did'nt come up with to use it. > But "%(func %:description)" or "%(func (plist-get org-store-link-plist > :description))", I think the former is readble template than the latter. Probably, but it's also more error-prone. For example, your code operates only at top-leve

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-02 Thread Ryo TAKAISHI
Nicolas Goaziou writes: > Hello, > > Thanks for your patch. Here are a few comments about it. > > Ryo TAKAISHI writes: > >> * lisp/org-capture.el: If %(SEXP) has %:keyword, expand it using >> org-store-link-plist. >> >> I want to expand %:description keyword in sexp "%(func %:description)". >

Re: [O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-02 Thread Nicolas Goaziou
Hello, Thanks for your patch. Here are a few comments about it. Ryo TAKAISHI writes: > * lisp/org-capture.el: If %(SEXP) has %:keyword, expand it using > org-store-link-plist. > > I want to expand %:description keyword in sexp "%(func %:description)". > But if org-capture template is "%(functi

[O] [PATCH] Capture: Expand keyword within %(SEXP) in template

2012-11-02 Thread Ryo TAKAISHI
* lisp/org-capture.el: If %(SEXP) has %:keyword, expand it using org-store-link-plist. I want to expand %:description keyword in sexp "%(func %:description)". But if org-capture template is "%(function %:keyword)", function take a symbol %:keyword, it does'nt expand. This patch expand %:keyword