GNU bug report logs - #78474
31.0.50; Wrong char insertion in rxvt

Previous Next

Package: emacs;

Reported by: Bastien Guerry <bzg <at> gnu.org>

Date: Sat, 17 May 2025 22:56:02 UTC

Severity: normal

Found in version 31.0.50

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

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: bzg <at> gnu.org, Sebastien.Hinderer <at> inria.fr, samuel.thibault <at> gnu.org,
 78474 <at> debbugs.gnu.org
Subject: Re: bug#78474: 31.0.50; Wrong char insertion in rxvt
Date: Tue, 22 Jul 2025 15:03:52 +0300
> From: Robert Pluim <rpluim <at> gmail.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  Seb Hinderer
>  <Sebastien.Hinderer <at> inria.fr>,  bzg <at> gnu.org,  78474 <at> debbugs.gnu.org
> Date: Mon, 21 Jul 2025 18:19:24 +0200
> 
>     Samuel> It's actually even slower on my box.
> 
> You benchmarked moving by one character. Moving by tabs can move in
> multiples of 8 characters, so I doubt itʼs that cut and dried.
> 
> My testing shows that itʼs slower to have tabs disabled, in that visiting
> src/xdisp.c and pressing C-v repeatedly makes redisplay freeze earlier
> than when theyʼre enabled (Emacs eventually catches up).

I have no doubt that the use of TABs speeds up display on average,
because its "cost" notion is based on counting bytes written to the
screen.  It chooses the method that writes the smallest number of
bytes, and that must be faster in general.

Of course, specially-tailored cases could be concocted which show the
contrary, but that's not what this code is about.  The request in this
bug report, AFAIU, was to disable the use of TABs _in_all_cases_, not
just in the particular case shown by the recipe at the beginning of
the discussion.

For users who use screen-reading software the speed gains are
outweighed by the correctness of the spoken text, so disabling TABs in
those cases makes sense.  But if we want to do that automatically, we
should find some reasonably-accurate indication of such uses, like we
do with w32-use-visible-system-caret on MS-Windows.  If the number of
false positives is low, we could risk disabling TABs for a small
fraction of users who don't actually use screen readers.




This bug report was last modified 1 day ago.

Previous Next


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