From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.bugs Subject: 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-ID: References: <87mv6vjv6c.fsf@detlef> <8760dgapqm.fsf@detlef> <871so4ao9n.fsf@detlef> <87pobkdrxp.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="001a113ff4807246e5055cddc5c5" X-Trace: blaine.gmane.org 1509482538 18697 195.159.176.226 (31 Oct 2017 20:42:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2017 20:42:18 +0000 (UTC) Cc: 28139@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 31 21:42:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9dMK-0003cF-Kj for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Oct 2017 21:42:04 +0100 Original-Received: from localhost ([::1]:47299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9dMS-0000aT-2a for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Oct 2017 16:42:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e9dML-0000aD-OX for bug-gnu-emacs@gnu.org; Tue, 31 Oct 2017 16:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e9dMI-0002st-JD for bug-gnu-emacs@gnu.org; Tue, 31 Oct 2017 16:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35962) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e9dMI-0002so-Cu for bug-gnu-emacs@gnu.org; Tue, 31 Oct 2017 16:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e9dMI-0006Q7-3D for bug-gnu-emacs@gnu.org; Tue, 31 Oct 2017 16:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Pittman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Oct 2017 20:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28139 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28139-submit@debbugs.gnu.org id=B28139.150948246124591 (code B ref 28139); Tue, 31 Oct 2017 20:42:02 +0000 Original-Received: (at 28139) by debbugs.gnu.org; 31 Oct 2017 20:41:01 +0000 Original-Received: from localhost ([127.0.0.1]:44643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9dLJ-0006OM-G5 for submit@debbugs.gnu.org; Tue, 31 Oct 2017 16:41:01 -0400 Original-Received: from mail-qt0-f170.google.com ([209.85.216.170]:47906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9dLH-0006O5-JW for 28139@debbugs.gnu.org; Tue, 31 Oct 2017 16:40:59 -0400 Original-Received: by mail-qt0-f170.google.com with SMTP id z50so372410qtj.4 for <28139@debbugs.gnu.org>; Tue, 31 Oct 2017 13:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nT5Nanadmu+fhGeMCU7xWbeEftFmZsygY1w+m8eGIfw=; b=FzjONoEJ9GXgYD9rerGKzIrNFjVicHh4QBWljtba539uh89qv9Y3T4+8/Z+EUhbwU7 qK6EB0E6KcAL9lE2T1IJcaKCuLTtBcAsEyeYlNtbsSApUiW17RSXAqyicoXkWHvmXr0O CJ1x+8Pc5QfOnRqEHHzcodetczMP8D7JncmZaUEmSzC3Udm8CDl6O6G9CpO4Ge7SgjHp tOcOSRrP3hv1RiKDp9InS27fc4zlbUBnVzyMuCl91QeHBLg4olCenITUm0CM1ega/lPr XWbFfS3GSBMVg1EbgwIpdwRQ5CInhb3xOKmwJPBPZS3qjQZ/n9VnsQvfTsm7TUiZ8Yjs FJtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nT5Nanadmu+fhGeMCU7xWbeEftFmZsygY1w+m8eGIfw=; b=Gygw8kmmcwZfcosfPNLt4UpA16UNMlCdeXzICdof75vEwdIKUUzL3t6RqmWQEoQtQ7 eyEcBFiWxrH2XtbyE5Z2MZhP0uDmTcRmXgpxGMcu3Wy481dADp9yZ73fmzJPf5h3Dx9L sxkgbfKJMtIAIeBPyelrS+ubMYH63GUEm3IPXaFz/etsh1pjpailp3R0uLx+4z07xej+ IG7G2nLnW1uzj22ASd1PmS1gprsaOVHg2dSLhdFoIwwX2vlcy+TVNmRxdP0KZIwINao0 bhSqY+Bz2CTbaIM1WDkhdQQ1WXNfgacf+qqbnC21n5Kn5YYBp+lbCwrWa/U19DEFpvXr 4AEw== X-Gm-Message-State: AMCzsaWd1smS3gvoqTrLCQkI48WS4eiMD5Z93dshY4to+zefltnUng53 0F0e2locFups2wwdUMYUb5ShPGudROUFfQ7SayrzqA== X-Google-Smtp-Source: ABhQp+ShLAYqWg+JxNA4/vVbkajXp82IrtP9R8XenJOFUe7inzWQiQC+tMAhf89U9ApUIS+xy69L4nRbtsiC222Z2OE= X-Received: by 10.200.42.104 with SMTP id l37mr4709519qtl.73.1509482453635; Tue, 31 Oct 2017 13:40:53 -0700 (PDT) Original-Received: by 10.237.51.98 with HTTP; Tue, 31 Oct 2017 13:40:13 -0700 (PDT) In-Reply-To: <87pobkdrxp.fsf@detlef> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:139285 Archived-At: --001a113ff4807246e5055cddc5c5 Content-Type: multipart/alternative; boundary="001a113ff4807246e1055cddc5c3" --001a113ff4807246e1055cddc5c3 Content-Type: text/plain; charset="UTF-8" On Fri, Aug 25, 2017 at 3:31 AM, Michael Albinus wrote: > Daniel Pittman 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.) --001a113ff4807246e1055cddc5c3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On F= ri, Aug 25, 2017 at 3:31 AM, Michael Albinus <michael.albinus@gmx.de= > wrote:
D= aniel Pittman <slippycheeze@g= oogle.com> writes:
>=C2=A0 =C2=A0 =C2= =A0(I wouldn't reject a patch from your side :-)
>
> If I confirm it still exists in the current version I'll try and c= ut 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 f= ind attached a patch that resolves the bracketed paste issues nicely for me= .=C2=A0 It does so by setting two environment variables when initially esta= blishing the remote shell: `EMACS=3Dt`, which bash interprets to disable li= ne editing, and `TERM=3Ddumb`, which is a better match than the default int= eractive terminal type I get.

Google own the copyr= ight on this change, such as it is, but they have papers on file with the F= SF.=C2=A0 (As do I, for TRAMP, though I have not contributed since 2000 or = so, haha.)


--001a113ff4807246e1055cddc5c3-- --001a113ff4807246e5055cddc5c5 Content-Type: application/octet-stream; name="0001-Inform-shells-to-avoid-fancy-features-more-vigorousl.patch" Content-Disposition: attachment; filename="0001-Inform-shells-to-avoid-fancy-features-more-vigorousl.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j9g2uqjj0 RnJvbSA1Nzg1OWM4ZGFhZDU0Yjg5NWEyZjUwY2U5N2RiOWJlOWU0MjY3ZmYzIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEYW5pZWwgUGl0dG1hbiAgPHNsaXBweWNoZWV6ZUBnb29nbGUu Y29tPgpEYXRlOiBUdWUsIDMxIE9jdCAyMDE3IDE2OjAyOjI2IC0wNDAwClN1YmplY3Q6IFtQQVRD SF0gSW5mb3JtIHNoZWxscyB0byBhdm9pZCBmYW5jeSBmZWF0dXJlcyBtb3JlIHZpZ29yb3VzbHkK ClNldHRpbmcgdGhlIGVudmlyb25tZW50IHZhcmlhYmxlIGBFTUFDUz10YCB0cmlnZ2VycyBiYXNo KDEpIHRvIGRpc2FibGUKdmFyaW91cyBsaW5lIGVkaXRpbmcgZmVhdHVyZXMgLSBjcml0aWNhbGx5 LCBpbmNsdWRpbmcgYnJhY2tldGVkIHBhc3RlCm1vZGUsIHdoaWNoIFRSQU1QIGRvZXNuJ3Qgd29y ayB3aXRoLgoKSW4gYWRkaXRpb24sIHNldHRpbmcgYFRFUk09ZHVtYmAgcHJvdmlkZXMgYWRkaXRp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