]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-save-buffer-state): Bind buffer-file-name and buffer-file-truename to
authorAlan Mackenzie <acm@muc.de>
Sat, 26 Jan 2008 19:59:10 +0000 (19:59 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 26 Jan 2008 19:59:10 +0000 (19:59 +0000)
nil, to prevent primitives generating "buffer is read only" messages.

lisp/progmodes/cc-defs.el

index 9dbd5161a84a74681193558a81f07f326bf84f60..1632d756ffc00b4c8166d861a8a4d71b8d2c8406 100644 (file)
@@ -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)