From 8ddc7314b801b48dff5c246c0954c67021b145f9 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 12 Jan 2016 21:28:32 +0100 Subject: [PATCH] Store notes outside drawers at a correct location * lisp/org.el (org-log-beginning): Move to an appropriate location even when `org-log-state-notes-insert-after-drawers' is nil and notes are not stored within a drawer. Reported-by: swflint@flintfam.org (Samuel W. Flint) --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 7d0de0277..ed04551e9 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -13566,7 +13566,7 @@ narrowing." (org-indent-region beg (point))) (end-of-line -1))))) (t - (when org-log-state-notes-insert-after-drawers (org-end-of-meta-data t)) + (org-end-of-meta-data org-log-state-notes-insert-after-drawers) (skip-chars-forward " \t\n") (beginning-of-line) (unless org-log-states-order-reversed