unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#73117: 30.0.90; Imenu missing entries when flattening by group
@ 2024-09-08  1:41 Troy Brown
  2024-09-08  6:53 ` Juri Linkov
  0 siblings, 1 reply; 9+ messages in thread
From: Troy Brown @ 2024-09-08  1:41 UTC (permalink / raw)
  To: 73117

This issue appears to be similar to the issue reported in 70846, but
this is specifically regarding when Imenu is configured to flatten
into "groups" (as opposed to "annotation" as was reported there).
When "imenu-flatten" is set to "group", I see an issue where nested
entries, with the same name but belonging to different parents, aren't
all displayed.

I've included an example below (based on the example menu
configuration described in 70846).  This example cycles through
flattening based on "index", "group" and "annotation" with the example
menu configuration.

For "prefix" and "annotation" configurations, it appears to work
correctly, as pressing "M-<down>" when the menu prompt is displayed, I
can see both entries identified in the "*Completions*" buffer.

However, when I do this with "imenu-flatten" set to "group" and press
"M-<down>" to display the completions window, the window indicates "2
possible completions" but only one is actually displayed and
selectable (i.e., the one under "Bar").  The menu entry "Foo" under
"Baz" is not displayed at all and it appears there is no way to select
it.

```
;; begin
(progn
  (require 'imenu)
  (dolist (flatten '(prefix group annotation))
    (setq imenu-flatten flatten)

    (imenu-choose-buffer-index (format "(%s) Index item: " flatten)
                               `(("Bar" . (("Foo" . ,(point-min-marker))))
                                 ("Baz" . (("Foo" . ,(point-max-marker))))))))
;; end
```





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-09-20  6:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-08  1:41 bug#73117: 30.0.90; Imenu missing entries when flattening by group Troy Brown
2024-09-08  6:53 ` Juri Linkov
2024-09-08 14:19   ` Troy Brown
2024-09-08 16:35     ` Juri Linkov
2024-09-08 17:31       ` Troy Brown
2024-09-20  6:58         ` Juri Linkov
2024-09-08 18:28       ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-08 19:25         ` Troy Brown
2024-09-15 15:58           ` Troy Brown

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).