From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55978: 29.0.50; shell-resync-dirs inf-loops if tty outputs CRNL Date: Tue, 14 Jun 2022 21:20:15 +0200 Message-ID: <87a6af3vdc.fsf@miha-pc> References: <8635g7m8ed.fsf@miha-pc> <83r13rrt8s.fsf@gnu.org> Reply-To: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34796"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55978@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 14 21:10:26 2022 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 1o1Bvl-0008yI-TV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jun 2022 21:10:26 +0200 Original-Received: from localhost ([::1]:39554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1Bvk-0003R8-Dg for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jun 2022 15:10:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1BvO-0003Om-PW for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 15:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41907) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1BvO-0006zN-FL for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 15:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1BvO-0007uP-5X for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 15:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jun 2022 19:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55978 X-GNU-PR-Package: emacs Original-Received: via spool by 55978-submit@debbugs.gnu.org id=B55978.165523377530363 (code B ref 55978); Tue, 14 Jun 2022 19:10:02 +0000 Original-Received: (at 55978) by debbugs.gnu.org; 14 Jun 2022 19:09:35 +0000 Original-Received: from localhost ([127.0.0.1]:35804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1Buw-0007tf-N4 for submit@debbugs.gnu.org; Tue, 14 Jun 2022 15:09:34 -0400 Original-Received: from kamnitnik.top ([209.250.245.214]:49204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1Bus-0007tT-Cb for 55978@debbugs.gnu.org; Tue, 14 Jun 2022 15:09:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1655233768; bh=iVgleZ6eqyEsxawELjWkzIzn+HSJZ36HhUTlwVGLdyM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=T3e7vmnlOsLO3s3EnJmNgQkOHW3x+vwxFyd2UCI9E1fckGy84d0IL8d0qC4GKitPV aK/NDhW3XVgBOmd6D8MLyaz1ZzEUWlac7KmsKB3qa6hbqjCZknuJIqZyX5PsVL3EDo W6fx4K40OdSTqXYPRVuau+FB76ee/WpwQS65G5GRZ5fmDuEBoW3efJ0622xC6wpdwE Fz9B9H5hvxucIGsob1SRcshfCMIfyyt0275N/XDa15TT5kUR9TQFDRMAsJnoj+SiVQ OmGKexZLny3XUHrmbZo1r/FQ3Lc8AYPwKnWh/cpQh66ldGR/nFbTrluoEyEgsi1GPR 6Zw23R+dirY0w== In-Reply-To: <83r13rrt8s.fsf@gnu.org> 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" Xref: news.gmane.io gmane.emacs.bugs:234536 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> Date: Tue, 14 Jun 2022 20:01:30 +0200 >> From: miha--- via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> In M-x shell, execute "stty -nl" to make the tty translate \n into \r\n >> on output, and press "M-RET" (shell-resync-dir). > > I guess this requires to set coding-system for reading the shell > output to -dos? That could be an option, though I was thinking of a bit less invasive and more local fix by performing a simple replace-regexp at the end of the function `shell-eval-command'. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmKo328THG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP3HMD/9ZI++sz+DPVaR7RTAZD/bzsXZ2f/Bt G8JXi/dEdHZu+MhaPAbYyxhR86bz0gIZVf7t0YmnszVSIR0T2FWJbAtHXXcN/pfe jH9rOqquz7NbgkSECt0+FP2HVT2KkyG31ng5vKC0oaDNKT129nPA9aJRmEz4/hHf o7674NLpvOLpRQTPhUdZuZrPIocEKNCbo09LjM4RG2mOXr6Vkox3q2iRP6g9cQ20 9TZ84FO4dZccWIJ4elB302NXL5/8FpPbcOHzj+VEKL8kYSTlzxzAhIFikzfk8jfZ nK+HqykpHU3fJWmySW+Gsigqu8DXs/ji+huOS7d2YNpmD3UxJeCc3Sjp3VccWWd6 UDM5PWgUBBjsKo60e5aecmw/mNuQQ//5GqABwQMKYrqeNydtokB330OUAXwoM2G3 11zaevJvG3pmIRWIOAAirVrCytAhQFpvWh3z3dT9YyLd2ObVec0cXwo32/PnkA1s ISKoPVuKKKa3e/J9I942d3f6tTIJFZclVuYnIDlyjc9VxSPVBJaJvts3ffCPQHUe 2+FMLtY0qeQWcGc5SjTrVKEtyv1Ctxxs2XNUgkZdPP2YEjyxvlRR5yauk26dELbt 3jxNbF/ubppbd9PWdx+qppzjkQ5gi1JlMKsg+U9141+V1b1N/2GJxJxDcseG2BAN RAa4gUFX+CYdFQ== =hzoa -----END PGP SIGNATURE----- --=-=-=--