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 #47 received at 78474 <at> debbugs.gnu.org (full text, mbox):

From: Robert Pluim <rpluim <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: bzg <at> gnu.org, 78474 <at> debbugs.gnu.org, samuel.thibault <at> gnu.org,
 Sebastien.Hinderer <at> inria.fr
Subject: Re: bug#78474: 31.0.50; Wrong char insertion in rxvt
Date: Wed, 16 Jul 2025 17:43:49 +0200
>>>>> On Fri, 11 Jul 2025 22:06:25 +0300, Eli Zaretskii <eliz <at> gnu.org> said:

    >> From: Robert Pluim <rpluim <at> gmail.com>
    >> Cc: Samuel Thibault <samuel.thibault <at> gnu.org>,  78474 <at> debbugs.gnu.org,  Eli
    >> Zaretskii <eliz <at> gnu.org>,  Sebastien.Hinderer <at> inria.fr
    >> Date: Fri, 11 Jul 2025 19:32:43 +0200
    >> 
    >> >>>>> On Fri, 11 Jul 2025 17:20:52 +0200, Bastien Guerry <bzg <at> gnu.org> said:
    >> 
    Bastien> Is there anyone working on this?
    Bastien> It's beyond my skills, but I'd hate to see this bug closed due to lack
    Bastien> of activity/interest.  Let me know if I can help somehow.
    >> 
    >> I can take a look at it. Eli, a clue as to where this optimization
    >> happens in the redisplay code?

    Eli> I mentioned that up-thread: it's in cm.c.

Thanks, Iʼd missed that.

cm.c works out the cost of either

- moving past the destination with tabs then moving left
- moving towards the destination with tabs then moving right
- moving right directly to the destination

According to my instrumentation, emitting the 'move right' command
costs 3 times as much as 'emit tab' or 'move left' here, so itʼs an
optimization that makes sense, especially if the destination is far
away.

So I donʼt think a generic 'make tabs expensive' is a good idea, but I
guess we could add a user option to disable the use of tabs for motion
on ttys.

Robert
-- 




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.