Commit 44f714fd authored by Alan Mackenzie's avatar Alan Mackenzie
Browse files

(c-save-buffer-state): Bind buffer-file-name and buffer-file-truename to

nil, to prevent primitives generating "buffer is read only" messages.
parent b680ecd6
......@@ -425,6 +425,8 @@ The return value is the value of the last form in BODY."
(inhibit-read-only t) (inhibit-point-motion-hooks t)
before-change-functions after-change-functions
deactivate-mark
buffer-file-name buffer-file-truename ; Prevent primitives checking
; for file modification
,@varlist)
(unwind-protect
(progn ,@body)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment