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: Dave Love
Subject: Re: imenu fails in mode without comment-start-skip defined
Date: Sat, 27 Nov 2004 17:08:54 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.2 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     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.

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.

If this sort of thing isn't efficient enough, it needs speeding up
(and having the syntaxification decoupled from font-lock).  I don't
mean do it now, and I should probably have done it long ago.




reply via email to

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