org.el (org-insert-heading): Fix bug about wrong conversion of lines with :END: or...
commit862b91e8db127a51e50dce0910a144c977d47151
authorBastien Guerry <bzg@altern.org>
Wed, 24 Apr 2013 07:55:15 +0000 (24 09:55 +0200)
committerBastien Guerry <bzg@altern.org>
Wed, 24 Apr 2013 07:55:15 +0000 (24 09:55 +0200)
tree74a695e6550cc78a6d2e830be490aec1e5d1b851
parentbb0492d7179b402cccc0086ca9aff016c72d2738
org.el (org-insert-heading): Fix bug about wrong conversion of lines with :END: or #+end_ into headlines

* org.el (org-insert-heading): Reveal context when called
interactively.  Fix bug about wrong conversion of lines with
:END: or #+end_ into headlines.
(org-in-drawer-p): New function.
(org-meta-return): Use `org-catch-invisible-edits' and the
`org-in-drawer-p' to check whether we are within a drawer.

Thanks to Muchenxuan Tong and John Hendy who reported these errors.
lisp/org.el