aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2016-10-23 13:28:33 +0200
committerMichael Albinus2016-10-23 13:28:33 +0200
commit8ca70e402ecab5d7e71e418af6866c8b02d4f757 (patch)
tree3e7bb706be01ae18246d0d5c3583cb7fc380af52
parenta0d1e4c66296f76635f405427f55dbcc62a4fd68 (diff)
downloademacs-8ca70e402ecab5d7e71e418af6866c8b02d4f757.tar.gz
emacs-8ca70e402ecab5d7e71e418af6866c8b02d4f757.zip
; Apply whitespace conventions of Tramp upstream
-rw-r--r--lisp/net/tramp-sh.el66
1 files changed, 33 insertions, 33 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index e9077194691..0e21a81f527 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4092,32 +4092,32 @@ process to set up. VEC specifies the connection."
4092 ;; CCC this can't be the right way to do it. Hm. 4092 ;; CCC this can't be the right way to do it. Hm.
4093 (tramp-message vec 5 "Determining coding system") 4093 (tramp-message vec 5 "Determining coding system")
4094 (with-current-buffer (process-buffer proc) 4094 (with-current-buffer (process-buffer proc)
4095 ;; Use MULE to select the right EOL convention for 4095 ;; Use MULE to select the right EOL convention for communicating
4096 ;; communicating with the process. 4096 ;; with the process.
4097 (let ((cs (or (and (memq 'utf-8 (coding-system-list)) 4097 (let ((cs (or (and (memq 'utf-8 (coding-system-list))
4098 (string-match "utf-?8" (tramp-get-remote-locale vec)) 4098 (string-match "utf-?8" (tramp-get-remote-locale vec))
4099 (cons 'utf-8 'utf-8)) 4099 (cons 'utf-8 'utf-8))
4100 (process-coding-system proc) 4100 (process-coding-system proc)
4101 (cons 'undecided 'undecided))) 4101 (cons 'undecided 'undecided)))
4102 cs-decode cs-encode) 4102 cs-decode cs-encode)
4103 (when (symbolp cs) (setq cs (cons cs cs))) 4103 (when (symbolp cs) (setq cs (cons cs cs)))
4104 (setq cs-decode (or (car cs) 'undecided) 4104 (setq cs-decode (or (car cs) 'undecided)
4105 cs-encode (or (cdr cs) 'undecided) 4105 cs-encode (or (cdr cs) 'undecided)
4106 cs-encode 4106 cs-encode
4107 (coding-system-change-eol-conversion 4107 (coding-system-change-eol-conversion
4108 cs-encode (if (string-match "^Darwin" uname) 'mac 'unix))) 4108 cs-encode (if (string-match "^Darwin" uname) 'mac 'unix)))
4109 (tramp-send-command vec "echo foo ; echo bar" t) 4109 (tramp-send-command vec "echo foo ; echo bar" t)
4110 (goto-char (point-min)) 4110 (goto-char (point-min))
4111 (when (search-forward "\r" nil t) 4111 (when (search-forward "\r" nil t)
4112 (setq cs-decode (coding-system-change-eol-conversion cs-decode 'dos))) 4112 (setq cs-decode (coding-system-change-eol-conversion cs-decode 'dos)))
4113 ;; Special setting for Mac OS X. 4113 ;; Special setting for Mac OS X.
4114 (when (and (string-match "^Darwin" uname) 4114 (when (and (string-match "^Darwin" uname)
4115 (memq 'utf-8-hfs (coding-system-list))) 4115 (memq 'utf-8-hfs (coding-system-list)))
4116 (setq cs-decode 'utf-8-hfs 4116 (setq cs-decode 'utf-8-hfs
4117 cs-encode 'utf-8-hfs)) 4117 cs-encode 'utf-8-hfs))
4118 (set-buffer-process-coding-system cs-decode cs-encode) 4118 (set-buffer-process-coding-system cs-decode cs-encode)
4119 (tramp-message 4119 (tramp-message
4120 vec 5 "Setting coding system to `%s' and `%s'" cs-decode cs-encode))) 4120 vec 5 "Setting coding system to `%s' and `%s'" cs-decode cs-encode)))
4121 4121
4122 (tramp-send-command vec "set +o vi +o emacs" t) 4122 (tramp-send-command vec "set +o vi +o emacs" t)
4123 4123
@@ -4172,7 +4172,7 @@ process to set up. VEC specifies the connection."
4172 ;; Set `remote-tty' process property. 4172 ;; Set `remote-tty' process property.
4173 (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"" 'noerror))) 4173 (let ((tty (tramp-send-command-and-read vec "echo \\\"`tty`\\\"" 'noerror)))
4174 (unless (zerop (length tty)) 4174 (unless (zerop (length tty))
4175 (process-put proc 'remote-tty tty))) 4175 (process-put proc 'remote-tty tty)))
4176 4176
4177 ;; Dump stty settings in the traces. 4177 ;; Dump stty settings in the traces.
4178 (when (>= tramp-verbose 9) 4178 (when (>= tramp-verbose 9)
@@ -4183,13 +4183,13 @@ process to set up. VEC specifies the connection."
4183 4183
4184 (let (unset vars) 4184 (let (unset vars)
4185 (dolist (item (reverse 4185 (dolist (item (reverse
4186 (append `(,(tramp-get-remote-locale vec)) 4186 (append `(,(tramp-get-remote-locale vec))
4187 (copy-sequence tramp-remote-process-environment)))) 4187 (copy-sequence tramp-remote-process-environment))))
4188 (setq item (split-string item "=" 'omit)) 4188 (setq item (split-string item "=" 'omit))
4189 (setcdr item (mapconcat 'identity (cdr item) "=")) 4189 (setcdr item (mapconcat 'identity (cdr item) "="))
4190 (if (and (stringp (cdr item)) (not (string-equal (cdr item) ""))) 4190 (if (and (stringp (cdr item)) (not (string-equal (cdr item) "")))
4191 (push (format "%s %s" (car item) (cdr item)) vars) 4191 (push (format "%s %s" (car item) (cdr item)) vars)
4192 (push (car item) unset))) 4192 (push (car item) unset)))
4193 (when vars 4193 (when vars
4194 (tramp-send-command 4194 (tramp-send-command
4195 vec 4195 vec