[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15560: 24.3.50; [patch] * imenu.el (imenu--generic-function): Don't
bug#15560: 24.3.50; [patch] * imenu.el (imenu--generic-function): Don't generate index for comments area.
Wed, 9 Oct 2013 07:31:11 -0700 (PDT)
> > It is annoying when imenu generates index also for functions found
> > in comments area.
> Yes! And no. It depends what you want at the particular time.
> Sometimes you have multiple versions of a definition, with all
> but one commented out, and you *want* Imenu to present you with
> all of them, for easy navigation among them.
> In the source codes i'm working with, there are very long change history at
> beginning of file. So for me, imenu becomes almost useless. I'm using imenu
> a function indexer, like those in modern IDEs, where they usually ignore
> commentted defs.-William
Did you see my emphatic "Yes!"?
I agree that this is usually the behavior one wants, which is why I
implemented it (years ago), and why I chose ignoring commented definitions
as the default behavior.
My point is that sometimes it can be useful to not ignore commented
definitions, and that users should be the ones to choose the behavior that
is most useful to them. That's all.