emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CC mode 5.31.4: c-{beginning, end}-of-defun try to modify buffer


From: Alan Mackenzie
Subject: Re: CC mode 5.31.4: c-{beginning, end}-of-defun try to modify buffer
Date: Wed, 9 Jan 2008 09:02:36 +0000
User-agent: Mutt/1.5.9i

Hi, Andreas!

On Tue, Jan 08, 2008 at 06:13:40PM +0100, Andreas Schwab wrote:
> c-{beginning,end}-of-defun try to modify the buffer and thus trigger
> ask-user-about-supersession-threat.  To reproduce load a C file and
> touch the underlying file.  Then type C-M-e repeatedly.  After some
> tries you will be asked whether you want to edit the buffer.

Would you try the following patch, please.  Because it modifies a macro,
you'll need to byte-compile all the cc-*.el files before it will take
effect.


*** cc-defs.el~ 2007-08-17 22:42:52.000000000 +0000
--- cc-defs.el  2008-01-09 08:57:19.414464408 +0000
***************
*** 425,430 ****
--- 425,431 ----
          (inhibit-read-only t) (inhibit-point-motion-hooks t)
          before-change-functions after-change-functions
          deactivate-mark
+         buffer-file-name ; Prevent primitives checking for file modification
          ,@varlist)
       (unwind-protect
         (progn ,@body)


Let me know whether it works or not.

Thanks again for the report.

> Andreas.
 
-- 
Alan Mackenzie (Nuremberg, Germany).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]