aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2006-08-29 05:48:40 +0000
committerMichael Albinus2006-08-29 05:48:40 +0000
commit1a762140f1c8f02262bae85d50743ae37de62348 (patch)
tree182af0814766fa1da44cf31caa931425237a95a6
parent0e8b7151caab1f574ec2898bcad008afffc7e5db (diff)
downloademacs-1a762140f1c8f02262bae85d50743ae37de62348.tar.gz
emacs-1a762140f1c8f02262bae85d50743ae37de62348.zip
Sync with Tramp 2.0.54.
-rw-r--r--lisp/ChangeLog15
-rw-r--r--lisp/net/tramp.el98
-rw-r--r--lisp/net/trampver.el2
-rw-r--r--man/ChangeLog7
-rw-r--r--man/tramp.texi16
-rw-r--r--man/trampver.texi2
6 files changed, 90 insertions, 50 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b857f9e85ec..1aeaf174e37 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,18 @@
12006-08-29 Michael Albinus <michael.albinus@gmx.de>
2
3 Sync with Tramp 2.0.54.
4
5 * net/tramp.el (tramp-convert-file-attributes): Call `eql' instead
6 of `=', because `tramp-get-remote-gid' might not always return an
7 integer when expected.
8 (tramp-register-file-name-handlers): `partial-completion-mode' is
9 unknown to XEmacs.
10 (tramp-time-diff): Don't use `floor', it might fail for large
11 differences.
12 (tramp-handle-make-auto-save-file-name): For Emacs 21, set
13 `tramp-auto-save-directory' if unset in order to guarantee unique
14 auto-save file names.
15
12006-08-28 Chong Yidong <cyd@stupidchicken.com> 162006-08-28 Chong Yidong <cyd@stupidchicken.com>
2 17
3 * image-mode.el (image-mode): Display image as text on a terminal. 18 * image-mode.el (image-mode): Display image as text on a terminal.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index cb5a6d75331..97b08e7e704 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3888,37 +3888,50 @@ This will break if COMMAND prints a newline, followed by the value of
3888(defun tramp-handle-make-auto-save-file-name () 3888(defun tramp-handle-make-auto-save-file-name ()
3889 "Like `make-auto-save-file-name' for tramp files. 3889 "Like `make-auto-save-file-name' for tramp files.
3890Returns a file name in `tramp-auto-save-directory' for autosaving this file." 3890Returns a file name in `tramp-auto-save-directory' for autosaving this file."
3891 (when tramp-auto-save-directory 3891 (let ((tramp-auto-save-directory tramp-auto-save-directory))
3892 (unless (file-exists-p tramp-auto-save-directory) 3892 ;; File name must be unique. This is ensured with Emacs 22 (see
3893 (make-directory tramp-auto-save-directory t))) 3893 ;; UNIQUIFY element of `auto-save-file-name-transforms'); but for
3894 ;; jka-compr doesn't like auto-saving, so by appending "~" to the 3894 ;; all other cases we must do it ourselves.
3895 ;; file name we make sure that jka-compr isn't used for the 3895 (when (boundp 'auto-save-file-name-transforms)
3896 ;; auto-save file. 3896 (mapcar
3897 (let ((buffer-file-name 3897 '(lambda (x)
3898 (if tramp-auto-save-directory 3898 (when (and (string-match (car x) buffer-file-name)
3899 (expand-file-name 3899 (not (car (cddr x))))
3900 (tramp-subst-strs-in-string 3900 (setq tramp-auto-save-directory
3901 '(("_" . "|") 3901 (or tramp-auto-save-directory temporary-file-directory))))
3902 ("/" . "_a") 3902 (symbol-value 'auto-save-file-name-transforms)))
3903 (":" . "_b") 3903 ;; Create directory.
3904 ("|" . "__") 3904 (when tramp-auto-save-directory
3905 ("[" . "_l") 3905 (unless (file-exists-p tramp-auto-save-directory)
3906 ("]" . "_r")) 3906 (make-directory tramp-auto-save-directory t)))
3907 (buffer-file-name)) 3907 ;; jka-compr doesn't like auto-saving, so by appending "~" to the
3908 tramp-auto-save-directory) 3908 ;; file name we make sure that jka-compr isn't used for the
3909 (buffer-file-name)))) 3909 ;; auto-save file.
3910 ;; Run plain `make-auto-save-file-name'. There might be an advice when 3910 (let ((buffer-file-name
3911 ;; it is not a magic file name operation (since Emacs 22). 3911 (if tramp-auto-save-directory
3912 ;; We must deactivate it temporarily. 3912 (expand-file-name
3913 (if (not (ad-is-active 'make-auto-save-file-name)) 3913 (tramp-subst-strs-in-string
3914 (tramp-run-real-handler 3914 '(("_" . "|")
3915 'make-auto-save-file-name nil) 3915 ("/" . "_a")
3916 ;; else 3916 (":" . "_b")
3917 (ad-deactivate 'make-auto-save-file-name) 3917 ("|" . "__")
3918 (prog1 3918 ("[" . "_l")
3919 (tramp-run-real-handler 3919 ("]" . "_r"))
3920 'make-auto-save-file-name nil) 3920 (buffer-file-name))
3921 (ad-activate 'make-auto-save-file-name))))) 3921 tramp-auto-save-directory)
3922 (buffer-file-name))))
3923 ;; Run plain `make-auto-save-file-name'. There might be an advice when
3924 ;; it is not a magic file name operation (since Emacs 22).
3925 ;; We must deactivate it temporarily.
3926 (if (not (ad-is-active 'make-auto-save-file-name))
3927 (tramp-run-real-handler
3928 'make-auto-save-file-name nil)
3929 ;; else
3930 (ad-deactivate 'make-auto-save-file-name)
3931 (prog1
3932 (tramp-run-real-handler
3933 'make-auto-save-file-name nil)
3934 (ad-activate 'make-auto-save-file-name))))))
3922 3935
3923 3936
3924;; CCC grok APPEND, LOCKNAME, CONFIRM 3937;; CCC grok APPEND, LOCKNAME, CONFIRM
@@ -4333,7 +4346,12 @@ Falls back to normal file name handler if no tramp file name handler exists."
4333 "Add tramp file name handlers to `file-name-handler-alist'." 4346 "Add tramp file name handlers to `file-name-handler-alist'."
4334 (add-to-list 'file-name-handler-alist 4347 (add-to-list 'file-name-handler-alist
4335 (cons tramp-file-name-regexp 'tramp-file-name-handler)) 4348 (cons tramp-file-name-regexp 'tramp-file-name-handler))
4336 (when (or partial-completion-mode (featurep 'ido)) 4349 ;; `partial-completion-mode' is unknown in XEmacs. So we should
4350 ;; load it unconditionally there. In the GNU Emacs case, method/
4351 ;; user/host name completion shall be bound to `partial-completion-mode'.
4352 (when (or (not (boundp 'partial-completion-mode))
4353 (symbol-value 'partial-completion-mode)
4354 (featurep 'ido))
4337 (add-to-list 'file-name-handler-alist 4355 (add-to-list 'file-name-handler-alist
4338 (cons tramp-completion-file-name-regexp 4356 (cons tramp-completion-file-name-regexp
4339 'tramp-completion-file-name-handler)) 4357 'tramp-completion-file-name-handler))
@@ -6749,8 +6767,8 @@ Return ATTR."
6749 ;; Set file's gid change bit. Possible only when id-format is 'integer. 6767 ;; Set file's gid change bit. Possible only when id-format is 'integer.
6750 (when (numberp (nth 3 attr)) 6768 (when (numberp (nth 3 attr))
6751 (setcar (nthcdr 9 attr) 6769 (setcar (nthcdr 9 attr)
6752 (not (= (nth 3 attr) 6770 (not (eql (nth 3 attr)
6753 (tramp-get-remote-gid multi-method method user host))))) 6771 (tramp-get-remote-gid multi-method method user host)))))
6754 ;; Set virtual device number. 6772 ;; Set virtual device number.
6755 (setcar (nthcdr 11 attr) 6773 (setcar (nthcdr 11 attr)
6756 (tramp-get-device multi-method method user host)) 6774 (tramp-get-device multi-method method user host))
@@ -7200,10 +7218,7 @@ Invokes `password-read' if available, `read-passwd' else."
7200 7218
7201(defun tramp-time-diff (t1 t2) 7219(defun tramp-time-diff (t1 t2)
7202 "Return the difference between the two times, in seconds. 7220 "Return the difference between the two times, in seconds.
7203T1 and T2 are time values (as returned by `current-time' for example). 7221T1 and T2 are time values (as returned by `current-time' for example)."
7204
7205NOTE: This function will fail if the time difference is too large to
7206fit in an integer."
7207 ;; Pacify byte-compiler with `symbol-function'. 7222 ;; Pacify byte-compiler with `symbol-function'.
7208 (cond ((and (fboundp 'subtract-time) 7223 (cond ((and (fboundp 'subtract-time)
7209 (fboundp 'float-time)) 7224 (fboundp 'float-time))
@@ -7214,10 +7229,9 @@ fit in an integer."
7214 (funcall (symbol-function 'time-to-seconds) 7229 (funcall (symbol-function 'time-to-seconds)
7215 (funcall (symbol-function 'subtract-time) t1 t2))) 7230 (funcall (symbol-function 'subtract-time) t1 t2)))
7216 ((fboundp 'itimer-time-difference) 7231 ((fboundp 'itimer-time-difference)
7217 (floor (funcall 7232 (funcall (symbol-function 'itimer-time-difference)
7218 (symbol-function 'itimer-time-difference) 7233 (if (< (length t1) 3) (append t1 '(0)) t1)
7219 (if (< (length t1) 3) (append t1 '(0)) t1) 7234 (if (< (length t2) 3) (append t2 '(0)) t2)))
7220 (if (< (length t2) 3) (append t2 '(0)) t2))))
7221 (t 7235 (t
7222 ;; snarfed from Emacs 21 time-date.el; combining 7236 ;; snarfed from Emacs 21 time-date.el; combining
7223 ;; time-to-seconds and subtract-time 7237 ;; time-to-seconds and subtract-time
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el
index c7edf9a4cdc..710022f885b 100644
--- a/lisp/net/trampver.el
+++ b/lisp/net/trampver.el
@@ -30,7 +30,7 @@
30;; are auto-frobbed from configure.ac, so you should edit that file and run 30;; are auto-frobbed from configure.ac, so you should edit that file and run
31;; "autoconf && ./configure" to change them. 31;; "autoconf && ./configure" to change them.
32 32
33(defconst tramp-version "2.0.53" 33(defconst tramp-version "2.0.54"
34 "This version of Tramp.") 34 "This version of Tramp.")
35 35
36(defconst tramp-bug-report-address "tramp-devel@gnu.org" 36(defconst tramp-bug-report-address "tramp-devel@gnu.org"
diff --git a/man/ChangeLog b/man/ChangeLog
index c43e6cf55ae..d4784911c0c 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,10 @@
12006-08-29 Michael Albinus <michael.albinus@gmx.de>
2
3 Sync with Tramp 2.0.54.
4
5 * tramp.texi (Bug Reports): The Tramp mailing list is moderated
6 now. Suggested by Adrian Phillips <a.phillips@met.no>.
7
12006-08-28 Richard Stallman <rms@gnu.org> 82006-08-28 Richard Stallman <rms@gnu.org>
2 9
3 * windows.texi (Split Window): Update xref. 10 * windows.texi (Split Window): Update xref.
diff --git a/man/tramp.texi b/man/tramp.texi
index e7d7b3d6b8d..b85347461ca 100644
--- a/man/tramp.texi
+++ b/man/tramp.texi
@@ -1931,12 +1931,16 @@ navigation in the @file{*Compilation*} buffer.
1931@chapter Reporting Bugs and Problems 1931@chapter Reporting Bugs and Problems
1932@cindex bug reports 1932@cindex bug reports
1933 1933
1934Bugs and problems with @value{tramp} are actively worked on by the development 1934Bugs and problems with @value{tramp} are actively worked on by the
1935team. Feature requests and suggestions are also more than welcome. 1935development team. Feature requests and suggestions are also more than
1936 1936welcome.
1937The @value{tramp} mailing list is a great place to get information on working 1937
1938with @value{tramp}, solving problems and general discussion and advice on topics 1938The @value{tramp} mailing list is a great place to get information on
1939relating to the package. 1939working with @value{tramp}, solving problems and general discussion
1940and advice on topics relating to the package. It is moderated so
1941non-subscribers can post but messages will be delayed, possibly up to
194248 hours (or longer in case of holidays), until the moderator approves
1943your message.
1940 1944
1941The mailing list is at @email{tramp-devel@@gnu.org}. Messages sent to 1945The mailing list is at @email{tramp-devel@@gnu.org}. Messages sent to
1942this address go to all the subscribers. This is @emph{not} the address 1946this address go to all the subscribers. This is @emph{not} the address
diff --git a/man/trampver.texi b/man/trampver.texi
index 4fc3958b2f2..bf220f4b195 100644
--- a/man/trampver.texi
+++ b/man/trampver.texi
@@ -4,7 +4,7 @@
4@c In the Tramp CVS, the version number is auto-frobbed from 4@c In the Tramp CVS, the version number is auto-frobbed from
5@c configure.ac, so you should edit that file and run 5@c configure.ac, so you should edit that file and run
6@c "autoconf && ./configure" to change the version number. 6@c "autoconf && ./configure" to change the version number.
7@set trampver 2.0.53 7@set trampver 2.0.54
8 8
9@c Other flags from configuration 9@c Other flags from configuration
10@set prefix /usr/local 10@set prefix /usr/local