From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#28139: 25.2; TRAMP vs bash 4.4 / readline 7.0 "bracketed paste" mode Date: Mon, 21 Aug 2017 18:17:40 +0200 Message-ID: <871so4ao9n.fsf@detlef> References: <87mv6vjv6c.fsf@detlef> <8760dgapqm.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503332304 9693 195.159.176.226 (21 Aug 2017 16:18:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2017 16:18:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 28139@debbugs.gnu.org To: Daniel Pittman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 21 18:18:19 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 1djpP3-0001xI-E7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Aug 2017 18:18:13 +0200 Original-Received: from localhost ([::1]:58931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djpP9-0001Be-Rm for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Aug 2017 12:18:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djpOv-00018m-1e for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 12:18:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djpOr-0002d5-PZ for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 12:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39391) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1djpOr-0002d1-NH for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 12:18:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1djpOr-0004Fl-Hw for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 12:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Aug 2017 16:18:01 +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.150333227616337 (code B ref 28139); Mon, 21 Aug 2017 16:18:01 +0000 Original-Received: (at 28139) by debbugs.gnu.org; 21 Aug 2017 16:17:56 +0000 Original-Received: from localhost ([127.0.0.1]:48072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djpOl-0004FQ-KQ for submit@debbugs.gnu.org; Mon, 21 Aug 2017 12:17:55 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:62057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djpOj-0004F9-IG for 28139@debbugs.gnu.org; Mon, 21 Aug 2017 12:17:53 -0400 Original-Received: from detlef.gmx.de ([213.220.149.52]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LdLw5-1dJKCO2waH-00iWAH; Mon, 21 Aug 2017 18:17:45 +0200 In-Reply-To: (Daniel Pittman's message of "Mon, 21 Aug 2017 12:01:48 -0400") X-Provags-ID: V03:K0:YY9o+xGQHWlM6O3JOgm/WEHo00N/u/8HgTDB3itmen+d4UCMO4a mUGD99a43mMN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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:136006 Archived-At: Daniel Pittman writes: > However, `ansi-color-filter-region` and friends from the shipped ANSI > SGR->face handling library can strip all control sequences out of a > region, or string, and might be useful here; that would allow TRAMP to > become insensitive to ANSI control codes injected anywhere into the > output, which will also fix the next time a shell decides to add some > additional terminal integration like bracketed paste mode. Tramp does already something like this on its own, using `tramp-display-escape-sequence-regexp' and `tramp-device-escape-sequence-regexp'. Let me check, whether I could rewrite this to the more general `ansi-color-filter-region`. (I wouldn't reject a patch from your side :-) Best regards, Michael.