aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMichael Albinus2011-01-10 21:36:09 +0100
committerMichael Albinus2011-01-10 21:36:09 +0100
commit01d70c32ce23b9a28f27467444d087afce51607f (patch)
treef4e555ae44f033094706a05492aafd66e107602a /lisp
parent6a0ecd86d28fd5e5be53e7bf699f8dae242aab81 (diff)
downloademacs-01d70c32ce23b9a28f27467444d087afce51607f.tar.gz
emacs-01d70c32ce23b9a28f27467444d087afce51607f.zip
* net/tramp.el (tramp-find-inline-compress)
(tramp-get-inline-coding): Quote command after pipe symbol for local calls under W32. (Bug#6784)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/tramp.el34
2 files changed, 35 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c0607190341..fc51f86bc37 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,11 @@
12011-01-10 Michael Albinus <michael.albinus@gmx.de> 12011-01-10 Michael Albinus <michael.albinus@gmx.de>
2 2
3 * net/tramp.el (tramp-find-inline-compress)
4 (tramp-get-inline-coding): Quote command after pipe symbol for
5 local calls under W32. (Bug#6784)
6
72011-01-10 Michael Albinus <michael.albinus@gmx.de>
8
3 * net/tramp.el (tramp-default-method): Initialize with pscp/plink 9 * net/tramp.el (tramp-default-method): Initialize with pscp/plink
4 only when running under W32. 10 only when running under W32.
5 11
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 4fb8d7b7862..c40d65ca913 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -7362,9 +7362,17 @@ Goes through the list `tramp-inline-compress-commands'."
7362 vec 5 7362 vec 5
7363 "Checking local compress command `%s', `%s' for sanity" 7363 "Checking local compress command `%s', `%s' for sanity"
7364 compress decompress) 7364 compress decompress)
7365 (unless (zerop (tramp-call-local-coding-command 7365 (unless
7366 (format "echo %s | %s | %s" 7366 (zerop
7367 magic compress decompress) nil nil)) 7367 (tramp-call-local-coding-command
7368 (format
7369 ;; Windows shells need the program file name after
7370 ;; the pipe symbol be quoted if they use forward
7371 ;; slashes as directory separators.
7372 (if (memq system-type '(windows-nt))
7373 "echo %s | \"%s\" | \"%s\""
7374 "echo %s | %s | %s")
7375 magic compress decompress) nil nil))
7368 (throw 'next nil)) 7376 (throw 'next nil))
7369 (tramp-message 7377 (tramp-message
7370 vec 5 7378 vec 5
@@ -8645,9 +8653,25 @@ function cell is returned to be applied on a buffer."
8645 ((symbolp coding) 8653 ((symbolp coding)
8646 coding) 8654 coding)
8647 ((and compress (string-match "decoding" prop)) 8655 ((and compress (string-match "decoding" prop))
8648 (format "(%s | %s >%%s)" coding compress)) 8656 (format
8657 ;; Windows shells need the program file name after
8658 ;; the pipe symbol be quoted if they use forward
8659 ;; slashes as directory separators.
8660 (if (and (string-match "local" prop)
8661 (memq system-type '(windows-nt)))
8662 "(%s | \"%s\" >%%s)"
8663 "(%s | %s >%%s)")
8664 coding compress))
8649 (compress 8665 (compress
8650 (format "(%s <%%s | %s)" compress coding)) 8666 (format
8667 ;; Windows shells need the program file name after
8668 ;; the pipe symbol be quoted if they use forward
8669 ;; slashes as directory separators.
8670 (if (and (string-match "local" prop)
8671 (memq system-type '(windows-nt)))
8672 "(%s <%%s | \"%s\")"
8673 "(%s <%%s | %s)")
8674 compress coding))
8651 ((string-match "decoding" prop) 8675 ((string-match "decoding" prop)
8652 (format "%s >%%s" coding)) 8676 (format "%s >%%s" coding))
8653 (t 8677 (t