org.el (org-adaptive-fill-function, org-fill-paragraph): Throw a useful error message
commit0ffeb8709e2d128e0f18d1c5fafcf970dd453c01
authorBastien Guerry <bzg@altern.org>
Sun, 14 Apr 2013 09:21:23 +0000 (14 11:21 +0200)
committerBastien Guerry <bzg@altern.org>
Sun, 14 Apr 2013 09:46:45 +0000 (14 11:46 +0200)
treee9c8c39e61369cf859c7bfffe1971d8b3a0f98ef
parent7c048fd8861483b4d1c35344e619339f3d04701e
org.el (org-adaptive-fill-function, org-fill-paragraph): Throw a useful error message

* org.el (org-adaptive-fill-function, org-fill-paragraph):
Throw a useful error message when parse an element fails in
the current buffer.

This can happen for example in a `message-mode' buffer when using
orgstruct-mode.  If you insert a line like:

SCHEDULED: <2013-04-13 Sat> is blablabla

then org-element-at-point will fail and the user will get an error
he cannot understand.
lisp/org.el