From: Troy Brown <brownts@troybrown.dev>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 73117@debbugs.gnu.org, mail@daniel-mendler.de,
Juri Linkov <juri@linkov.net>
Subject: bug#73117: 30.0.90; Imenu missing entries when flattening by group
Date: Sun, 5 Jan 2025 19:15:47 -0500 [thread overview]
Message-ID: <CABvCZ43Z98vcaBvKOKWudzk3rgsp=0MJrFJhqwad54=kftfLjA@mail.gmail.com> (raw)
In-Reply-To: <86bk086so2.fsf@gnu.org>
On Sat, Sep 28, 2024 at 5:20 AM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > Cc: 73117@debbugs.gnu.org, Daniel Mendler <mail@daniel-mendler.de>
> > From: Juri Linkov <juri@linkov.net>
> > Date: Fri, 20 Sep 2024 09:58:24 +0300
> >
> > > The following example configures `imenu-flatten" to "group" and then
> > > shows the menu, first with `completions-format` set to "horizontal"
> > > and then "vertical".
> > >
> > > ```elisp
> > > (progn
> > > (setopt completions-group t)
> > > (setopt imenu-eager-completion-buffer nil)
> > > (setopt minibuffer-visible-completions t)
> > > (setopt imenu-flatten 'group)
> > >
> > > (require 'imenu)
> > >
> > > (dolist (format '(horizontal vertical))
> > > (setopt completions-format format)
> >
> > Any fixes for completion--insert-horizontal should be pushed
> > only to master, not to the release branch.
> >
> > But for the release branch we should push the documentation fixes
> > that will mention all prerequisites for this feature to work
> > correctly:
>
> Feel free to install on the release branch, and thanks.
While discussing a similar issue for Vertico here
(https://github.com/minad/vertico/discussions/553), Daniel discovered
that icomplete-mode also won't display all of the grouped candidates.
The following is a reproducer which can be used to demonstrate this
issue. In the reproducer, the first time through the loop,
icomplete-mode is not enabled and the completion buffer shows all four
possible candidates along with their corresponding groups, however the
next time through the loop, icomplete-vertical-mode is enabled and
only 3 of the 4 candidates are displayed. See his comments in the
provided link for his take on the issue as well as his discovery of
yet more places that groups don't seem to work correctly (e.g.,
completion--insert-column).
```elisp
(progn
(setopt completions-group t)
(setopt completions-format 'vertical)
(setopt imenu-flatten 'group)
(setopt icomplete-show-matches-on-no-input t)
(require 'imenu)
(dolist (arg '(-1 +1))
(icomplete-mode arg)
(icomplete-vertical-mode arg)
(setopt imenu-eager-completion-buffer icomplete-vertical-mode)
(imenu-choose-buffer-index (format "(icomplete-vertical-mode = %s)
Index item: " icomplete-vertical-mode)
`(("XYZ" . (("123" . ,(point-min-marker))))
("ABC" . (("124" . ,(point-min-marker))))
("Bar" . (("Foo" . ,(point-min-marker))))
("Baz" . (("Foo" . ,(point-max-marker))))))))
```
next prev parent reply other threads:[~2025-01-06 0:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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-28 9:20 ` Eli Zaretskii
2025-01-06 0:15 ` Troy Brown [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABvCZ43Z98vcaBvKOKWudzk3rgsp=0MJrFJhqwad54=kftfLjA@mail.gmail.com' \
--to=brownts@troybrown.dev \
--cc=73117@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=juri@linkov.net \
--cc=mail@daniel-mendler.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.