diff options
| author | Alan Mackenzie | 2008-01-26 20:28:46 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2008-01-26 20:28:46 +0000 |
| commit | 44f714fda507effc32817d3e3f52260a3abeeb7a (patch) | |
| tree | 62fee5954f3d1910378c31e5bc8b68f278053d73 | |
| parent | b680ecd673fa57b6c53702fc80ae4120c45ee7f4 (diff) | |
| download | emacs-44f714fda507effc32817d3e3f52260a3abeeb7a.tar.gz emacs-44f714fda507effc32817d3e3f52260a3abeeb7a.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 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." | |||
| 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) |