Variable: imenu-allow-duplicate-menu-items
imenu-allow-duplicate-menu-items is a customizable variable defined in
imenu.el.gz.
Value
t
Documentation
Non-nil means that Imenu can include duplicate menu items.
For example, if the buffer contains multiple definitions of function
foo then a menu item is included for each of them.
Otherwise, only the first such definition is accessible from the menu.
This option applies only to an Imenu menu, not also to the use of
command imenu, which uses completing-read to read a menu item.
The use of that command doesn't allow duplicate items.
This variable was added, or its default value changed, in Emacs 31.1.
Probably introduced at or before Emacs version 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/imenu.el.gz
(defcustom imenu-allow-duplicate-menu-items t
"Non-nil means that Imenu can include duplicate menu items.
For example, if the buffer contains multiple definitions of function
`foo' then a menu item is included for each of them.
Otherwise, only the first such definition is accessible from the menu.
This option applies only to an Imenu menu, not also to the use of
command `imenu', which uses `completing-read' to read a menu item.
The use of that command doesn't allow duplicate items."
:type 'boolean
:version "31.1")