* org-mode `org-capture-templates' %(sexp) must return string restriction
@ 2013-07-26 7:09 Oleh
2013-08-08 7:11 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Oleh @ 2013-07-26 7:09 UTC (permalink / raw)
To: org mode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org-mode `org-capture-templates' %(sexp) must return string restriction
2013-07-26 7:09 org-mode `org-capture-templates' %(sexp) must return string restriction Oleh
@ 2013-08-08 7:11 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2013-08-08 7:11 UTC (permalink / raw)
To: Oleh; +Cc: org mode
Hi Oleh,
please provide a patch, I like the proposed change.
- Carsten
On 26.7.2013, at 09:09, Oleh <ohwoeowho@gmail.com> 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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-08 7:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-26 7:09 org-mode `org-capture-templates' %(sexp) must return string restriction Oleh
2013-08-08 7:11 ` Carsten Dominik
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).