Allow nil as return of sexp in capture templates
commit1871bf69331b110122d7f7615dfbb2a0f3f09c02
authoroleh <wave@mail.ua>
Sun, 1 Sep 2013 16:27:01 +0000 (1 18:27 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Sun, 1 Sep 2013 17:47:37 +0000 (1 19:47 +0200)
tree2da02ae4c54532cc927bc698b098597e02a7997e
parentcdb8d78b00ccd27bed7adf42b7f6bff77625a469
Allow nil as return of sexp in capture templates

* lisp/org-capture.el (org-capture-expand-embedded-elisp): Throw error if
result is not a string and not nil.  If the result is nil, treat it as
if it was the empty string.
lisp/org-capture.el