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: Wed, 24 Nov 2004 23:23:20 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.2 (gnu/linux)

Richard Stallman <address@hidden> writes:

>       What you really want to test is whether the
>     position is in a string or comment (regardless of whether the mode
>     uses comments or string syntax).  That's why I suggested a patch using
>     `syntax-ppss' before.
>
> I didn't want to try to figure out how to go that far.
> If someone else wants to, please go ahead.

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.




reply via email to

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