Browse Source

Fix last commit

* lisp/org-element.el (org-element-parse-secondary-string): Fix last
  commit.
Nicolas Goaziou 6 years ago
parent
commit
010a35f193
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lisp/org-element.el

+ 2 - 0
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))))))