Install a better error message for the "Before first heading" error.
commit74a2ea6ee898cafff740267ee17cbb1a8d70b297
authorCarsten Dominik <carsten.dominik@gmail.com>
Thu, 13 Nov 2008 08:54:30 +0000 (13 09:54 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 13 Nov 2008 08:54:30 +0000 (13 09:54 +0100)
tree057cee5a6abfc7c17c2eb42583c92085d2d60e9e
parent6291ef8b7ff552cc0c65e5ac5ca303f35ba75714
Install a better error message for the "Before first heading" error.

Org sometimes hits a "Before first heading" error.  This error happens
when `outline-back-to-heading' is called before the first heading in a
buffer.  In normal use, this is something easy to fix, because of
course you know where you are and you can identify the problem.

However, when Org scans many different buffers, for example to collect
agenda entries, you may not be able to tell easily where this error
happened.  This patch introduces a wrapper around
`outline-back-to-heading', with improving the error message by
spelling out buffer and location.
lisp/ChangeLog
lisp/org-list.el
lisp/org.el