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: Mon, 22 Nov 2004 21:55:03 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.2 (gnu/linux)

Richard Stallman <address@hidden> writes:

> Is this enough to do the job?  I would think so; if no comment syntax
> is defined, it assumes the line is not in a comment.

Actually, the trouble is anyway that this only takes into account
comments, not strings.  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.

E.g. currently in Lisp mode Imenu erroneously matches something like

"...
 (defun xx ())
...
"




reply via email to

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