]> 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 20:28:46 +0000 (20:28 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 26 Jan 2008 20:28:46 +0000 (20:28 +0000)
nil, to prevent primitives generating "buffer is read only" messages.

lisp/progmodes/cc-defs.el

index 288aca687aa8e7a3670c63a9e5c6869ddcd68e94..9ef8db7548f7eee6ad126f82aa3cfc4efeea1658 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)