[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Re: Emacs 22.2 release plans - request for a slight
From: |
martin rudalics |
Subject: |
Re: address@hidden: Re: Emacs 22.2 release plans - request for a slight delay.] |
Date: |
Mon, 17 Mar 2008 10:30:35 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
> 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 ...