Browse Source

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>
Nicolas Goaziou 10 years ago
parent
commit
9fd317b1b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

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