>> My opinion is that we should either consider that adding a property in >> `org-insert-heading-hook' is a bad practice or change the functions that >> create entries to make sure they move beyond a potentially created >> properties drawer before adding extra information such as timestamps. >> >> What is your opinion? > > If a function calls on `org-insert-heading' and puts point in some > position for further processing, it should take into consideration > meta-data (i.e., planning info and properties drawer). I suggest to provide a helper that would move point after the meta-data part to avoid code duplication. Something like (no surprise :-)): --8<---------------cut here---------------start------------->8--- (defun org-goto-after-metadata-part () (when (org-looking-at-p org-planning-line-re) (forward-line)) (when (looking-at org-property-drawer-re) (goto-char (match-end 0)) (forward-line))) --8<---------------cut here---------------end--------------->8--- I would have gladly provided a patch myself but I couldn't find neither a good name for the function nor a correct location to store it. Should it be in org.el? It is already 24850 lines long... My best :-), -- Konubinix GPG Key : 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A