all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Andreas Schwab <schwab@suse.de>
Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org
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	[thread overview]
Message-ID: <20080109090236.GA1230@muc.de> (raw)
In-Reply-To: <jed4sci6kb.fsf@sykes.suse.de>

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).

  parent reply	other threads:[~2008-01-09  9:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <jed4sci6kb.fsf@sykes.suse.de>
2008-01-08 20:03 ` CC mode 5.31.4: c-{beginning, end}-of-defun try to modify buffer Alan Mackenzie
2008-01-08 20:14   ` Lennart Borgman (gmail)
2008-01-08 20:17   ` martin rudalics
2008-01-08 20:22     ` Lennart Borgman (gmail)
2008-01-08 21:38       ` martin rudalics
2008-01-08 21:58         ` Lennart Borgman (gmail)
2008-01-08 22:39           ` martin rudalics
2008-01-08 22:47     ` Alan Mackenzie
2008-01-09  9:02 ` Alan Mackenzie [this message]
2008-01-09  9:16   ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080109090236.GA1230@muc.de \
    --to=acm@muc.de \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.