aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2010-10-15 14:15:43 +0200
committerMichael Albinus2010-10-15 14:15:43 +0200
commite499c64d970a726bb599ca6dcb9fd1a545e5bddc (patch)
tree63bcab8a846efeb1864ededa7ee73c332b1b1215
parent31daa5e17c73c0830ef5094eb38702450965a938 (diff)
downloademacs-e499c64d970a726bb599ca6dcb9fd1a545e5bddc.tar.gz
emacs-e499c64d970a726bb599ca6dcb9fd1a545e5bddc.zip
* net/tramp.el (tramp-open-connection-setup-interactive-shell):
Suppress expansion of tabs to spaces.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp.el13
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 19135944b17..e0cbd35d5fc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-10-15 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-open-connection-setup-interactive-shell):
4 Suppress expansion of tabs to spaces.
5
12010-10-15 Kenichi Handa <handa@m17n.org> 62010-10-15 Kenichi Handa <handa@m17n.org>
2 7
3 * international/characters.el: Add category '|' (word breakable) 8 * international/characters.el: Add category '|' (word breakable)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index d5d1606c617..01317ac3708 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -7013,9 +7013,7 @@ process to set up. VEC specifies the connection."
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
@@ -7086,11 +7084,20 @@ process to set up. VEC specifies the connection."
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))))
7093 7096
7097 ;; Dump stty settings in the traces.
7098 (when (>= tramp-verbose 9)
7099 (tramp-send-command vec "stty -a" t))
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