Fix before first heading check
commitde62618009355eef3658fa4318b3c0a8144c1ec7
authorBernt Hansen <bernt@norang.ca>
Mon, 20 Dec 2010 02:32:54 +0000 (20 02:32 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Mon, 20 Dec 2010 12:22:05 +0000 (20 13:22 +0100)
treee65ff9e8b02dd7960e8114b01f1b2514e83bdc55
parent3ceee2fefefbeb4f210eb3aa0bab62ca879c09f1
Fix before first heading check

* lisp/org.el (org-before-first-heading-p): If point is on an org-mode heading line then we are not before the first heading

If point is anywhere on the first line of the first heading then we
are not before the first heading.  This makes
org-before-first-heading-p returns t instead of nil when on the '*' or
blank of the first level 1 heading in an org file.

This was noticed when the first heading has an encryption
tag :crypt:. C-c C-r would not decrypt this entry if point is at the
beginning of the line since it was considered before the first
heading.
lisp/org.el