aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2010-11-20 14:12:27 +0100
committerMichael Albinus2010-11-20 14:12:27 +0100
commit7398933f95c5bfefa37160a65ca793ed58fdd868 (patch)
tree65625071c1aad84a16b01d435895009ee8d8473c
parent26214810c2aa9179baeb34c4b48fb39044db2bfd (diff)
downloademacs-7398933f95c5bfefa37160a65ca793ed58fdd868.tar.gz
emacs-7398933f95c5bfefa37160a65ca793ed58fdd868.zip
Sync with Tramp 2.2.0.
* net/tramp.el (tramp-handle-insert-file-contents): Don't use `file-remote-p' (due to compatibility). * net/tramp-sh.el (tramp-do-copy-or-rename-file-directly) (tramp-do-copy-or-rename-file-out-of-band): Use `ignore-errors'. * net/trampver.el: Update release number.
-rw-r--r--lisp/ChangeLog12
-rw-r--r--lisp/net/tramp-sh.el24
-rw-r--r--lisp/net/tramp.el4
-rw-r--r--lisp/net/trampver.el5
4 files changed, 27 insertions, 18 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index aef6f168c48..bf1de5f9ffe 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,15 @@
12010-11-20 Michael Albinus <michael.albinus@gmx.de>
2
3 Sync with Tramp 2.2.0.
4
5 * net/tramp.el (tramp-handle-insert-file-contents): Don't use
6 `file-remote-p' (due to compatibility).
7
8 * net/tramp-sh.el (tramp-do-copy-or-rename-file-directly)
9 (tramp-do-copy-or-rename-file-out-of-band): Use `ignore-errors'.
10
11 * net/trampver.el: Update release number.
12
12010-11-20 Eli Zaretskii <eliz@gnu.org> 132010-11-20 Eli Zaretskii <eliz@gnu.org>
2 14
3 * faces.el (glyphless-char): Define value for `pc'. 15 * faces.el (glyphless-char): Define value for `pc'.
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 5e6cd9577c6..3f503836177 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -106,7 +106,8 @@ detected as prompt when being sent on echoing hosts, therefore.")
106;;;###tramp-autoload 106;;;###tramp-autoload
107(add-to-list 107(add-to-list
108 'tramp-methods 108 'tramp-methods
109 '("scp" (tramp-login-program "ssh") 109 '("scp"
110 (tramp-login-program "ssh")
110 (tramp-login-args (("-l" "%u") ("-p" "%p") ("-e" "none") ("%h"))) 111 (tramp-login-args (("-l" "%u") ("-p" "%p") ("-e" "none") ("%h")))
111 (tramp-async-args (("-q"))) 112 (tramp-async-args (("-q")))
112 (tramp-remote-sh "/bin/sh") 113 (tramp-remote-sh "/bin/sh")
@@ -2166,16 +2167,13 @@ the uid and gid from FILENAME."
2166 (list tmpfile localname2 ok-if-already-exists))))) 2167 (list tmpfile localname2 ok-if-already-exists)))))
2167 2168
2168 ;; Save exit. 2169 ;; Save exit.
2169 (condition-case nil 2170 (ignore-errors (delete-file tmpfile)))))))))
2170 (delete-file tmpfile)
2171 (error)))))))))
2172 2171
2173 ;; Set the time and mode. Mask possible errors. 2172 ;; Set the time and mode. Mask possible errors.
2174 (condition-case nil 2173 (ignore-errors
2175 (when keep-date 2174 (when keep-date
2176 (set-file-times newname file-times) 2175 (set-file-times newname file-times)
2177 (set-file-modes newname file-modes)) 2176 (set-file-modes newname file-modes))))))
2178 (error)))))
2179 2177
2180(defun tramp-do-copy-or-rename-file-out-of-band (op filename newname keep-date) 2178(defun tramp-do-copy-or-rename-file-out-of-band (op filename newname keep-date)
2181 "Invoke rcp program to copy. 2179 "Invoke rcp program to copy.
@@ -2203,12 +2201,11 @@ The method used must be an out-of-band method."
2203 (tramp-do-copy-or-rename-file-out-of-band 2201 (tramp-do-copy-or-rename-file-out-of-band
2204 'rename tmpfile newname keep-date)) 2202 'rename tmpfile newname keep-date))
2205 ;; Save exit. 2203 ;; Save exit.
2206 (condition-case nil 2204 (ignore-errors
2207 (if dir-flag 2205 (if dir-flag
2208 (tramp-compat-delete-directory 2206 (tramp-compat-delete-directory
2209 (expand-file-name ".." tmpfile) 'recursive) 2207 (expand-file-name ".." tmpfile) 'recursive)
2210 (delete-file tmpfile)) 2208 (delete-file tmpfile)))))
2211 (error))))
2212 2209
2213 ;; Expand hops. Might be necessary for gateway methods. 2210 ;; Expand hops. Might be necessary for gateway methods.
2214 (setq v (car (tramp-compute-multi-hops v))) 2211 (setq v (car (tramp-compute-multi-hops v)))
@@ -5039,6 +5036,5 @@ function cell is returned to be applied on a buffer."
5039;; rsync. 5036;; rsync.
5040;; * Try telnet+curl as new method. It might be useful for busybox, 5037;; * Try telnet+curl as new method. It might be useful for busybox,
5041;; without built-in uuencode/uudecode. 5038;; without built-in uuencode/uudecode.
5042;; * Try ssh+netcat as out-of-band method.
5043 5039
5044;;; tramp-sh.el ends here 5040;;; tramp-sh.el ends here
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 2f8eb4dff97..d5b55064f3d 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -2863,7 +2863,9 @@ User is always nil."
2863 (set-visited-file-modtime) 2863 (set-visited-file-modtime)
2864 (set-buffer-modified-p nil) 2864 (set-buffer-modified-p nil)
2865 ;; For root, preserve owner and group when editing files. 2865 ;; For root, preserve owner and group when editing files.
2866 (when (string-equal (file-remote-p filename 'user) "root") 2866 (when (string-equal
2867 (tramp-file-name-handler 'file-remote-p filename 'user)
2868 "root")
2867 (set (make-local-variable 'backup-by-copying-when-mismatch) t))) 2869 (set (make-local-variable 'backup-by-copying-when-mismatch) t)))
2868 (when (and (stringp local-copy) 2870 (when (and (stringp local-copy)
2869 (or remote-copy (null tramp-temp-buffer-file-name))) 2871 (or remote-copy (null tramp-temp-buffer-file-name)))
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el
index 7690e859310..c66900dfd09 100644
--- a/lisp/net/trampver.el
+++ b/lisp/net/trampver.el
@@ -32,7 +32,7 @@
32;; should be changed only there. 32;; should be changed only there.
33 33
34;;;###tramp-autoload 34;;;###tramp-autoload
35(defconst tramp-version "2.2.0-pre" 35(defconst tramp-version "2.2.0"
36 "This version of Tramp.") 36 "This version of Tramp.")
37 37
38;;;###tramp-autoload 38;;;###tramp-autoload
@@ -45,7 +45,7 @@
45 (= emacs-major-version 21) 45 (= emacs-major-version 21)
46 (>= emacs-minor-version 4))) 46 (>= emacs-minor-version 4)))
47 "ok" 47 "ok"
48 (format "Tramp 2.2.0-pre is not fit for %s" 48 (format "Tramp 2.2.0 is not fit for %s"
49 (when (string-match "^.*$" (emacs-version)) 49 (when (string-match "^.*$" (emacs-version))
50 (match-string 0 (emacs-version))))))) 50 (match-string 0 (emacs-version)))))))
51 (unless (string-match "\\`ok\\'" x) (error "%s" x))) 51 (unless (string-match "\\`ok\\'" x) (error "%s" x)))
@@ -56,7 +56,6 @@
56 56
57(provide 'trampver) 57(provide 'trampver)
58 58
59;; arch-tag: 443576ca-f8f1-4bb1-addc-5c70861e93b1
60;;; trampver.el ends here 59;;; trampver.el ends here
61 60
62;; Local Variables: 61;; Local Variables: