[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.
Tue, 8 Oct 2013 14:58:04 -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.
> imenu will generate two filesys_init, which makes imenu useless.
No, not useless - see above. Sometimes annoying, sometimes useful.
> This patch skips comment area completely. In this case, it will
> generate only one filesys_init.
It's not great to impose this behavior on users: they lose a feature
that way. Better to let users choose, and let them toggle the behavior.
(I do that in Imenu+, for instance: the Imenu menu always contains
these additional menu items, which affect Imenu behavior: Toggle
Case-Sensitive Name-Sort, Toggle Ignoring Commented Defs, Toggle