Fix `org-insert-heading' before first headline
commit8cc4e09950594b2abec2502e9218318570595ac5
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 9 Jun 2014 16:07:07 +0000 (9 18:07 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 9 Jun 2014 16:07:07 +0000 (9 18:07 +0200)
treef8655e37e43931ff56d54b7fb28988ac848a9a6d
parent88f2625f286b00bba7a4a2ac2ea74aa9e00cf0bb
Fix `org-insert-heading' before first headline

* lisp/org.el (org-insert-heading): Fix error when inserting
  a headline before first headline, with point not at bol.  Remove
  source block check for consistency with behavior after first
  headline.  Tiny fix to docstring.

* testing/lisp/test-org.el (test-org/meta-return): Remove unnecessary
  test (not testing specifications).
(test-org/insert-heading): New test.
lisp/org.el
testing/lisp/test-org.el