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