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

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

[elpa] externals/coterm d5042f6 65/80: Inhibit Emacs from automatically


From: ELPA Syncer
Subject: [elpa] externals/coterm d5042f6 65/80: Inhibit Emacs from automatically decoding \r\n into \n
Date: Wed, 13 Oct 2021 18:57:37 -0400 (EDT)

branch: externals/coterm
commit d5042f649983f5e08b931038f965a0af3e1979a9
Author: m <>
Commit: m <>

    Inhibit Emacs from automatically decoding \r\n into \n
---
 coterm.el | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/coterm.el b/coterm.el
index d1ead36..61b3c3b 100644
--- a/coterm.el
+++ b/coterm.el
@@ -147,12 +147,13 @@ variables `coterm-term-name' and `coterm-termcap-format'."
                   ret)))
         (setq coterm-start-process-function
               (lambda (name buffer command &rest switches)
-                (apply #'start-file-process name buffer
-                       ;; Adapted from `term-exec-1'
-                       "sh" "-c"
-                       (format "stty -nl sane -echo 2>%s;\
+                ;; 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;\
 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]