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: narrow-to-defun and mark-defun now work properly for CC Mode. Date: 11 Apr 2007 21:49:41 +0200 Message-ID: <20070411210916.GA1818@muc.de> References: <20070409123730.GD1065@muc.de> <17948.11246.263666.982903@farnswood.snap.net.nz> <461C71A8.7060401@gmx.at> <871wiqkejv.fsf@stupidchicken.com> <873b36ajc5.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176321113 22852 80.91.229.12 (11 Apr 2007 19:51:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Apr 2007 19:51:53 +0000 (UTC) Cc: martin rudalics , Nick Roberts , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 11 21:51:50 2007 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 1Hbir6-0003OA-SH for ged-emacs-devel@m.gmane.org; Wed, 11 Apr 2007 21:51:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbivB-0004Ed-7u for ged-emacs-devel@m.gmane.org; Wed, 11 Apr 2007 15:56:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HbitS-0003GM-Lt for emacs-devel@gnu.org; Wed, 11 Apr 2007 15:54:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HbitR-0003Dl-38 for emacs-devel@gnu.org; Wed, 11 Apr 2007 15:54:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbitQ-0003DY-PE for emacs-devel@gnu.org; Wed, 11 Apr 2007 15:54:12 -0400 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 1HbipH-0008N2-Tc for emacs-devel@gnu.org; Wed, 11 Apr 2007 15:49:57 -0400 Original-Received: (qmail 45181 invoked by uid 3782); 11 Apr 2007 19:49:41 -0000 Original-Received: from acm.muc.de (p54A3F4DF.dip.t-dialin.net [84.163.244.223]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 11 Apr 2007 21:49:38 +0200 Original-Received: (qmail 2380 invoked by uid 1000); 11 Apr 2007 21:09:16 -0000 Original-Date: Wed, 11 Apr 2007 22:09:16 +0100 Content-Disposition: inline In-Reply-To: <873b36ajc5.fsf@stupidchicken.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: 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:69305 Archived-At: 'Evening, Chong! On Wed, Apr 11, 2007 at 01:53:30PM -0400, Chong Yidong wrote: > Chong Yidong writes: > > martin rudalics writes: > >>> > Please complain to me about any problems. > >>> Well, with that invitation! > >>> Fontifying C files takes too long now, so my old machine starts to > >>> hang if I step through a buffer or search for a string. xbacktrace > >>> seems to consistently include: > > The problem is due to the recent change: > > 2007-04-09 Alan Mackenzie > One way to see this is to open xdisp.c, and do C-s method. The > incremental search takes several seconds. Previously, it was > instantaneous. > Another data point: > - Open xdisp.c > - M-> > On my Pentium IV, M-> takes 30 seconds to complete. I have a 1.2 GHz Athlon, and for me these operations are instantaneous enough. I start Emacs with -Q. With C-s method, I don't see any delay at all, and M-> takes well under half a second. I have checked (by doing C-x n d) that I have my own latest changes in my Emacs. Chong, please confirm you're starting your Emacs with -Q. Would you please check that C-x n d (`narrow-to-defun') does include functions' headers. One other possibility is that the recipe I gave for rebuilding the CC Mode files.elc was erroneous (or you made an error following it), and, somehow, one or more of the macros didn't get properly compiled. I last updated my Emacs a week ago. I'm going to update it again in the next few minutes, to see if some other change in the last few days is interacting badly with my changes. I would like very much (and that is an understatement) to diagnose this problem. It would be very nice to achieve this in hours rather than days, and I'll do all I can to help here. -- Alan.