emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/coterm 90823af 77/80: Revert "Inhibit Emacs from automa


From: ELPA Syncer
Subject: [elpa] externals/coterm 90823af 77/80: Revert "Inhibit Emacs from automatically decoding \r\n into \n"
Date: Wed, 13 Oct 2021 18:57:40 -0400 (EDT)

branch: externals/coterm
commit 90823afecb0825db25861dfebf6a7d3ac7b02292
Author: Miha Rihtaršič <miha@kamnitnik.top>
Commit: Miha Rihtaršič <miha@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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]