Mercurial > emacs
comparison lisp/net/tramp.el @ 111040:02c2f28e7c6a
* net/tramp.el (tramp-open-connection-setup-interactive-shell):
Suppress expansion of tabs to spaces.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Fri, 15 Oct 2010 14:15:43 +0200 |
parents | 5a6b4fafaa52 |
children | f0ba7e7104ca |
comparison
equal
deleted
inserted
replaced
111039:5e8f54361c49 | 111040:02c2f28e7c6a |
---|---|
7011 (when (search-forward "\r" nil t) | 7011 (when (search-forward "\r" nil t) |
7012 ;; We have found a ^M but cannot frob the process coding system | 7012 ;; We have found a ^M but cannot frob the process coding system |
7013 ;; because we're running on a non-MULE Emacs. Let's try | 7013 ;; because we're running on a non-MULE Emacs. Let's try |
7014 ;; stty, instead. | 7014 ;; stty, instead. |
7015 (tramp-send-command vec "stty -onlcr" t)))) | 7015 (tramp-send-command vec "stty -onlcr" t)))) |
7016 ;; Dump stty settings in the traces. | 7016 |
7017 (when (>= tramp-verbose 9) | |
7018 (tramp-send-command vec "stty -a" t)) | |
7019 (tramp-send-command vec "set +o vi +o emacs" t) | 7017 (tramp-send-command vec "set +o vi +o emacs" t) |
7020 | 7018 |
7021 ;; Check whether the output of "uname -sr" has been changed. If | 7019 ;; Check whether the output of "uname -sr" has been changed. If |
7022 ;; yes, this is a strong indication that we must expire all | 7020 ;; yes, this is a strong indication that we must expire all |
7023 ;; connection properties. We start again with | 7021 ;; connection properties. We start again with |
7084 ;; destroys our shell functions, we must disable it. See | 7082 ;; destroys our shell functions, we must disable it. See |
7085 ;; <http://stackoverflow.com/questions/3291692/irix-bash-shell-expands-expression-in-single-quotes-yet-shouldnt>. | 7083 ;; <http://stackoverflow.com/questions/3291692/irix-bash-shell-expands-expression-in-single-quotes-yet-shouldnt>. |
7086 (when (string-match "^IRIX64" (tramp-get-connection-property vec "uname" "")) | 7084 (when (string-match "^IRIX64" (tramp-get-connection-property vec "uname" "")) |
7087 (tramp-send-command vec "set +H" t)) | 7085 (tramp-send-command vec "set +H" t)) |
7088 | 7086 |
7087 ;; On BSD-like systems, ?\t is expanded to spaces. Suppress this. | |
7088 (when (string-match "BSD\\|Darwin" | |
7089 (tramp-get-connection-property vec "uname" "")) | |
7090 (tramp-send-command vec "stty -oxtabs" t)) | |
7091 | |
7089 ;; Set `remote-tty' process property. | 7092 ;; Set `remote-tty' process property. |
7090 (ignore-errors | 7093 (ignore-errors |
7091 (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\""))) | 7094 (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\""))) |
7092 (unless (zerop (length tty)) (process-put proc 'remote-tty tty)))) | 7095 (unless (zerop (length tty)) (process-put proc 'remote-tty tty)))) |
7096 | |
7097 ;; Dump stty settings in the traces. | |
7098 (when (>= tramp-verbose 9) | |
7099 (tramp-send-command vec "stty -a" t)) | |
7093 | 7100 |
7094 ;; Set the environment. | 7101 ;; Set the environment. |
7095 (tramp-message vec 5 "Setting default environment") | 7102 (tramp-message vec 5 "Setting default environment") |
7096 | 7103 |
7097 (let ((env (copy-sequence tramp-remote-process-environment)) | 7104 (let ((env (copy-sequence tramp-remote-process-environment)) |