org-capture: Improve error message for date/weektree capture
commit6a49de8862364bc15059d7c10a74ce4edf5e35e4
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Wed, 11 Jan 2017 08:17:18 +0000 (11 09:17 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Wed, 11 Jan 2017 08:17:18 +0000 (11 09:17 +0100)
treebdd61c92c807e4145b1a050207a86a6c97243c17
parenta0409e56c3e4e9e8746235f6c0841a701a2f57a2
org-capture: Improve error message for date/weektree capture

* lisp/org-capture.el (org-capture-set-target-location): Raise an
  error when target location is not an Org buffer.

Reported-by: Simao <smm@imap.cc>
<http://permalink.gmane.org/gmane.emacs.orgmode/111320>
lisp/org-capture.el