From c7ad89a66816230bb37fa6d16cc114e24ead28ea Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sat, 26 Jan 2008 19:59:10 +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 9dbd5161a84..1632d756ffc 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