diff options
| author | Michael Albinus | 2006-12-30 16:17:10 +0000 |
|---|---|---|
| committer | Michael Albinus | 2006-12-30 16:17:10 +0000 |
| commit | 658052a2cedcc669bc0a7b5f6d216faa339f0612 (patch) | |
| tree | 14ddb5ae9b97a1f2d525bf99e2b50027f798beab | |
| parent | 11e95b020010b5f1dbaad98975b750ec4721e36d (diff) | |
| download | emacs-658052a2cedcc669bc0a7b5f6d216faa339f0612.tar.gz emacs-658052a2cedcc669bc0a7b5f6d216faa339f0612.zip | |
Sync with Tramp 2.0.55.
| -rw-r--r-- | lisp/ChangeLog | 16 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 27 | ||||
| -rw-r--r-- | lisp/net/trampver.el | 2 | ||||
| -rw-r--r-- | man/ChangeLog | 6 | ||||
| -rw-r--r-- | man/trampver.texi | 4 |
5 files changed, 45 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 63c4c579cc7..d865ceb9985 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2006-12-30 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | Sync with Tramp 2.0.55. | ||
| 4 | |||
| 5 | * net/tramp.el (tramp-completion-mode): Use `wholenump' instead of | ||
| 6 | `integerp'. `char-equal' could fail else in case of negative | ||
| 7 | numbers. Reported by Toby Speight <T.M.Speight.90@cantab.net>. | ||
| 8 | (top): Check for `font-lock-add-keywords' before calling; it | ||
| 9 | doesn't exist under XEmacs. | ||
| 10 | (tramp-yn-prompt-regexp): Fix regexp. Add question from plink. | ||
| 11 | (tramp-completion-mode): Remove clause (not | ||
| 12 | tramp-unified-filenames), because the function is called in other | ||
| 13 | context too, where this check results in wrong results in the | ||
| 14 | XEmacs case on Windows. | ||
| 15 | (tramp-touch): UTC handling is not possible for XEmacs. | ||
| 16 | |||
| 1 | 2006-12-30 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 17 | 2006-12-30 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 2 | 18 | ||
| 3 | * scroll-bar.el (previous-scroll-bar-mode): New variable | 19 | * scroll-bar.el (previous-scroll-bar-mode): New variable |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 000b0922b50..1835599a1c6 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -956,8 +956,10 @@ See also `tramp-yn-prompt-regexp'." | |||
| 956 | :type 'regexp) | 956 | :type 'regexp) |
| 957 | 957 | ||
| 958 | (defcustom tramp-yn-prompt-regexp | 958 | (defcustom tramp-yn-prompt-regexp |
| 959 | (concat (regexp-opt '("Store key in cache? (y/n)") t) | 959 | (concat |
| 960 | "\\s-*") | 960 | (regexp-opt '("Store key in cache? (y/n)" |
| 961 | "Update cached key? (y/n, Return cancels connection)") t) | ||
| 962 | "\\s-*") | ||
| 961 | "Regular expression matching all y/n queries which need to be confirmed. | 963 | "Regular expression matching all y/n queries which need to be confirmed. |
| 962 | The confirmation should be done with y or n. | 964 | The confirmation should be done with y or n. |
| 963 | The regexp should match at end of buffer. | 965 | The regexp should match at end of buffer. |
| @@ -2075,7 +2077,9 @@ If VAR is nil, then we bind `v' to the structure and `multi-method', | |||
| 2075 | ;; Enable debugging. | 2077 | ;; Enable debugging. |
| 2076 | (def-edebug-spec with-parsed-tramp-file-name (form symbolp body)) | 2078 | (def-edebug-spec with-parsed-tramp-file-name (form symbolp body)) |
| 2077 | ;; Highlight as keyword. | 2079 | ;; Highlight as keyword. |
| 2078 | (font-lock-add-keywords 'emacs-lisp-mode '("\\<with-parsed-tramp-file-name\\>")) | 2080 | (when (functionp 'font-lock-add-keywords) |
| 2081 | (funcall 'font-lock-add-keywords | ||
| 2082 | 'emacs-lisp-mode '("\\<with-parsed-tramp-file-name\\>"))) | ||
| 2079 | 2083 | ||
| 2080 | (defmacro tramp-let-maybe (variable value &rest body) | 2084 | (defmacro tramp-let-maybe (variable value &rest body) |
| 2081 | "Let-bind VARIABLE to VALUE in BODY, but only if VARIABLE is not obsolete. | 2085 | "Let-bind VARIABLE to VALUE in BODY, but only if VARIABLE is not obsolete. |
| @@ -4526,7 +4530,6 @@ Falls back to normal file name handler if no tramp file name handler exists." | |||
| 4526 | "Checks whether method / user name / host name completion is active." | 4530 | "Checks whether method / user name / host name completion is active." |
| 4527 | (cond | 4531 | (cond |
| 4528 | (tramp-completion-mode t) | 4532 | (tramp-completion-mode t) |
| 4529 | ((not tramp-unified-filenames) t) | ||
| 4530 | ((string-match "^/.*:.*:$" file) nil) | 4533 | ((string-match "^/.*:.*:$" file) nil) |
| 4531 | ((string-match | 4534 | ((string-match |
| 4532 | (concat tramp-prefix-regexp | 4535 | (concat tramp-prefix-regexp |
| @@ -4535,7 +4538,7 @@ Falls back to normal file name handler if no tramp file name handler exists." | |||
| 4535 | (member (match-string 1 file) (mapcar 'car tramp-methods))) | 4538 | (member (match-string 1 file) (mapcar 'car tramp-methods))) |
| 4536 | ((or (equal last-input-event 'tab) | 4539 | ((or (equal last-input-event 'tab) |
| 4537 | ;; Emacs | 4540 | ;; Emacs |
| 4538 | (and (integerp last-input-event) | 4541 | (and (wholenump last-input-event) |
| 4539 | (or | 4542 | (or |
| 4540 | ;; ?\t has event-modifier 'control | 4543 | ;; ?\t has event-modifier 'control |
| 4541 | (char-equal last-input-event ?\t) | 4544 | (char-equal last-input-event ?\t) |
| @@ -5104,13 +5107,23 @@ hosts, or files, disagree." | |||
| 5104 | (defun tramp-touch (file time) | 5107 | (defun tramp-touch (file time) |
| 5105 | "Set the last-modified timestamp of the given file. | 5108 | "Set the last-modified timestamp of the given file. |
| 5106 | TIME is an Emacs internal time value as returned by `current-time'." | 5109 | TIME is an Emacs internal time value as returned by `current-time'." |
| 5107 | (let ((touch-time (format-time-string "%Y%m%d%H%M.%S" time t))) | 5110 | (let* ((utc |
| 5111 | ;; With GNU Emacs, `format-time-string' has an optional | ||
| 5112 | ;; parameter UNIVERSAL. This is preferred. | ||
| 5113 | (and (functionp 'subr-arity) | ||
| 5114 | (= 3 (cdr (funcall (symbol-function 'subr-arity) | ||
| 5115 | (symbol-function 'format-time-string)))))) | ||
| 5116 | (touch-time | ||
| 5117 | (if utc | ||
| 5118 | (format-time-string "%Y%m%d%H%M.%S" time t) | ||
| 5119 | (format-time-string "%Y%m%d%H%M.%S" time)))) | ||
| 5108 | (if (tramp-tramp-file-p file) | 5120 | (if (tramp-tramp-file-p file) |
| 5109 | (with-parsed-tramp-file-name file nil | 5121 | (with-parsed-tramp-file-name file nil |
| 5110 | (let ((buf (tramp-get-buffer multi-method method user host))) | 5122 | (let ((buf (tramp-get-buffer multi-method method user host))) |
| 5111 | (unless (zerop (tramp-send-command-and-check | 5123 | (unless (zerop (tramp-send-command-and-check |
| 5112 | multi-method method user host | 5124 | multi-method method user host |
| 5113 | (format "TZ=UTC; export TZ; touch -t %s %s" | 5125 | (format "%s touch -t %s %s" |
| 5126 | (if utc "TZ=UTC; export TZ;" "") | ||
| 5114 | touch-time | 5127 | touch-time |
| 5115 | (tramp-shell-quote-argument localname)) | 5128 | (tramp-shell-quote-argument localname)) |
| 5116 | t)) | 5129 | t)) |
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el index 710022f885b..8061b78e124 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.54" | 33 | (defconst tramp-version "2.0.55" |
| 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 b4daf4f0973..30da4ff1314 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2006-12-30 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | Sync with Tramp 2.0.55. | ||
| 4 | |||
| 5 | * trampver.texi: Update release number. | ||
| 6 | |||
| 1 | 2006-12-29 Reiner Steib <Reiner.Steib@gmx.de> | 7 | 2006-12-29 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 8 | ||
| 3 | * gnus.texi (Customizing Articles): Add index entries for all | 9 | * gnus.texi (Customizing Articles): Add index entries for all |
diff --git a/man/trampver.texi b/man/trampver.texi index bf220f4b195..a7777b00c79 100644 --- a/man/trampver.texi +++ b/man/trampver.texi | |||
| @@ -4,12 +4,12 @@ | |||
| 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.54 | 7 | @set trampver 2.0.55 |
| 8 | 8 | ||
| 9 | @c Other flags from configuration | 9 | @c Other flags from configuration |
| 10 | @set prefix /usr/local | 10 | @set prefix /usr/local |
| 11 | @set lispdir /usr/local/share/emacs/site-lisp | 11 | @set lispdir /usr/local/share/emacs/site-lisp |
| 12 | @set infodir /usr/local/info | 12 | @set infodir /usr/local/share/info |
| 13 | 13 | ||
| 14 | @c Formatting of the tramp program name consistent. | 14 | @c Formatting of the tramp program name consistent. |
| 15 | @set tramp @sc{tramp} | 15 | @set tramp @sc{tramp} |