Fix logging in indirect buffers

* lisp/org.el (org-store-log-note): Ensure insertion point is
  available in the narrowed part of the current buffer.

Reported-by: Mark Edgington <edgimar@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/98152>
This commit is contained in:
Nicolas Goaziou 2015-06-06 09:06:21 +02:00
parent 9540ff8d7a
commit 9fd317b1b0
1 changed files with 1 additions and 1 deletions

View File

@ -13738,7 +13738,7 @@ EXTRA is additional text that will be inserted into the notes buffer."
(setq lines nil))
(when lines
(with-current-buffer (marker-buffer org-log-note-marker)
(save-excursion
(org-with-wide-buffer
(goto-char org-log-note-marker)
(move-marker org-log-note-marker nil)
;; Make sure point is at the beginning of an empty line.