From 44f714fda507effc32817d3e3f52260a3abeeb7a Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sat, 26 Jan 2008 20:28:46 +0000 Subject: [PATCH] (c-save-buffer-state): Bind buffer-file-name and buffer-file-truename to nil, to prevent primitives generating "buffer is read only" messages. --- lisp/progmodes/cc-defs.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index 288aca687aa..9ef8db7548f 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el @@ -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) -- 2.39.2