From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: CC mode 5.31.4: c-{beginning, end}-of-defun try to modify buffer Date: Tue, 8 Jan 2008 22:47:52 +0000 Message-ID: <20080108224752.GA929@muc.de> References: <20080108200301.GA2238@muc.de> <4783DA67.2030407@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199832060 7053 80.91.229.12 (8 Jan 2008 22:41:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jan 2008 22:41:00 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Andreas Schwab , emacs-devel@gnu.org To: martin rudalics Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Tue Jan 08 23:41:21 2008 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by lo.gmane.org with esmtp (Exim 4.50) id 1JCN8I-0008UB-SL for sf-cc-mode-help@m.gmane.org; Tue, 08 Jan 2008 23:41:19 +0100 Original-Received: from sc8-sf-list1-new.sourceforge.net (sc8-sf-list1-new-b.sourceforge.net [10.3.1.93]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id 81F5512117; Tue, 8 Jan 2008 14:40:55 -0800 (PST) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1JCN7t-0008BW-7T for cc-mode-help@lists.sourceforge.net; Tue, 08 Jan 2008 14:40:53 -0800 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1JCN7r-0007bE-Sl for cc-mode-help@lists.sourceforge.net; Tue, 08 Jan 2008 14:40:53 -0800 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JCN73-0005Jm-TU for bug-cc-mode@gnu.org; Tue, 08 Jan 2008 17:40:02 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JCN6z-0000Ep-HG for bug-cc-mode@gnu.org; Tue, 08 Jan 2008 17:40:00 -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 1JCN6y-0007th-6m for bug-cc-mode@gnu.org; Tue, 08 Jan 2008 17:39:56 -0500 Original-Received: (qmail 34550 invoked by uid 3782); 8 Jan 2008 22:38:22 -0000 Original-Received: from acm.muc.de (p57AF53CC.dip.t-dialin.net [87.175.83.204]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Tue, 08 Jan 2008 23:38:20 +0100 Original-Received: (qmail 1276 invoked by uid 1000); 8 Jan 2008 22:47:52 -0000 Content-Disposition: inline In-Reply-To: <4783DA67.2030407@gmx.at> 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-Spam-Score: 1.0 (+) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 1.0 FORGED_RCVD_HELO Received: contains a forged HELO X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: cc-mode-help-bounces@lists.sourceforge.net Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:4930 gmane.emacs.devel:86593 Archived-At: Hi, Martin! On Tue, Jan 08, 2008 at 09:17:43PM +0100, martin rudalics wrote: > > As I say, that's just a guess. I'll take a closer look at it sometime. > > I suspect it is one of these irritating little bugs whose solution > > demands extensive redesign - here, perhaps, by using overlays/extents > > instead of text properties. > Do you bind `buffer-file-name' to nil when applying text properties? No! :-) Thank you muchly for the tip! I use a macro called c-save-buffer-state, which was modelled on font-lock's original save-buffer-state some years ago. At some stage, presumably s-b-s got modified but c-s-b-s didn't. Time to fix it! I can't understand why save-buffer-state has never become a standard Emacs macro. If you're doing _anything_ with text properties, you can't do without it. (OK, Eli, there's one or two exceptions, I know! ;-) -- Alan Mackenzie (Nuremberg, Germany). ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace