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

From: Samuel Thibault <samuel.thibault <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: bzg <at> gnu.org, Sebastien.Hinderer <at> inria.fr, rpluim <at> gmail.com,
 78474 <at> debbugs.gnu.org
Subject: Re: bug#78474: 31.0.50; Wrong char insertion in rxvt
Date: Tue, 22 Jul 2025 20:27:17 +0200
Eli Zaretskii, le mar. 22 juil. 2025 16:31:54 +0300, a ecrit:
> > Eli Zaretskii, le mar. 22 juil. 2025 15:15:28 +0300, a ecrit:
> > > What you copy/paste and what is written to the screen are not
> > > necessarily the same thing.  The effect of TAB on the screen is to
> > > move the cursor (or the rest of the line's text) to the right by a
> > > suitably-computed number of columns, which depends on the column where
> > > you do that.  What is copy/paste'd depends on the program which
> > > serves the copy: some give you TAB, others give you spaces.
> > > 
> > > > Also, if you run:
> > > > 
> > > > echo -e 'a\t'
> > > > 
> > > > is there actually supposed to be some content to copy/paste on the right
> > > > of a?
> > > 
> > > IME, also depends on the program which serves the copy/paste.
> > > 
> > > (I think these aspects are tangents, not an integral part of this
> > > discussion.)
> > 
> > They are fully part of the discussion, because that changes what is
> > actually supposed to be stored in the terminal, and thus what the
> > accessibility feature is supposed to expose to the user: should it
> > expose a tab, or spaces. But if a tab, then how can the cursor be inside
> > the tab when emitting \t\b. That's the *whole* problem at stake.
> 
> So you are saying that even using cursor movement commands could cause
> problems,

The problem is that some people consider \t as not being only a cursor
movement. That's the whole point of the question raised above.

> because it is not known what the terminal will store?  And
> that Emacs should only use SPCes for that reason?

\t alone seems to be not posing problems, and is fine to keep to
optimize some cursor movements. It's \t\b which gets wrong.

Samuel




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.