Make use of `org-insert-heading' instead of inserting the * character
commit2ebb14d7468fe7daf8bfc1a1a2daf2e1b71ebf38
authorKonubinix <konubinix@gmail.com>
Thu, 6 Nov 2014 10:02:23 +0000 (6 11:02 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 2 Feb 2015 12:24:37 +0000 (2 13:24 +0100)
treeefd9cce738d3b47f2c27997b47be6aeab586a5d1
parentb5d9f4be4daf0b0e8b32bc28493b2e1440fa205e
Make use of `org-insert-heading' instead of inserting the * character

* lisp/org-agenda.el (org-agenda-insert-diary-as-top-level): Make
  use of `org-insert-heading' instead of inserting the * character

Therefore, the hooks associated to the insertion of a heading will be
triggered.  Since those hooks may cause the creation of some
metadata.  `org-end-of-meta-data' is used afterward.
lisp/org-agenda.el