changeset 79934:225355012caa

(c-save-buffer-state): Bind buffer-file-name and buffer-file-truename to nil, to prevent primitives generating "buffer is read only" messages.
author Alan Mackenzie <acm@muc.de>
date Sat, 26 Jan 2008 19:59:10 +0000
parents 01ddee5ce44d
children cfe1f3b29423
files lisp/progmodes/cc-defs.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-defs.el	Sat Jan 26 19:58:09 2008 +0000
+++ b/lisp/progmodes/cc-defs.el	Sat Jan 26 19:59:10 2008 +0000
@@ -425,6 +425,8 @@
 	  (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)