Call `org-insert-heading' instead of (insert "* ")
commit0be8495d0145e0bbabefa0337e513563d5905a66
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 8 Feb 2015 00:45:38 +0000 (8 01:45 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Sun, 8 Feb 2015 00:45:38 +0000 (8 01:45 +0100)
tree44907a58d11a7cdd8af7e30fd25bfbaf9e7d43f3
parentca0199c7ee7492e794f1663b6e3d84dc6d4edce1
Call `org-insert-heading' instead of (insert "* ")

* lisp/org-agenda.el (org-agenda-insert-diary-as-top-level):
* lisp/org.el (org-link-search):  Call `org-insert-heading' instead
  of (insert "* ").

This allows, in particular, to run `org-insert-heading-hook' and
possibly fix up blank lines around.
lisp/org-agenda.el
lisp/org.el