diff options
| author | Michael Albinus | 2016-12-27 20:06:27 +0100 |
|---|---|---|
| committer | Michael Albinus | 2016-12-27 20:06:27 +0100 |
| commit | aebe6592db7da893fcedb56a3fb4b66ce3de2057 (patch) | |
| tree | 771b43397ead0072019611a68e0cf895abce1e48 | |
| parent | a02ca7a231c3856efd57a502c6a73e6c251091e8 (diff) | |
| download | emacs-aebe6592db7da893fcedb56a3fb4b66ce3de2057.tar.gz emacs-aebe6592db7da893fcedb56a3fb4b66ce3de2057.zip | |
Release Tramp 2.3.1
* doc/misc/trampver.texi:
* lisp/net/trampver.el: Change version to "2.3.1".
* lisp/net/tramp.el (tramp-eshell-directory-change): Add it to
`eshell-mode-hook' but `eshell-first-time-mode-hook'.
* lisp/net/tramp-compat.el (tramp-compat-file-name-quoted-p)
(tramp-compat-file-name-quote)
(tramp-compat-file-name-unquote): Embed them in `eval-and-compile'.
| -rw-r--r-- | doc/misc/trampver.texi | 2 | ||||
| -rw-r--r-- | lisp/net/tramp-compat.el | 47 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 4 | ||||
| -rw-r--r-- | lisp/net/trampver.el | 6 |
4 files changed, 30 insertions, 29 deletions
diff --git a/doc/misc/trampver.texi b/doc/misc/trampver.texi index 3101dc0de82..2677672444e 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.3.1-pre | 11 | @set trampver 2.3.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 9f1c64dd100..9b779a0566b 100644 --- a/lisp/net/tramp-compat.el +++ b/lisp/net/tramp-compat.el | |||
| @@ -349,34 +349,35 @@ This is a string of ten letters or dashes as in ls -l." | |||
| 349 | 349 | ||
| 350 | ;; `file-name-quoted-p', `file-name-quote' and `file-name-unquote' are | 350 | ;; `file-name-quoted-p', `file-name-quote' and `file-name-unquote' are |
| 351 | ;; introduced in Emacs 26. | 351 | ;; introduced in Emacs 26. |
| 352 | (if (fboundp 'file-name-quoted-p) | 352 | (eval-and-compile |
| 353 | (defalias 'tramp-compat-file-name-quoted-p 'file-name-quoted-p) | 353 | (if (fboundp 'file-name-quoted-p) |
| 354 | (defsubst tramp-compat-file-name-quoted-p (name) | 354 | (defalias 'tramp-compat-file-name-quoted-p 'file-name-quoted-p) |
| 355 | "Whether NAME is quoted with prefix \"/:\". | 355 | (defsubst tramp-compat-file-name-quoted-p (name) |
| 356 | "Whether NAME is quoted with prefix \"/:\". | ||
| 356 | If NAME is a remote file name, check the local part of NAME." | 357 | If NAME is a remote file name, check the local part of NAME." |
| 357 | (string-match "^/:" (or (file-remote-p name 'localname) name)))) | 358 | (string-match "^/:" (or (file-remote-p name 'localname) name)))) |
| 358 | 359 | ||
| 359 | (if (fboundp 'file-name-quote) | 360 | (if (fboundp 'file-name-quote) |
| 360 | (defalias 'tramp-compat-file-name-quote 'file-name-quote) | 361 | (defalias 'tramp-compat-file-name-quote 'file-name-quote) |
| 361 | (defsubst tramp-compat-file-name-quote (name) | 362 | (defsubst tramp-compat-file-name-quote (name) |
| 362 | "Add the quotation prefix \"/:\" to file NAME. | 363 | "Add the quotation prefix \"/:\" to file NAME. |
| 363 | If NAME is a remote file name, the local part of NAME is quoted." | 364 | If NAME is a remote file name, the local part of NAME is quoted." |
| 364 | (concat | 365 | (concat |
| 365 | (file-remote-p name) "/:" (or (file-remote-p name 'localname) name)))) | 366 | (file-remote-p name) "/:" (or (file-remote-p name 'localname) name)))) |
| 366 | 367 | ||
| 367 | (if (fboundp 'file-name-unquote) | 368 | (if (fboundp 'file-name-unquote) |
| 368 | (defalias 'tramp-compat-file-name-unquote 'file-name-unquote) | 369 | (defalias 'tramp-compat-file-name-unquote 'file-name-unquote) |
| 369 | (defsubst tramp-compat-file-name-unquote (name) | 370 | (defsubst tramp-compat-file-name-unquote (name) |
| 370 | "Remove quotation prefix \"/:\" from file NAME. | 371 | "Remove quotation prefix \"/:\" from file NAME. |
| 371 | If NAME is a remote file name, the local part of NAME is unquoted." | 372 | If NAME is a remote file name, the local part of NAME is unquoted." |
| 372 | (save-match-data | 373 | (save-match-data |
| 373 | (let ((localname (or (file-remote-p name 'localname) name))) | 374 | (let ((localname (or (file-remote-p name 'localname) name))) |
| 374 | (when (tramp-compat-file-name-quoted-p localname) | 375 | (when (tramp-compat-file-name-quoted-p localname) |
| 375 | (setq | 376 | (setq |
| 376 | localname | 377 | localname |
| 377 | (replace-match | 378 | (replace-match |
| 378 | (if (= (length localname) 2) "/" "") nil t localname))) | 379 | (if (= (length localname) 2) "/" "") nil t localname))) |
| 379 | (concat (file-remote-p name) localname))))) | 380 | (concat (file-remote-p name) localname)))))) |
| 380 | 381 | ||
| 381 | (provide 'tramp-compat) | 382 | (provide 'tramp-compat) |
| 382 | 383 | ||
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 4103a6e76a8..7b5f71a754f 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -4345,13 +4345,13 @@ Only works for Bourne-like shells." | |||
| 4345 | 4345 | ||
| 4346 | (eval-after-load "esh-util" | 4346 | (eval-after-load "esh-util" |
| 4347 | '(progn | 4347 | '(progn |
| 4348 | (add-hook 'eshell-first-time-mode-hook | 4348 | (add-hook 'eshell-mode-hook |
| 4349 | 'tramp-eshell-directory-change) | 4349 | 'tramp-eshell-directory-change) |
| 4350 | (add-hook 'eshell-directory-change-hook | 4350 | (add-hook 'eshell-directory-change-hook |
| 4351 | 'tramp-eshell-directory-change) | 4351 | 'tramp-eshell-directory-change) |
| 4352 | (add-hook 'tramp-unload-hook | 4352 | (add-hook 'tramp-unload-hook |
| 4353 | (lambda () | 4353 | (lambda () |
| 4354 | (remove-hook 'eshell-first-time-mode-hook | 4354 | (remove-hook 'eshell-mode-hook |
| 4355 | 'tramp-eshell-directory-change) | 4355 | 'tramp-eshell-directory-change) |
| 4356 | (remove-hook 'eshell-directory-change-hook | 4356 | (remove-hook 'eshell-directory-change-hook |
| 4357 | 'tramp-eshell-directory-change))))) | 4357 | 'tramp-eshell-directory-change))))) |
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el index fad7e7f77c1..1cdbe161d52 100644 --- a/lisp/net/trampver.el +++ b/lisp/net/trampver.el | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | ;; Author: Kai Großjohann <kai.grossjohann@gmx.net> | 6 | ;; Author: Kai Großjohann <kai.grossjohann@gmx.net> |
| 7 | ;; Keywords: comm, processes | 7 | ;; Keywords: comm, processes |
| 8 | ;; Package: tramp | 8 | ;; Package: tramp |
| 9 | ;; Version: 2.3.1-pre | 9 | ;; Version: 2.3.1 |
| 10 | 10 | ||
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| 12 | 12 | ||
| @@ -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.3.1-pre" | 35 | (defconst tramp-version "2.3.1" |
| 36 | "This version of Tramp.") | 36 | "This version of Tramp.") |
| 37 | 37 | ||
| 38 | ;;;###tramp-autoload | 38 | ;;;###tramp-autoload |
| @@ -54,7 +54,7 @@ | |||
| 54 | ;; Check for Emacs version. | 54 | ;; Check for Emacs version. |
| 55 | (let ((x (if (>= emacs-major-version 23) | 55 | (let ((x (if (>= emacs-major-version 23) |
| 56 | "ok" | 56 | "ok" |
| 57 | (format "Tramp 2.3.1-pre is not fit for %s" | 57 | (format "Tramp 2.3.1 is not fit for %s" |
| 58 | (when (string-match "^.*$" (emacs-version)) | 58 | (when (string-match "^.*$" (emacs-version)) |
| 59 | (match-string 0 (emacs-version))))))) | 59 | (match-string 0 (emacs-version))))))) |
| 60 | (unless (string-match "\\`ok\\'" x) (error "%s" x))) | 60 | (unless (string-match "\\`ok\\'" x) (error "%s" x))) |