aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2010-10-15 14:07:38 +0200
committerMichael Albinus2010-10-15 14:07:38 +0200
commitaa095b2db98ae149737f8de00ee733b1d257ed33 (patch)
tree38b6d67688139052283755630d23671a993b8061
parent7c9b11be16ceb080f052371786ac111ccf8d43fc (diff)
downloademacs-aa095b2db98ae149737f8de00ee733b1d257ed33.tar.gz
emacs-aa095b2db98ae149737f8de00ee733b1d257ed33.zip
* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
Suppress expansion of tabs to spaces.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp-sh.el13
2 files changed, 15 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9909bf1dc5c..4097b914223 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-10-15 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
4 Suppress expansion of tabs to spaces.
5
12010-10-14 Kenichi Handa <handa@m17n.org> 62010-10-14 Kenichi Handa <handa@m17n.org>
2 7
3 * mail/rmail.el (rmail-show-message-1): Catch an error of 8 * mail/rmail.el (rmail-show-message-1): Catch an error of
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 13658d2370a..474c39adeed 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -3709,9 +3709,7 @@ process to set up. VEC specifies the connection."
3709 ;; because we're running on a non-MULE Emacs. Let's try 3709 ;; because we're running on a non-MULE Emacs. Let's try
3710 ;; stty, instead. 3710 ;; stty, instead.
3711 (tramp-send-command vec "stty -onlcr" t)))) 3711 (tramp-send-command vec "stty -onlcr" t))))
3712 ;; Dump stty settings in the traces. 3712
3713 (when (>= tramp-verbose 9)
3714 (tramp-send-command vec "stty -a" t))
3715 (tramp-send-command vec "set +o vi +o emacs" t) 3713 (tramp-send-command vec "set +o vi +o emacs" t)
3716 3714
3717 ;; Check whether the output of "uname -sr" has been changed. If 3715 ;; Check whether the output of "uname -sr" has been changed. If
@@ -3782,12 +3780,21 @@ process to set up. VEC specifies the connection."
3782 (when (string-match "^IRIX64" (tramp-get-connection-property vec "uname" "")) 3780 (when (string-match "^IRIX64" (tramp-get-connection-property vec "uname" ""))
3783 (tramp-send-command vec "set +H" t)) 3781 (tramp-send-command vec "set +H" t))
3784 3782
3783 ;; On BSD-like systems, ?\t is expanded to spaces. Suppress this.
3784 (when (string-match "BSD\\|Darwin"
3785 (tramp-get-connection-property vec "uname" ""))
3786 (tramp-send-command vec "stty -oxtabs" t))
3787
3785 ;; Set `remote-tty' process property. 3788 ;; Set `remote-tty' process property.
3786 (ignore-errors 3789 (ignore-errors
3787 (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\""))) 3790 (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"")))
3788 (unless (zerop (length tty)) 3791 (unless (zerop (length tty))
3789 (tramp-compat-process-put proc 'remote-tty tty)))) 3792 (tramp-compat-process-put proc 'remote-tty tty))))
3790 3793
3794 ;; Dump stty settings in the traces.
3795 (when (>= tramp-verbose 9)
3796 (tramp-send-command vec "stty -a" t))
3797
3791 ;; Set the environment. 3798 ;; Set the environment.
3792 (tramp-message vec 5 "Setting default environment") 3799 (tramp-message vec 5 "Setting default environment")
3793 3800