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

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

Re: Imenu should avoid positions in comments/strings


From: Dave Love
Subject: Re: Imenu should avoid positions in comments/strings
Date: Wed, 28 Jul 2004 18:26:42 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     I think `imenu--generic-function' should use `syntax-ppss' to check
>     the position before adding to the index.
>
> It could be a good idea.  I don't have time to work on it myself.

It's probably at least as easy as fixing the doc strings, if someone
wants to fix it.  I don't have what I once did here, but I think it's
basically a one-liner where a value is pushed onto `index-alist', i.e.

(unless (save-match-data (syntax-ppss-context (syntax-ppss)))
  ...)




reply via email to

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