org.el (org-insert-heading): DTRT when in a narrowed region
commitbc7dbcab9f38bdf1816197a4ea41022ea2bef7a0
authorBastien Guerry <bzg@altern.org>
Wed, 13 Mar 2013 09:57:49 +0000 (13 10:57 +0100)
committerBastien Guerry <bzg@altern.org>
Wed, 13 Mar 2013 09:57:49 +0000 (13 10:57 +0100)
tree32c6a29d0cf708d8217d672f3261e6169d7f5549
parentd40c5804f58fc04a538781780610339fd770ca24
org.el (org-insert-heading): DTRT when in a narrowed region

* org.el (org-insert-heading): DTRT when in a narrowed region.

* org-compat.el (org-buffer-narrowed-p): New compatibility
function.

Thanks to Samuel Wales for reporting this problem.
lisp/org-compat.el
lisp/org.el