From: Alan Mackenzie Date: Sat, 26 Jan 2008 20:28:46 +0000 (+0000) Subject: (c-save-buffer-state): Bind buffer-file-name and buffer-file-truename to X-Git-Tag: emacs-pretest-23.0.90~8382 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=44f714fda507effc32817d3e3f52260a3abeeb7a;p=emacs.git (c-save-buffer-state): Bind buffer-file-name and buffer-file-truename to nil, to prevent primitives generating "buffer is read only" messages. --- 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)