summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2008-01-26 19:59:10 +0000
committerAlan Mackenzie <acm@muc.de>2008-01-26 19:59:10 +0000
commitc7ad89a66816230bb37fa6d16cc114e24ead28ea (patch)
tree6e89c09fd891b77980c5409772898d25bf1d05f8
parent30719e6c95c570674e2736ece52677e7161143a7 (diff)
downloademacs-c7ad89a66816230bb37fa6d16cc114e24ead28ea.tar.gz
(c-save-buffer-state): Bind buffer-file-name and buffer-file-truename to
nil, to prevent primitives generating "buffer is read only" messages.
-rw-r--r--lisp/progmodes/cc-defs.el2
1 files changed, 2 insertions, 0 deletions
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)