diff options
| author | Alan Mackenzie | 2008-01-26 19:59:10 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2008-01-26 19:59:10 +0000 |
| commit | c7ad89a66816230bb37fa6d16cc114e24ead28ea (patch) | |
| tree | 6e89c09fd891b77980c5409772898d25bf1d05f8 | |
| parent | 30719e6c95c570674e2736ece52677e7161143a7 (diff) | |
| download | emacs-c7ad89a66816230bb37fa6d16cc114e24ead28ea.tar.gz emacs-c7ad89a66816230bb37fa6d16cc114e24ead28ea.zip | |
(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.el | 2 |
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." | |||
| 425 | (inhibit-read-only t) (inhibit-point-motion-hooks t) | 425 | (inhibit-read-only t) (inhibit-point-motion-hooks t) |
| 426 | before-change-functions after-change-functions | 426 | before-change-functions after-change-functions |
| 427 | deactivate-mark | 427 | deactivate-mark |
| 428 | buffer-file-name buffer-file-truename ; Prevent primitives checking | ||
| 429 | ; for file modification | ||
| 428 | ,@varlist) | 430 | ,@varlist) |
| 429 | (unwind-protect | 431 | (unwind-protect |
| 430 | (progn ,@body) | 432 | (progn ,@body) |