From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel 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 Message-ID: <20080109090236.GA1230@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199868803 3197 80.91.229.12 (9 Jan 2008 08:53:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2008 08:53:23 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 09 09:53:42 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JCWgt-00048Z-6z for ged-emacs-devel@m.gmane.org; Wed, 09 Jan 2008 09:53:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCWgV-0004Rs-RK for ged-emacs-devel@m.gmane.org; Wed, 09 Jan 2008 03:53:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCWgR-0004Rm-MH for emacs-devel@gnu.org; Wed, 09 Jan 2008 03:53:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCWgQ-0004Ra-SO for emacs-devel@gnu.org; Wed, 09 Jan 2008 03:53:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCWgQ-0004RX-OD for emacs-devel@gnu.org; Wed, 09 Jan 2008 03:53:10 -0500 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JCWgQ-0005wz-Cn for emacs-devel@gnu.org; Wed, 09 Jan 2008 03:53:10 -0500 Original-Received: (qmail 39612 invoked by uid 3782); 9 Jan 2008 08:53:08 -0000 Original-Received: from acm.muc.de (p57AF4743.dip.t-dialin.net [87.175.71.67]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 09 Jan 2008 09:53:03 +0100 Original-Received: (qmail 2472 invoked by uid 1000); 9 Jan 2008 09:02:36 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86626 Archived-At: 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).