diff options
| author | Michael Albinus | 2015-12-29 15:35:44 +0100 |
|---|---|---|
| committer | Michael Albinus | 2015-12-29 15:35:44 +0100 |
| commit | 8ca864ba8df6c2214dcaa9c8d1c9aa069a62db06 (patch) | |
| tree | 320d983bef2c60d05a6915ee2b0167d974c824af | |
| parent | 959ce5271b6e2b715bc5059fbd2b1014d954e82a (diff) | |
| download | emacs-8ca864ba8df6c2214dcaa9c8d1c9aa069a62db06.tar.gz emacs-8ca864ba8df6c2214dcaa9c8d1c9aa069a62db06.zip | |
Sync with Tramp 2.2.13
* doc/misc/trampver.texi: Change version to "2.2.13.25.1".
* lisp/net/tramp-compat.el (tramp-compat-delete-dups):
Use `tramp-compat-funcall'.
* lisp/net/tramp-gvfs.el (tramp-gvfs-parse-device-names):
Make `split-string' call compatible with older Emacsen.
* lisp/net/trampver.el: Change version to "2.2.13.25.1".
| -rw-r--r-- | doc/misc/trampver.texi | 2 | ||||
| -rw-r--r-- | lisp/net/tramp-compat.el | 3 | ||||
| -rw-r--r-- | lisp/net/tramp-gvfs.el | 13 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 7 | ||||
| -rw-r--r-- | lisp/net/trampver.el | 2 |
5 files changed, 16 insertions, 11 deletions
diff --git a/doc/misc/trampver.texi b/doc/misc/trampver.texi index a3032190909..436679613a1 100644 --- a/doc/misc/trampver.texi +++ b/doc/misc/trampver.texi | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | @c In the Tramp GIT, the version number is auto-frobbed from | 8 | @c In the Tramp GIT, the version number is auto-frobbed from |
| 9 | @c configure.ac, so you should edit that file and run | 9 | @c configure.ac, so you should edit that file and run |
| 10 | @c "autoconf && ./configure" to change the version number. | 10 | @c "autoconf && ./configure" to change the version number. |
| 11 | @set trampver 2.2.13-25.1 | 11 | @set trampver 2.2.13.25.1 |
| 12 | 12 | ||
| 13 | @c Other flags from configuration | 13 | @c Other flags from configuration |
| 14 | @set instprefix /usr/local | 14 | @set instprefix /usr/local |
diff --git a/lisp/net/tramp-compat.el b/lisp/net/tramp-compat.el index c57102881bf..b6d6796255b 100644 --- a/lisp/net/tramp-compat.el +++ b/lisp/net/tramp-compat.el | |||
| @@ -600,7 +600,8 @@ and replace a sub-expression, e.g. | |||
| 600 | Store the result in LIST and return it. LIST must be a proper list. | 600 | Store the result in LIST and return it. LIST must be a proper list. |
| 601 | Of several `equal' occurrences of an element in LIST, the first | 601 | Of several `equal' occurrences of an element in LIST, the first |
| 602 | one is kept." | 602 | one is kept." |
| 603 | (cl-delete-duplicates list '(:test equal :from-end) nil))) | 603 | (tramp-compat-funcall |
| 604 | 'cl-delete-duplicates list '(:test equal :from-end) nil))) | ||
| 604 | 605 | ||
| 605 | (add-hook 'tramp-unload-hook | 606 | (add-hook 'tramp-unload-hook |
| 606 | (lambda () | 607 | (lambda () |
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index c5a60751d5b..549d3b15abe 100644 --- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el | |||
| @@ -1740,20 +1740,25 @@ be used." | |||
| 1740 | (list user host))) | 1740 | (list user host))) |
| 1741 | (zeroconf-list-services service))) | 1741 | (zeroconf-list-services service))) |
| 1742 | 1742 | ||
| 1743 | ;; We use the TRIM argument of `split-string', which exist since Emacs | ||
| 1744 | ;; 24.4. I mask this for older Emacs versions, there is no harm. | ||
| 1743 | (defun tramp-gvfs-parse-device-names (service) | 1745 | (defun tramp-gvfs-parse-device-names (service) |
| 1744 | "Return a list of (user host) tuples allowed to access. | 1746 | "Return a list of (user host) tuples allowed to access. |
| 1745 | This uses \"avahi-browse\" in case D-Bus is not enabled in Avahi." | 1747 | This uses \"avahi-browse\" in case D-Bus is not enabled in Avahi." |
| 1746 | (let ((result | 1748 | (let ((result |
| 1747 | (split-string | 1749 | (ignore-errors |
| 1748 | (shell-command-to-string (format "avahi-browse -trkp %s" service)) | 1750 | (tramp-compat-funcall |
| 1749 | "[\n\r]+" 'omit "^\\+;.*$"))) | 1751 | 'split-string |
| 1752 | (shell-command-to-string (format "avahi-browse -trkp %s" service)) | ||
| 1753 | "[\n\r]+" 'omit "^\\+;.*$")))) | ||
| 1750 | (tramp-compat-delete-dups | 1754 | (tramp-compat-delete-dups |
| 1751 | (mapcar | 1755 | (mapcar |
| 1752 | (lambda (x) | 1756 | (lambda (x) |
| 1753 | (let* ((list (split-string x ";")) | 1757 | (let* ((list (split-string x ";")) |
| 1754 | (host (nth 6 list)) | 1758 | (host (nth 6 list)) |
| 1755 | (port (nth 8 list)) | 1759 | (port (nth 8 list)) |
| 1756 | (text (split-string (nth 9 list) "\" \"" 'omit "\"")) | 1760 | (text (tramp-compat-funcall |
| 1761 | 'split-string (nth 9 list) "\" \"" 'omit "\"")) | ||
| 1757 | user) | 1762 | user) |
| 1758 | ; (when (and port (not (string-equal port "0"))) | 1763 | ; (when (and port (not (string-equal port "0"))) |
| 1759 | ; (setq host (format "%s%s%s" host tramp-prefix-port-regexp port))) | 1764 | ; (setq host (format "%s%s%s" host tramp-prefix-port-regexp port))) |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index aebfe422168..0dd2440e5e0 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -5425,9 +5425,6 @@ Return ATTR." | |||
| 5425 | (save-match-data | 5425 | (save-match-data |
| 5426 | (with-tramp-connection-property vec "ls-quoting-style" | 5426 | (with-tramp-connection-property vec "ls-quoting-style" |
| 5427 | (tramp-message vec 5 "Checking, whether `ls --quoting-style=shell' works") | 5427 | (tramp-message vec 5 "Checking, whether `ls --quoting-style=shell' works") |
| 5428 | ;; Some "ls" versions are sensible wrt the order of arguments, | ||
| 5429 | ;; they fail when "-al" is after the "--dired" argument (for | ||
| 5430 | ;; example on FreeBSD). | ||
| 5431 | (tramp-send-command-and-check | 5428 | (tramp-send-command-and-check |
| 5432 | vec (format "%s --quoting-style=shell -al /dev/null" | 5429 | vec (format "%s --quoting-style=shell -al /dev/null" |
| 5433 | (tramp-get-ls-command vec)))))) | 5430 | (tramp-get-ls-command vec)))))) |
| @@ -5436,7 +5433,9 @@ Return ATTR." | |||
| 5436 | (save-match-data | 5433 | (save-match-data |
| 5437 | (with-tramp-connection-property vec "ls-w-option" | 5434 | (with-tramp-connection-property vec "ls-w-option" |
| 5438 | (tramp-message vec 5 "Checking, whether `ls -w' works") | 5435 | (tramp-message vec 5 "Checking, whether `ls -w' works") |
| 5439 | ;; Option "-w" is available on BSD systems. | 5436 | ;; Option "-w" is available on BSD systems. No argument is |
| 5437 | ;; given, because this could return wrong results in case "ls" | ||
| 5438 | ;; supports the "-w NUM" argument, as for busyboxes. | ||
| 5440 | (tramp-send-command-and-check | 5439 | (tramp-send-command-and-check |
| 5441 | vec (format "%s -alw" (tramp-get-ls-command vec)))))) | 5440 | vec (format "%s -alw" (tramp-get-ls-command vec)))))) |
| 5442 | 5441 | ||
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el index 77ee8aebd61..f93cfc4e8ae 100644 --- a/lisp/net/trampver.el +++ b/lisp/net/trampver.el | |||
| @@ -63,7 +63,7 @@ | |||
| 63 | (= emacs-major-version 21) | 63 | (= emacs-major-version 21) |
| 64 | (>= emacs-minor-version 4))) | 64 | (>= emacs-minor-version 4))) |
| 65 | "ok" | 65 | "ok" |
| 66 | (format "Tramp 2.2.13-pre is not fit for %s" | 66 | (format "Tramp 2.2.13.25.1 is not fit for %s" |
| 67 | (when (string-match "^.*$" (emacs-version)) | 67 | (when (string-match "^.*$" (emacs-version)) |
| 68 | (match-string 0 (emacs-version))))))) | 68 | (match-string 0 (emacs-version))))))) |
| 69 | (unless (string-match "\\`ok\\'" x) (error "%s" x))) | 69 | (unless (string-match "\\`ok\\'" x) (error "%s" x))) |