GNU bug report logs - #28139
25.2; TRAMP vs bash 4.4 / readline 7.0 "bracketed paste" mode

Previous Next

Package: emacs;

Reported by: Daniel Pittman <slippycheeze <at> google.com>

Date: Fri, 18 Aug 2017 15:34:01 UTC

Severity: normal

Found in version 25.2

Fixed in version 26.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


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

From: Daniel Pittman <slippycheeze <at> google.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 28139 <at> debbugs.gnu.org
Subject: Re: bug#28139: 25.2; TRAMP vs bash 4.4 / readline 7.0 "bracketed
 paste" mode
Date: Tue, 31 Oct 2017 16:40:13 -0400
[Message part 1 (text/plain, inline)]
On Fri, Aug 25, 2017 at 3:31 AM, Michael Albinus <michael.albinus <at> gmx.de>
wrote:

> Daniel Pittman <slippycheeze <at> google.com> writes:
> >     (I wouldn't reject a patch from your side :-)
> >
> > If I confirm it still exists in the current version I'll try and cut a
> > patch for this, but my contribution time is limited, I'm afraid.
>
> Take your time, there's no rush. The next regular Tramp release is
> scheduled for end of the year.
>

Please find attached a patch that resolves the bracketed paste issues
nicely for me.  It does so by setting two environment variables when
initially establishing the remote shell: `EMACS=t`, which bash interprets
to disable line editing, and `TERM=dumb`, which is a better match than the
default interactive terminal type I get.

Google own the copyright on this change, such as it is, but they have
papers on file with the FSF.  (As do I, for TRAMP, though I have not
contributed since 2000 or so, haha.)
[Message part 2 (text/html, inline)]
[0001-Inform-shells-to-avoid-fancy-features-more-vigorousl.patch (application/octet-stream, attachment)]

This bug report was last modified 7 years and 284 days ago.

Previous Next


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