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 #14 received at 55978 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: <miha <at> kamnitnik.top>
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 22:17:58 +0300
> From: <miha <at> kamnitnik.top>
> Cc: 55978 <at> debbugs.gnu.org
> Date: Tue, 14 Jun 2022 21:20:15 +0200
> 
> 
> [1:text/plain Hide]
> 
> 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'.

Using the EOL decoding machinery is much more efficient.




This bug report was last modified 3 years and 1 day ago.

Previous Next


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