branch: externals/coterm commit 90823afecb0825db25861dfebf6a7d3ac7b02292 Author: Miha Rihtaršič <m...@kamnitnik.top> Commit: Miha Rihtaršič <m...@kamnitnik.top>
Revert "Inhibit Emacs from automatically decoding \r\n into \n" This reverts commit d5042f649983f5e08b931038f965a0af3e1979a9. It seems like the variable 'inhibit-eol-conversion' does the opposite than expected for remote processes, and for local processes it isn't needed. I've only tested this on GNU/Linux systems, though. --- coterm.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/coterm.el b/coterm.el index 4efec91..ed4daf9 100644 --- a/coterm.el +++ b/coterm.el @@ -159,13 +159,12 @@ variables `coterm-term-name' and `coterm-termcap-format'." ret))) (setq coterm-start-process-function (lambda (name buffer command &rest switches) - ;; Adapted from `term-exec-1' - (let ((inhibit-eol-conversion t)) - (apply #'start-file-process name buffer - "sh" "-c" - (format "stty -nl sane -echo 2>%s;\ + (apply #'start-file-process name buffer + ;; Adapted from `term-exec-1' + "sh" "-c" + (format "stty -nl sane -echo 2>%s;\ if [ $1 = .. ]; then shift; fi; exec \"$@\"" null-device) - ".." command switches))))) + ".." command switches)))) (remove-hook 'comint-mode-hook #'coterm--init) (setq coterm-term-environment-function #'comint-term-environment)