GNU bug report logs - #55978
29.0.50; shell-resync-dirs inf-loops if tty outputs CRNL

Previous Next

Package: emacs;

Reported by: miha <at> kamnitnik.top

Date: Tue, 14 Jun 2022 17:50:01 UTC

Severity: normal

Found in version 29.0.50

Full log


Message #11 received at 55978 <at> debbugs.gnu.org (full text, mbox):

From: <miha <at> kamnitnik.top>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55978 <at> debbugs.gnu.org
Subject: Re: bug#55978: 29.0.50; shell-resync-dirs inf-loops if tty outputs
 CRNL
Date: Tue, 14 Jun 2022 21:20:15 +0200
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> 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" <bug-gnu-emacs <at> gnu.org>
>> 
>> 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'.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.