From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Unbearably slow editing in .h files (was: patch: add-log.el: changelog find file under point) Date: Mon, 18 Feb 2008 15:09:42 -0500 Message-ID: References: <1194211092.13041.13.camel@peder.flower> <200801222310.m0MN9cZq011601@sallyv1.ics.uci.edu> <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> 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 1203365417 25529 80.91.229.12 (18 Feb 2008 20:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 20:10:17 +0000 (UTC) To: emacs-devel@gnu.org, bug-cc-mode@gnu.org Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Mon Feb 18 21:10:41 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 1JRCJz-0004M9-9a for sf-cc-mode-help@m.gmane.org; Mon, 18 Feb 2008 21:10:39 +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 4B4CC120C7; Mon, 18 Feb 2008 12:10:08 -0800 (PST) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1JRCJR-0006Ow-VF for cc-mode-help@lists.sourceforge.net; Mon, 18 Feb 2008 12:10:06 -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 1JRCJO-0000NJ-Rf for cc-mode-help@lists.sourceforge.net; Mon, 18 Feb 2008 12:10:05 -0800 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JRCJK-0005Zy-9f for bug-cc-mode@gnu.org; Mon, 18 Feb 2008 15:09:58 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JRCJG-0003IJ-WB for bug-cc-mode@gnu.org; Mon, 18 Feb 2008 15:09:58 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JRCJG-0003Ht-HD; Mon, 18 Feb 2008 15:09:54 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAG50uUfO+KMJdGdsb2JhbACQVgEwnFqBAg X-IronPort-AV: E=Sophos;i="4.25,372,1199682000"; d="scan'208";a="14674430" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 18 Feb 2008 15:09:53 -0500 Original-Received: from pastel.home ([206.248.163.9]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id YWB58253; Mon, 18 Feb 2008 15:09:53 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 4239A8153; Mon, 18 Feb 2008 15:09:42 -0500 (EST) In-Reply-To: <47B9E0B1.1090908@gmx.at> (martin rudalics's message of "Mon, 18 Feb 2008 20:46:57 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:5078 gmane.emacs.devel:89518 Archived-At: > The simple approach is based on searching and comparing the result with > that of `add-log-current-defun'. It works pretty well most of the time > but may exhibit the nasty behavior described in > http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00443.html > On my 1 GHz machine this means that I have to wait some 40 secs until > I'm told that there are no matches. I can think of two ways to handle > this: (1) Convince Alan that the behavior of `c-beginning-of-defun' is > intolerable - AFAICT this has been tried before. (2) Fix this within > `add-log-current-defun' to not use `c-beginning-of-defun' - I'm unable > to do this myself because I completely fail to understand that part of > the function. Nowadays, I find myself regularly using M-x fundamental-mode in .h files in order to be able to edit them sanely. We have to do something to fix it. Alan? Stefan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/