[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-mode `org-capture-templates' %(sexp) must return string rest
From: |
Carsten Dominik |
Subject: |
Re: [O] org-mode `org-capture-templates' %(sexp) must return string restriction |
Date: |
Thu, 8 Aug 2013 09:11:15 +0200 |
Hi Oleh,
please provide a patch, I like the proposed change.
- Carsten
On 26.7.2013, at 09:09, Oleh <address@hidden> wrote:
> Hi all,
>
> Is this restriction really necessary?
> This results in code like:
>
> (setq
> org-capture-templates
> '(("e" "elisp todo"
> entry
> (file+headline (concat org.d "gtd.org") "Tasks")
> "* TODO %(progn (org-set-tags-to \"ELISP\") \"\")%^{Brief
> Description}\n Added: %U %i\n %?\n")))
>
> I think it should be fine to just return nil. That would be equivalent
> to the empty string.
> Here's the same code if returning nil would be acceptable:
>
> (setq
> org-capture-templates
> '(("e" "elisp todo"
> entry
> (file+headline (concat org.d "gtd.org") "Tasks")
> "* TODO %(org-set-tags-to \"ELISP\")%^{Brief Description}\n
> Added: %U %i\n %?\n")))
>
> Any opinions on this?
>
> regards,
> Oleh
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [O] org-mode `org-capture-templates' %(sexp) must return string restriction,
Carsten Dominik <=