Fix `org-N-empty-lines-before-current'
commit1fac906174e9c522c25a66f91ccd09e9e7c91973
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 2 Jan 2017 22:21:53 +0000 (2 23:21 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 2 Jan 2017 22:21:53 +0000 (2 23:21 +0100)
tree5c0923ff7694bf580d402810c9f864cf5caa2a8b
parentc32db8a8dae5d5ca00fbf5d048d63c77e8dfafd3
Fix `org-N-empty-lines-before-current'

* lisp/org.el (org-N-empty-lines-before-current): Preserve point when
  calling the function from the beginning of a line.

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