From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#63539: 29.0.90; TRAMP fails to detect shell prompts containing ] Date: Mon, 22 May 2023 21:17:27 +0200 Message-ID: <87mt1wdvlk.fsf@gmx.de> References: <877ct8w4bs.fsf@gmx.de> <87sfbvuk4r.fsf@gmx.de> <87h6sbufv3.fsf@gmx.de> <87bkiivqvu.fsf@gmx.de> <877ct6vpdd.fsf@gmx.de> <871qjevlzc.fsf@gmx.de> <87r0rdtzax.fsf@gmx.de> <877ct3tife.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12015"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63539@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 22 21:18:19 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q1B2x-0002pF-6Z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 May 2023 21:18:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1B2l-000433-Es; Mon, 22 May 2023 15:18:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1B2i-0003zB-18 for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 15:18:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1B2g-0006ax-Ns for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 15:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1B2g-0005qa-GT for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 15:18:02 -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, 22 May 2023 19:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63539 X-GNU-PR-Package: emacs Original-Received: via spool by 63539-submit@debbugs.gnu.org id=B63539.168478305922432 (code B ref 63539); Mon, 22 May 2023 19:18:02 +0000 Original-Received: (at 63539) by debbugs.gnu.org; 22 May 2023 19:17:39 +0000 Original-Received: from localhost ([127.0.0.1]:36658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1B2I-0005pj-Jl for submit@debbugs.gnu.org; Mon, 22 May 2023 15:17:38 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:59725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1B2G-0005pU-AO for 63539@debbugs.gnu.org; Mon, 22 May 2023 15:17:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1684783048; i=michael.albinus@gmx.de; bh=W0nrR7BENCNijcgLgn6KVABeQEJt3bhtouxcsiQjM+o=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=ZMfxeD96V7jzigrRxh5jqp0E3Te6GrD/NHbSYb21TFT1n/GMeTlx+YfVFbp0ZSaoP idLk4oJXTon8bAwjR6Y4Cb5rp69vmcnTqilfbhVe1B4MV1scRJdr6EV8WlfzJ3KWef LbNoH/Y90eUQ/A/dlp8mv27z46cxFinNZergHZrMXvL1uw9OyVTWUzSQbab5/KlQCS E+iDMX+4PtxV4LVok/sJs6CvrLDIp5d4U/LrVCpgzVM1B4NYVTpQ2NPbfiaytgW8lw L2qb5dy1BwaYnLowyzy25BYgWfzv6T7lAFOWHAGccFZbnEUs/63azmVboFliT3HmTH eEAUnzAr5UuqQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.13]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MowGa-1qU7Xl3r8I-00qWE9; Mon, 22 May 2023 21:17:28 +0200 In-Reply-To: (Spencer Baugh's message of "Mon, 22 May 2023 13:30:42 -0400") X-Provags-ID: V03:K1:JdTbrAIAFFdgdfWseCLNkGmfoD4beOK+EyH+fXChGje97xIHnJ0 63S1tAQLFKrTUWgtfauSfCGyCykz4KtViqW2I/R1WYcwEQaTm774pfZKO6Y5bmO+Jm/wsRV kT9i1uHP6QmTmlVUj//LtozUngnKWqMNDpQbu9xrB1gsanMTmZTwPrsJ0L/cvc06Il0tI+I POlizA72RE6wW8g6kh/iQ== UI-OutboundReport: notjunk:1;M01:P0:Vv3q59ndrfw=;GWCvzJL4OqCF32XZ905L693juoi 3FxN58CMfrMjL99yKyB24S4fLVIJA6fvqoBx7jWFAw9nX1pzRVrIJpxaH+RUbAV1SOrjMcYDy bV86nUN58XMcryopI62Cy67vaS3LnA230Rw3DO/xv3p0U1h4ccbsf/aab4b8DcROiPhs1BTGn uMhSy2XJYbEql1aJ19mkXm8emDrlzNyajD7ejm431WXvbRyfMy56sCV093Dn3POrJ7AiMdbQO uHjvXcFkvuQNHrxyCa3P80GEUs7/Y0tklC6f0KhmcWIY7Sf/jC8zzN3JCO92etKkoUR3bSlv9 OdrKlMTnR8Q9haJOx77kuNPJuFPpG5dljTmEmR5CRGUrUADoJiqIty8yNtYKMvXHRmm9LoO8f 7l9qJAIlt06JNZ9eO8CTATZpFtgw+o10aUxq+TzvY2rEWFPW48ogGPsxiuiv2z3uDGgbmD09D R+1c7bVF9DnFeUyI7aACO6jySy2QDQ6svNQ6nnefl4kejG/OtAITWgUSbpyU7oKN6xc0hbYzE 1VlLv7ltNuMpP7pw0Em+4syRwdYXowb4JlfpuUkgAKEtpBgr+R4aRn/QzZTtGKXuFMKYWG8Mm d3iEdYr/c+Eq4BC4r8rO8fG0oTeWXksqiDjYqMQRlRIxljcbLifPNTaZKpwPhfGFvkUFI+nTH gl1r/b6cBi3jdvV5ceEbmR1KDA1txe33kByOwmVKZImjuNs68OOC6uNxwMOf6SWtxrxJipxbM kj7LvUA33mchLJ742fhJGRp258D7qXU71D/Wgdl2cuCOMEbj3v9sUIzRkVIluSnVmqLpDTVf X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262184 Archived-At: Spencer Baugh writes: Hi Spencer, > Hmm, this change doesn't seem to fix my issue. In fact, this change > introduces a regression for me: I'm no longer able to use TRAMP ssh on > my other machines which have color codes at the end of their prompt, > which did work out of the box on Emacs 29! > > I'm guessing the reason is because this version of the regexp doesn't > support multiple escape codes, or blanks in between/at the end of the > escape codes? Blanks as parts of escape codes are unlikely. Multiple escape codes are not regarded indeed, my patch did expect that there is not more as one escape code at the end of the shell prompt. Your example is an indication of escape codes, mixed inside the shell prompt. My first attempt (removing all escape codes from the buffer region) did handle that. But as said, there were other regressions with that attemot. Hmm. Could you please send me a tramp-verbose 10 trace of your failing test? Best regards, Michael.