From 010a35f193041ec14697bcd405c002d340ee9405 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 22 Jan 2019 09:02:14 +0100 Subject: [PATCH] Fix last commit * lisp/org-element.el (org-element-parse-secondary-string): Fix last commit. --- lisp/org-element.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/org-element.el b/lisp/org-element.el index 9188b3fbe..e2d69a443 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -4098,6 +4098,8 @@ If STRING is the empty string or nil, return nil." ;; Transferring local variables may put the temporary buffer ;; into a read-only state. Make sure we can insert STRING. (let ((inhibit-read-only t)) (insert string)) + ;; Prevent "Buffer *temp* modified; kill anyway?". + (restore-buffer-modified-p nil) (org-element--parse-objects (point-min) (point-max) nil restriction parent))))))