From 8985b3de6486f98a18ef074ae9ff6e6c5dea4623 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 8 Dec 2014 00:31:50 +0100 Subject: [PATCH] Fix multiple property drawers insertion with repeated tasks * lisp/org.el (org-add-log-setup): A property drawer may be inserted where the note is going to be added. Make sure the note ends after the drawer. Reported-by: Bradley M. Kuhn --- lisp/org.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index 142407c00..1244160b2 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -13652,6 +13652,9 @@ EXTRA is additional text that will be inserted into the notes buffer." (skip-chars-backward " \t\n\r") (forward-line))) (move-marker org-log-note-marker (point)) + ;; Preserve position even if a property drawer is inserted in the + ;; process. + (set-marker-insertion-type org-log-note-marker t) (setq org-log-note-purpose purpose org-log-note-state state org-log-note-previous-state prev-state -- 2.11.4.GIT