From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55978: 29.0.50; shell-resync-dirs inf-loops if tty outputs CRNL Date: Tue, 14 Jun 2022 22:17:58 +0300 Message-ID: <83letzrr4p.fsf@gnu.org> References: <8635g7m8ed.fsf@miha-pc> <83r13rrt8s.fsf@gnu.org> <87a6af3vdc.fsf@miha-pc> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40289"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55978@debbugs.gnu.org To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 14 21:19:16 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 1o1C4J-000ALO-Tw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jun 2022 21:19:16 +0200 Original-Received: from localhost ([::1]:43252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1C4I-0007bn-IT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jun 2022 15:19:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1C47-0007b8-E2 for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 15:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1C47-0008L9-4a for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 15:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1C47-00088O-1W for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 15:19:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jun 2022 19:19: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.165523429731186 (code B ref 55978); Tue, 14 Jun 2022 19:19:02 +0000 Original-Received: (at 55978) by debbugs.gnu.org; 14 Jun 2022 19:18:17 +0000 Original-Received: from localhost ([127.0.0.1]:35817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1C3M-00086v-Po for submit@debbugs.gnu.org; Tue, 14 Jun 2022 15:18:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1C3K-00086h-IG for 55978@debbugs.gnu.org; Tue, 14 Jun 2022 15:18:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42900) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1C3E-0008GU-Q3; Tue, 14 Jun 2022 15:18:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HT+h0yWlz/RCy91dnOgbVvvjFU71Swsmjv210CktsYQ=; b=obEDYTPoNcJT 6UmK1DuvIqi8tJ2mCPHdR11I+7dgOv34YBs86m+ZfAeCeZkXRNDDKJG51AtGsChW0K5qmGzqJ7A7o M5iqXJbqd9xglcw8oSwyCPD22nP7LagBZ5mOZKB3n9uPQlsJr9Z14DgML9DSkeAyqbevjz10znNC2 2sBhB6Y8FESCa2Cx+veoFXPaUoDWBC8ETJTkg0OQQlAL0GHnebS4hGjLX9maZlElgA+uxhXzwEcyd DlW6f/u39ZXRXxhTX0u8UTlsmDfmNhbFIoortlRMdX4ROYYVg/KgCK3fGhyETFjKm/ovXb8U6qlU5 A2urwo4m9Si6hg/ugSjCOQ==; Original-Received: from [87.69.77.57] (port=4669 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1C3E-0002wr-9Z; Tue, 14 Jun 2022 15:18:08 -0400 In-Reply-To: <87a6af3vdc.fsf@miha-pc> 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:234538 Archived-At: > From: > Cc: 55978@debbugs.gnu.org > Date: Tue, 14 Jun 2022 21:20:15 +0200 > > > [1:text/plain Hide] > > 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" > >> > >> 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'. Using the EOL decoding machinery is much more efficient.