GNU bug report logs - #78935
30.1.90; [PATCH] Let Imenu optionally allow duplicate menu entries

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Mon, 30 Jun 2025 22:14:01 UTC

Severity: normal

Tags: patch

Found in version 30.1.90

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 78935 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 78935 <at> debbugs.gnu.org
Subject: Re: bug#78935: 30.1.90;
 [PATCH] Let Imenu optionally allow duplicate menu entries
Date: Sat, 05 Jul 2025 11:59:34 +0300
> Date: Fri, 4 Jul 2025 16:46:21 +0000
> From:  Drew Adams via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Attached is a slightly better patch.  The option is
> tested at the level of the mapcar, not within the
> function arg to mapcar.
> 
> Also, the doc string of the new option mentions that
> the option applies only to a Imenu menu, not also to
> the use of command `imenu', which uses `completing-read'.

Thanks.

> +(defcustom imenu-allow-duplicate-menu-items-flag 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 :group 'imenu)

Please add a suitable :version tag.

Also, this new user option should be called out in NEWS.




This bug report was last modified 26 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.