From unknown Sun Jun 15 08:57:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55978: 29.0.50; shell-resync-dirs inf-loops if tty outputs CRNL Resent-From: miha@kamnitnik.top Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jun 2022 17:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55978 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 55978@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165522898814178 (code B ref -1); Tue, 14 Jun 2022 17:50:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jun 2022 17:49:48 +0000 Received: from localhost ([127.0.0.1]:35692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1Afk-0003gc-8m for submit@debbugs.gnu.org; Tue, 14 Jun 2022 13:49:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:43398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1Afh-0003gT-9g for submit@debbugs.gnu.org; Tue, 14 Jun 2022 13:49:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1Afh-0007Ob-0R for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 13:49:45 -0400 Received: from kamnitnik.top ([209.250.245.214]:57012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1Afe-00034n-Jw for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 13:49:44 -0400 From: miha@kamnitnik.top DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1655228979; bh=oOnunN4SYyZJPpAGKXqfvMb6aipAOp7D1HYfK5sMuGg=; h=From:To:Subject:Date:From; b=BnanwQmMb6GDNP+XwaBf+rBSpaTxPmqOdXRAP+1F1PoJKUIpwQSOxKpiNVEalemPA 4Q8Vbw6NsB8eT+sa67CF0s7bRW1fCFgGdJz6x0N+5D7huxyA2xxUeWsy65X3nRUhcz 7pStL9CQJdGJ/6Z288822F/sxgYJF7dBww66o8WTFaAoWY0L2j7rSd/MH8Vx97Rf0W Er5PhSZN7DkfMx2XNY/+Vf7KSzJvm9BrFoiCxre8+2N4qFPuD18GuEtr+SHOedc4bl v3ccNypNL9G4zXSeiYDj9HhrzGlR9kTfbClgx1eljrE3DsD77zcI/Vu/Z9gUPvMtHT 92EoBquu5LHJA== Date: Tue, 14 Jun 2022 20:01:30 +0200 Message-ID: <8635g7m8ed.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=209.250.245.214; envelope-from=miha@kamnitnik.top; helo=kamnitnik.top X-Spam_score_int: 24 X-Spam_score: 2.4 X-Spam_bar: ++ X-Spam_report: (2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.997, PDS_OTHER_BAD_TLD=1.997, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.7 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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). Best regards. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-06-14 built on Repository revision: 175bc8e5a53740432c844b5aae1981d4f47c96f7 Repository branch: [...] Content analysis details: (2.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=miha%40kamnitnik.top; ip=209.51.188.17; r=debbugs.gnu.org] 1.6 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) --=-=-= Content-Type: text/plain 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). Best regards. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-06-14 built on Repository revision: 175bc8e5a53740432c844b5aae1981d4f47c96f7 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Arch Linux Configured using: 'configure --prefix=/usr --without-libsystemd' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date seq gv byte-opt bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch cl-loaddefs cl-lib files-x shell subr-x pcomplete comint ansi-color ring iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 52473 6550) (symbols 48 6313 0) (strings 32 18133 1800) (string-bytes 1 593124) (vectors 16 12322) (vector-slots 8 181065 7709) (floats 8 21 50) (intervals 56 845 0) (buffers 992 12)) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmKozPoTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP4LcD/9iGgrx9FHEyb95us0zaAl9YDe6dCEE gFlHmcF17E82qMNPHNO8xvCZcPxHf5joGhxT0wh/Egr3hBjRbY6ImOal77zqWroO 85OsFUWxdijBtclE+SRo7Y1rc52VWmq3Erzsii/IaZ9xZ+yehJgsz1PpfRzp/6Ws 1Sx0r0VQu8C0DT6zB6q6t95kS/SXKXlDTmL/vH7qOX6+9qw0bWDYsO9HQIn4jTJO TzRh3duwhlAcD9ui9IcGc4OSqr7PXolFfzM75O0lVxY6mMt9ahcRjmmiRq/Nk2Ym JTv/kVnrR8mvbVdmme4xud8Df0D7i0u7uT6DJLjS3H2+1ncSX+YWSaEvOwxXDIra /ioagC4oP6c94g2+DYw6cf2+sAGhpEaGyDbMTpB1u1JS3A4OV6mCULR4LAhoFJ9c LE+P8MjkJtoiokfpmDKHD8odkszdM45g0JkOqG5TuqVh88/L9va+wkTiw0m4dIfl NqU10yP8aDGvyP2W9IomlQ2ohq/A645sXnGyfoTgVxKc1URBgyjqCx9h4eJM03hr JD39wvj2OB29LQup0FVK2YD1inenXczV47Q9/Qkry+xDiEhfFfSwnBEu83cqZwAY lExSt8918y3L4NDtZlOpHnjVgKY42CS0JZMAgrrDqv+2LhDHO+4/F2HyKesjNmcl 2kywAW+ZWpsZSA== =Na0f -----END PGP SIGNATURE----- --=-=-=-- From unknown Sun Jun 15 08:57:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55978: 29.0.50; shell-resync-dirs inf-loops if tty outputs CRNL Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jun 2022 18:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55978 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: miha@kamnitnik.top Cc: 55978@debbugs.gnu.org Received: via spool by 55978-submit@debbugs.gnu.org id=B55978.165523155818333 (code B ref 55978); Tue, 14 Jun 2022 18:33:01 +0000 Received: (at 55978) by debbugs.gnu.org; 14 Jun 2022 18:32:38 +0000 Received: from localhost ([127.0.0.1]:35730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1BLC-0004lb-H5 for submit@debbugs.gnu.org; Tue, 14 Jun 2022 14:32:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1BLA-0004lP-BX for 55978@debbugs.gnu.org; Tue, 14 Jun 2022 14:32:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1BL3-00018X-V4; Tue, 14 Jun 2022 14:32:30 -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=AtwuaGSJMETHlRz6jeVlCUk7XHiIfNLyXO0hnTJxb28=; b=hcWntYnR+udB /T1SF6Kt39i9zlHCRkOvd5/rQcIDA85ynaFgNUkCP/3lLdTTX26ziyVPjLmj/+V2QSjppQemQUPpR lrHSbf6BCXDbgmH6UedJz81Gd7f1j0ZTiBoOB8gaQru/NOdIq10vuKH8f0vjzuzhxQdlJe1ZxPUX4 J/lXkqvsiv8RLTg/JxxZmSXCuPygxkkJ/NB/2hzKyMSsvKn0Gcp+Elw2aS/IWbJBEQd6cc0urnG6r /gJXoOZnCNYOM6MKnBrYiHYdh5gV+uzSui85UqgmRNrbvafDoozrDOJjHHSA6vljVD81FcJDjfVZs WGRXJyoCJdQ1J5tl+/TfQA==; Received: from [87.69.77.57] (port=1818 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 1o1BL2-00016i-PM; Tue, 14 Jun 2022 14:32:29 -0400 Date: Tue, 14 Jun 2022 21:32:19 +0300 Message-Id: <83r13rrt8s.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <8635g7m8ed.fsf@miha-pc> (bug-gnu-emacs@gnu.org) References: <8635g7m8ed.fsf@miha-pc> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From unknown Sun Jun 15 08:57:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55978: 29.0.50; shell-resync-dirs inf-loops if tty outputs CRNL 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 X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 55978@debbugs.gnu.org Received: via spool by 55978-submit@debbugs.gnu.org id=B55978.165523377530363 (code B ref 55978); Tue, 14 Jun 2022 19:10:02 +0000 Received: (at 55978) by debbugs.gnu.org; 14 Jun 2022 19:09:35 +0000 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 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 From: 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> References: <8635g7m8ed.fsf@miha-pc> <83r13rrt8s.fsf@gnu.org> Date: Tue, 14 Jun 2022 21:20:15 +0200 Message-ID: <87a6af3vdc.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 mak [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.6 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 T_SCC_BODY_TEXT_LINE No description available. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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 mak [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.6 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 T_SCC_BODY_TEXT_LINE No description available. -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager --=-=-= 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----- --=-=-=-- From unknown Sun Jun 15 08:57:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55978: 29.0.50; shell-resync-dirs inf-loops if tty outputs CRNL 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 X-GNU-PR-Keywords: To: Cc: 55978@debbugs.gnu.org Received: via spool by 55978-submit@debbugs.gnu.org id=B55978.165523429731186 (code B ref 55978); Tue, 14 Jun 2022 19:19:02 +0000 Received: (at 55978) by debbugs.gnu.org; 14 Jun 2022 19:18:17 +0000 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 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 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==; 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 Date: Tue, 14 Jun 2022 22:17:58 +0300 Message-Id: <83letzrr4p.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87a6af3vdc.fsf@miha-pc> References: <8635g7m8ed.fsf@miha-pc> <83r13rrt8s.fsf@gnu.org> <87a6af3vdc.fsf@miha-pc> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > 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.