From: Eli Zaretskii <eliz@gnu.org>
To: Sean Whitton <spwhitton@spwhitton.name>
Cc: joaotavora@gmail.com, 72826@debbugs.gnu.org, juri@linkov.net
Subject: bug#72826: 30.0.90; icomplete-in-buffer becomes unusably slow in large Eshell
Date: Fri, 04 Oct 2024 14:52:21 +0300 [thread overview]
Message-ID: <86o740xeyy.fsf@gnu.org> (raw)
In-Reply-To: <87a5fkyvuk.fsf@melete.silentflame.com> (message from Sean Whitton on Fri, 04 Oct 2024 19:02:27 +0800)
> From: Sean Whitton <spwhitton@spwhitton.name>
> Cc: joaotavora@gmail.com, 72826@debbugs.gnu.org, juri@linkov.net
> Date: Fri, 04 Oct 2024 19:02:27 +0800
>
> On Fri 04 Oct 2024 at 01:53pm +03, Eli Zaretskii wrote:
>
> >> From: Sean Whitton <spwhitton@spwhitton.name>
> >> Cc: joaotavora@gmail.com, 72826@debbugs.gnu.org, juri@linkov.net
> >> Date: Fri, 04 Oct 2024 17:02:25 +0800
> >>
> >> Cases where the old code and new code are different are when the
> >> minibuffer prompt contains line breaks. The new code effectively
> >> ignores all parts of the minibuffer prompt except its last line. I
> >> think that's correct, and the old code could have calculated an overly
> >> large width if previous lines of the minibuffer prompt were longer than
> >> the final line.
> >
> > So you are saying that the old code never worked correctly for
> > minibuffer prompts that include embedded newlines? Then how come no
> > one complained about that before? This bug is not about incorrect
> > result, it's about slow responses, and that's something entirely
> > different.
>
> Well, not many people use Icomplete mode, and not many minibuffer
> prompts have embedded newlines.
>
> If you prefer I could conditionalise the code so it does exactly the
> same as it always did in the minibuffer, and only does something
> different when completing in a region in a non-minibuffer?
That's not exactly my problem. I actually wonder whether the current
code does TRT when there are embedded newlines, regardless of whether
it's slow or not. Can you look at that? If the current code works
correctly, then I think your analysis of what is wrong with it might
not be correct/complete, and there's some other factor at work here.
IOW, I think we should understand the issue and its root causes
completely before we discuss the solution.
next prev parent reply other threads:[~2024-10-04 11:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 7:26 bug#72826: 30.0.90; icomplete-in-buffer becomes unusably slow in large Eshell Sean Whitton
2024-08-27 12:43 ` Eli Zaretskii
2024-10-03 14:28 ` Sean Whitton
2024-10-03 15:16 ` Eli Zaretskii
2024-10-04 0:20 ` Sean Whitton
2024-10-04 6:11 ` Eli Zaretskii
2024-10-04 9:02 ` Sean Whitton
2024-10-04 10:53 ` Eli Zaretskii
2024-10-04 11:02 ` Sean Whitton
2024-10-04 11:52 ` Eli Zaretskii [this message]
2024-10-04 14:09 ` Sean Whitton
2024-10-04 14:33 ` Eli Zaretskii
2024-10-05 0:21 ` Sean Whitton
2024-10-05 7:16 ` Eli Zaretskii
2024-10-05 7:44 ` Sean Whitton
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=86o740xeyy.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=72826@debbugs.gnu.org \
--cc=joaotavora@gmail.com \
--cc=juri@linkov.net \
--cc=spwhitton@spwhitton.name \
/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.