Fix `org-insert-heading'
commit59111b77efad2583e432a86479ccf8d175077e8e
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 16 Nov 2014 14:47:40 +0000 (16 15:47 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 16 Nov 2014 14:48:58 +0000 (16 15:48 +0100)
treedd7bded4f4607a18ced022b6a468d386b105d0ce
parent685d3ba4af8cbb45447bb0b6c215a7135e7ed77e
Fix `org-insert-heading'

* lisp/org.el (org-insert-heading): Fix some corner case when point is
  in an invisible list.

* testing/lisp/test-org.el (test-org/insert-heading): Add tests.

Reported-by: Luke Crook <luke@balooga.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/92619>
lisp/org.el
testing/lisp/test-org.el