aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2014-02-10 14:54:33 +0100
committerMichael Albinus2014-02-10 14:54:33 +0100
commitc7db4c06c43c1caf7b51efb82ca7e7bad4fb9661 (patch)
tree78831775de6761a2e08ab81aaa1bf2587619540d
parent5cef7abdbc231cb6b84595c34a4d9dc302dc9e34 (diff)
downloademacs-c7db4c06c43c1caf7b51efb82ca7e7bad4fb9661.tar.gz
emacs-c7db4c06c43c1caf7b51efb82ca7e7bad4fb9661.zip
* net/tramp-sh.el (tramp-sh-handle-vc-registered): Apply heredoc
script more robustly.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp-sh.el27
2 files changed, 23 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6a2cdabc1f1..d67d626f131 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-02-10 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-sh.el (tramp-sh-handle-vc-registered): Apply heredoc
4 script more robustly.
5
12014-02-10 Lars Ingebrigtsen <larsi@gnus.org> 62014-02-10 Lars Ingebrigtsen <larsi@gnus.org>
2 7
3 * dired.el (dired-get-marked-files): Doc fix (bug#11534). 8 * dired.el (dired-get-marked-files): Doc fix (bug#11534).
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 8d3c4c2c58b..fc906b343cb 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -3308,15 +3308,24 @@ the result will be a local, non-Tramp, filename."
3308 3308
3309 (dolist 3309 (dolist
3310 (elt 3310 (elt
3311 (tramp-send-command-and-read 3311 (ignore-errors
3312 v 3312 ;; We cannot use `tramp-send-command-and-read',
3313 (format 3313 ;; because this does not cooperate well with
3314 "tramp_vc_registered_read_file_names <<'%s'\n%s\n%s\n" 3314 ;; heredoc documents.
3315 tramp-end-of-heredoc 3315 (tramp-send-command
3316 (mapconcat 'tramp-shell-quote-argument 3316 v
3317 tramp-vc-registered-file-names 3317 (format
3318 "\n") 3318 "tramp_vc_registered_read_file_names <<'%s'\n%s\n%s\n"
3319 tramp-end-of-heredoc))) 3319 tramp-end-of-heredoc
3320 (mapconcat 'tramp-shell-quote-argument
3321 tramp-vc-registered-file-names
3322 "\n")
3323 tramp-end-of-heredoc))
3324 (tramp-send-command-and-check v nil)
3325 (with-current-buffer (tramp-get-connection-buffer v)
3326 ;; Read the expression.
3327 (goto-char (point-min))
3328 (read (current-buffer)))))
3320 3329
3321 (tramp-set-file-property 3330 (tramp-set-file-property
3322 v (car elt) (cadr elt) (cadr (cdr elt)))))) 3331 v (car elt) (cadr elt) (cadr (cdr elt))))))