diff options
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 16 |
2 files changed, 16 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 720b9595569..c8b49e4b5e7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2010-08-10 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-vc-registered-read-file-names): Read input | ||
| 4 | as here-document, otherwise the command could exceed maximum | ||
| 5 | length of command line. | ||
| 6 | (tramp-handle-vc-registered): Call script accordingly. Reported | ||
| 7 | by Toru TSUNEYOSHI <t_tuneyosi@hotmail.com>. | ||
| 8 | |||
| 1 | 2010-08-10 Kenichi Handa <handa@m17n.org> | 9 | 2010-08-10 Kenichi Handa <handa@m17n.org> |
| 2 | 10 | ||
| 3 | * language/hebrew.el: Exclude U+05C3 (Hebrew SOF PASUQ) from the | 11 | * language/hebrew.el: Exclude U+05C3 (Hebrew SOF PASUQ) from the |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index a9870823f80..e715ef596d0 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1983,13 +1983,13 @@ This string is passed to `format', so percent characters need to be doubled.") | |||
| 1983 | 1983 | ||
| 1984 | (defconst tramp-vc-registered-read-file-names | 1984 | (defconst tramp-vc-registered-read-file-names |
| 1985 | "echo \"(\" | 1985 | "echo \"(\" |
| 1986 | for file in \"$@\"; do | 1986 | while read file; do |
| 1987 | if %s $file; then | 1987 | if %s \"$file\"; then |
| 1988 | echo \"(\\\"$file\\\" \\\"file-exists-p\\\" t)\" | 1988 | echo \"(\\\"$file\\\" \\\"file-exists-p\\\" t)\" |
| 1989 | else | 1989 | else |
| 1990 | echo \"(\\\"$file\\\" \\\"file-exists-p\\\" nil)\" | 1990 | echo \"(\\\"$file\\\" \\\"file-exists-p\\\" nil)\" |
| 1991 | fi | 1991 | fi |
| 1992 | if %s $file; then | 1992 | if %s \"$file\"; then |
| 1993 | echo \"(\\\"$file\\\" \\\"file-readable-p\\\" t)\" | 1993 | echo \"(\\\"$file\\\" \\\"file-readable-p\\\" t)\" |
| 1994 | else | 1994 | else |
| 1995 | echo \"(\\\"$file\\\" \\\"file-readable-p\\\" nil)\" | 1995 | echo \"(\\\"$file\\\" \\\"file-readable-p\\\" nil)\" |
| @@ -1998,7 +1998,9 @@ done | |||
| 1998 | echo \")\"" | 1998 | echo \")\"" |
| 1999 | "Script to check existence of VC related files. | 1999 | "Script to check existence of VC related files. |
| 2000 | It must be send formatted with two strings; the tests for file | 2000 | It must be send formatted with two strings; the tests for file |
| 2001 | existence, and file readability.") | 2001 | existence, and file readability. Input shall be read via |
| 2002 | here-document, otherwise the command could exceed maximum length | ||
| 2003 | of command line.") | ||
| 2002 | 2004 | ||
| 2003 | (defconst tramp-file-mode-type-map | 2005 | (defconst tramp-file-mode-type-map |
| 2004 | '((0 . "-") ; Normal file (SVID-v2 and XPG2) | 2006 | '((0 . "-") ; Normal file (SVID-v2 and XPG2) |
| @@ -5419,10 +5421,10 @@ Returns a file name in `tramp-auto-save-directory' for autosaving this file." | |||
| 5419 | (tramp-send-command-and-read | 5421 | (tramp-send-command-and-read |
| 5420 | v | 5422 | v |
| 5421 | (format | 5423 | (format |
| 5422 | "tramp_vc_registered_read_file_names %s" | 5424 | "tramp_vc_registered_read_file_names <<'EOF'\n%s\nEOF\n" |
| 5423 | (mapconcat 'tramp-shell-quote-argument | 5425 | (mapconcat 'tramp-shell-quote-argument |
| 5424 | tramp-vc-registered-file-names | 5426 | tramp-vc-registered-file-names |
| 5425 | " ")))) | 5427 | "\n")))) |
| 5426 | 5428 | ||
| 5427 | (tramp-set-file-property | 5429 | (tramp-set-file-property |
| 5428 | v (car elt) (cadr elt) (cadr (cdr elt)))))) | 5430 | v (car elt) (cadr elt) (cadr (cdr elt)))))) |
| @@ -8984,8 +8986,6 @@ Only works for Bourne-like shells." | |||
| 8984 | ;; * Load Tramp subpackages only when needed. (Bug#1529, Bug#5448, Bug#5705) | 8986 | ;; * Load Tramp subpackages only when needed. (Bug#1529, Bug#5448, Bug#5705) |
| 8985 | ;; * Try telnet+curl as new method. It might be useful for busybox, | 8987 | ;; * Try telnet+curl as new method. It might be useful for busybox, |
| 8986 | ;; without built-in uuencode/uudecode. | 8988 | ;; without built-in uuencode/uudecode. |
| 8987 | ;; * Let `shell-dynamic-complete-*' and `comint-dynamic-complete' work | ||
| 8988 | ;; on remote hosts. | ||
| 8989 | ;; * Load ~/.emacs_SHELLNAME on the remote host for `shell'. | 8989 | ;; * Load ~/.emacs_SHELLNAME on the remote host for `shell'. |
| 8990 | 8990 | ||
| 8991 | ;; Functions for file-name-handler-alist: | 8991 | ;; Functions for file-name-handler-alist: |