From 9fd317b1b00aec03430824b07310cb7b27d38cf8 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 6 Jun 2015 09:06:21 +0200 Subject: [PATCH] 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 --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 62684e9ec..a05a17d50 100755 --- a/lisp/org.el +++ b/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. -- 2.11.4.GIT