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: Unbearably slow editing in .h files Date: Sun, 24 Feb 2008 08:39:50 +0000 Message-ID: <20080224083950.GB1073@muc.de> References: <8763xl492o.fsf@jurta.org> <200801230225.m0N2Ptmx012952@sallyv1.ics.uci.edu> <200801271954.m0RJsmBm003714@sallyv1.ics.uci.edu> <479DAC55.8070302@gmx.at> <200801300258.m0U2w9rr005169@sallyv1.ics.uci.edu> <47B9E0B1.1090908@gmx.at> <20080223224901.GB3476@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203845263 20846 80.91.229.12 (24 Feb 2008 09:27:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Feb 2008 09:27:43 +0000 (UTC) Cc: bug-cc-mode@gnu.org, martin rudalics , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 24 10:28:08 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 1JTD9S-0000wr-1X for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 10:28:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTD8w-0000zy-Bc for ged-emacs-devel@m.gmane.org; Sun, 24 Feb 2008 04:27:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTD8S-0000f0-TN for emacs-devel@gnu.org; Sun, 24 Feb 2008 04:27:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTD8R-0000eF-AR for emacs-devel@gnu.org; Sun, 24 Feb 2008 04:27:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTD8R-0000e3-5V for emacs-devel@gnu.org; Sun, 24 Feb 2008 04:27:03 -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 1JTD8Q-0007V3-JO for emacs-devel@gnu.org; Sun, 24 Feb 2008 04:27:02 -0500 Original-Received: (qmail 59798 invoked by uid 3782); 24 Feb 2008 08:26:58 -0000 Original-Received: from acm.muc.de (p57AF58BD.dip.t-dialin.net [87.175.88.189]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sun, 24 Feb 2008 09:26:55 +0100 Original-Received: (qmail 1118 invoked by uid 1000); 24 Feb 2008 08:39:50 -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:90211 Archived-At: Morning, Stefan! On Sat, Feb 23, 2008 at 07:37:17PM -0500, Stefan Monnier wrote: > > ;-) I think that lisp.h is an ill-conditioned file, in some way. Or > > are you telling me that the slowness happens in a lot of files.h? > Basically, all .h files, tho clearly the slowdown is proportional to > the distance between point-min and point. It's not quite as simple as that. Try loading a large file.c, say .../src/w32fns.c, then do M-> and C-M-a. This is instantaneous enough. But yes, further C-M-a's do become a bit sluggish. globals_of_w32fns is spectacularly bad. OK, there's stuff to fix here. [ .... ] > One other problem with add-log-current-defun is that it does not > recognize function declarations any more (i.e. hitting C-x 4 a on a > line like > void foo (int); > will fail to find the "foo" to put it in the ChangeLog). Not sure if > it's related. C-x 4 a uses c-\(beginning\|end\)-of-defun. @dfn{defuns} in CC Mode are currently top-level structures containing a brace block. > Stefan -- Alan Mackenzie (Nuremberg, Germany).