]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 15 Oct 2010 12:07:38 +0000 (14:07 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 15 Oct 2010 12:07:38 +0000 (14:07 +0200)
Suppress expansion of tabs to spaces.

lisp/ChangeLog
lisp/net/tramp-sh.el

index 9909bf1dc5caa87db6ad08b1b7eefab76b774d57..4097b914223cb697687d3311e0c9fac2fc4602de 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-15  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell):
+       Suppress expansion of tabs to spaces.
+
 2010-10-14  Kenichi Handa  <handa@m17n.org>
 
        * mail/rmail.el (rmail-show-message-1): Catch an error of
index 13658d2370a92e788762c78657988107b843d3c5..474c39adeedce730352d0ab9ea18f7c1a0941548 100644 (file)
@@ -3709,9 +3709,7 @@ process to set up.  VEC specifies the connection."
        ;; because we're running on a non-MULE Emacs.  Let's try
        ;; stty, instead.
        (tramp-send-command vec "stty -onlcr" t))))
-  ;; Dump stty settings in the traces.
-  (when (>= tramp-verbose 9)
-    (tramp-send-command vec "stty -a" t))
+
   (tramp-send-command vec "set +o vi +o emacs" t)
 
   ;; Check whether the output of "uname -sr" has been changed.  If
@@ -3782,12 +3780,21 @@ process to set up.  VEC specifies the connection."
   (when (string-match "^IRIX64" (tramp-get-connection-property vec "uname" ""))
     (tramp-send-command vec "set +H" t))
 
+  ;; On BSD-like systems, ?\t is expanded to spaces.  Suppress this.
+  (when (string-match "BSD\\|Darwin"
+                     (tramp-get-connection-property vec "uname" ""))
+    (tramp-send-command vec "stty -oxtabs" t))
+
   ;; Set `remote-tty' process property.
   (ignore-errors
     (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"")))
       (unless (zerop (length tty))
        (tramp-compat-process-put proc 'remote-tty tty))))
 
+  ;; Dump stty settings in the traces.
+  (when (>= tramp-verbose 9)
+    (tramp-send-command vec "stty -a" t))
+
   ;; Set the environment.
   (tramp-message vec 5 "Setting default environment")