emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: imenu fails in mode without comment-start-skip defined


From: Stefan Monnier
Subject: Re: imenu fails in mode without comment-start-skip defined
Date: Sat, 27 Nov 2004 16:03:18 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

>> It's just `(syntax-ppss-context (syntax-ppss))'.  That says whether
>> point is in a string or comment, assuming any necessary syntax
>> properties are installed, but it's what Stefan is arguing against.
>> 
>> I tend to think that efficiency would call for other changes.

`syntax-ppss' is pretty efficient.

> Python mode's Imenu code uses it (implicitly if I remember correctly).
> That seems to work OK on an oldish Sun Ultra 5 with an 80k Python
> file, which was the largest I could find.  I don't know how
> representative that is of other modes, though -- Python tends to have
> largeish blocks of strings as function doc.

Indeed, it shouldn't cause any performance trouble.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]