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)
<http://permalink.gmane.org/gmane.emacs.orgmode/104107>
This commit is contained in:
Nicolas Goaziou 2016-01-12 21:28:32 +01:00
parent 4de71e483a
commit 8ddc7314b8
1 changed files with 1 additions and 1 deletions

View File

@ -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