Various fixes related to `org-insert-heading'.
commitfac8191dafc087cde04678a67551c9dd8cc6abd8
authorBastien Guerry <bzg@altern.org>
Sun, 3 Mar 2013 12:38:26 +0000 (3 13:38 +0100)
committerBastien Guerry <bzg@altern.org>
Sun, 3 Mar 2013 12:38:26 +0000 (3 13:38 +0100)
tree74aa94f161de9559a9970abd8417a50cb6b8a2ae
parentc187bd7cab4eac927e58050d4515bb3dfb8eb034
Various fixes related to `org-insert-heading'.

* org.el (org-previous-line-empty-p): New parameter to allow
checking next line.  Add a docstring.
(org-insert-heading): Handle two universal prefix arguments as
advertized in the docstring.  Don't insert new lines when
creating a heading after the first heading in the current
subtree.
(org-insert-heading-respect-content): New optional argument
arg, passed to `org-insert-heading'.

* org.texi (Structure editing): Update documentation for
`org-insert-heading-or-item'.
(Plain lists, Relative timer): Update index entry.

* org-mobile.el (org-mobile-edit): Use correct parameters for
`org-insert-heading-respect-content'.
doc/org.texi
lisp/org-mobile.el
lisp/org.el