From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: [acm@muc.de: Re: Emacs 22.2 release plans - request for a slight delay.] Date: Mon, 17 Mar 2008 10:30:35 +0100 Message-ID: <47DE3A3B.1070400@gmx.at> References: <20080307072737.GA1334@muc.de> <47DD2A9C.70008@gmx.at> <20080316193633.GC1544@muc.de> <47DE1EB9.6070707@gmx.at> <20080317090449.GA2100@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205746213 13103 80.91.229.12 (17 Mar 2008 09:30:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2008 09:30:13 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 17 10:30: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 1JbBg0-0006zs-KK for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2008 10:30:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbBfQ-0005xa-VQ for ged-emacs-devel@m.gmane.org; Mon, 17 Mar 2008 05:30:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JbBfL-0005xS-V3 for emacs-devel@gnu.org; Mon, 17 Mar 2008 05:29:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JbBfJ-0005xG-Eh for emacs-devel@gnu.org; Mon, 17 Mar 2008 05:29:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbBfJ-0005xD-6I for emacs-devel@gnu.org; Mon, 17 Mar 2008 05:29:57 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JbBfI-0003PD-RS for emacs-devel@gnu.org; Mon, 17 Mar 2008 05:29:57 -0400 Original-Received: (qmail invoked by alias); 17 Mar 2008 09:29:54 -0000 Original-Received: from N742P008.adsl.highway.telekom.at (EHLO [62.47.36.168]) [62.47.36.168] by mail.gmx.net (mp002) with SMTP; 17 Mar 2008 10:29:54 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+SUMEzmW6SBG8bMgYLIR26TwsQS5rOENKjOv2jH3 zSxKmocchwfFVc User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <20080317090449.GA2100@muc.de> X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:92810 Archived-At: > Guten Morgen, Martin! Good morning, Alan! > I think the answer to this is to write the following in cc-cmds.el: > > (defun c-defun-name (&optional pos) > "Return the name of the current function, or the one at POS. > > \"Function\" here means any named structure with a brace block, and > \"current\" means the one surrounding point, starting or terminating at > point. > > If there is no current function, return nil." > ..... > ) > > That should reduce the above `add-change-log-entry''s time to ~ 1 second. That would be fine, indeed. Although `c-top-level-object-name' would be sooo much better ;-) > Isn't there some sort of cacheing of p-p-s? Anyhow, let us rejoice, not > puzzle, over this. :-) The syntax cache was introduced in Emacs 22, hence if you want to keep backward compatibility ...