From: Eli Zaretskii <eliz@gnu.org>
To: Jordan Ellis Coppard <jc+o.emacs@wz.ht>,
Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 73473@debbugs.gnu.org
Subject: bug#73473: 31.0.50; Minibuffer completions include nonsense prefix candidates
Date: Wed, 25 Sep 2024 19:09:31 +0300 [thread overview]
Message-ID: <86r097btqc.fsf@gnu.org> (raw)
In-Reply-To: <4d65c6fd-45fb-448d-b571-330c85e01204@wz.ht> (bug-gnu-emacs@gnu.org)
merge 73473 72787
thanks
> Date: Wed, 25 Sep 2024 19:54:59 +0900
> From: Jordan Ellis Coppard via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> I've noticed that my completions have slowed down A LOT on recent Emacs
> builds, it turns out nonsense completion candidates (which I am calling
> "prefix candidates") are being included as... completion candidates. By
> my rough estimate this results in about... 10,000 extra completion
> candidates when invoking `C-h o` (with my personal Emacs configuration).
>
> To reproduce, using `emacs -Q` of course:
>
> 1. Open Emacs.
> 2. C-h o foo TAB
>
> Observe that completion candidate `footnote-` is listed and that there
> are 80 completion candidates.
>
> If I do the same on the currently released Emacs or another (older)
> build of Emacs (30.0.50) there are 79 (not 80) completion candidates and
> `footnote-` is not listed as one.
>
> This seems to be occurring for almost every unique prefix possible,
> compounding as time goes on. So later on `f-` is listed as a completion
> candidate, then also `go-` and so on. These are not valid completion
> candidates. `footnote-` is not a symbol. Over time the huge increase in
> completion candidate volume (and perhaps what is causing this behind the
> scenes) results in such a slowdown that I can visibly see Emacs crawl to
> 1 FPS when I type in minibuffer completion, when the exact same init.el
> on said older 30.0.50 is faster.
>
> This is reproduceable on `emacs -Q` as above, (and the useful bug report
> probably ends right here) but as an aside: my configuration is minimal,
> my Emacs starts up in about 0.3s and I keep things minimal because I do
> not want Emacs to ever take longer than instantaneously to respond to
> keystrokes (if it has to do some long-running job, or something which
> takes time that's different since feedback that such a thing has kicked
> off would/should still be instant).
Thanks, this is a known bug#72787. I hope someone will be able to
look into it soon.
> Tangentially to this, it would be nice if completions could be decoupled
> from the UI (i.e. they could stream in, with an API to let the user know
> when the list is complete) because even on 30.0.50 I can often times
> type faster than completion can handle which drives me insane (UI
> hitching)... but that's an aside.
Please file a separate feature request for this, if you think we
should change the design so radically.
next prev parent reply other threads:[~2024-09-25 16:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-25 10:54 bug#73473: 31.0.50; Minibuffer completions include nonsense prefix candidates Jordan Ellis Coppard via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-25 16:09 ` Eli Zaretskii [this message]
2024-09-26 6:21 ` Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-27 15:12 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-27 15:35 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86r097btqc.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=73473@debbugs.gnu.org \
--cc=jc+o.emacs@wz.ht \
--cc=monnier@iro.umontreal.ca \
/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 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).