org-capture: Fix capture on empty entries
commitb913b7404b0e9ed183da8abf4af738e750c9f34c
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 2 Apr 2019 20:10:50 +0000 (2 22:10 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Tue, 2 Apr 2019 20:10:50 +0000 (2 22:10 +0200)
tree2fd6982835e5fc3f0d8286279ba2d69da259daff
parent01182eb77562c5f39cc17a70e7083fb25b712cd8
org-capture: Fix capture on empty entries

* lisp/org-capture.el (org-capture-fill-template): Prevent raising an
  error when template is an empty entry.
* testing/lisp/test-org-capture.el (test-org-caputre/entry): Add test.

Reported-by: Roland Everaert <reveatwork@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-04/msg00019.html>
lisp/org-capture.el
testing/lisp/test-org-capture.el