diff options
| author | Michael Albinus | 2014-07-03 11:27:02 +0200 |
|---|---|---|
| committer | Michael Albinus | 2014-07-03 11:27:02 +0200 |
| commit | 95268e987c484b98aac3de54cf91d65db16f4c22 (patch) | |
| tree | 8a87357c09ed784dbcf0ef810fe0abfb37149e42 | |
| parent | 57b02816a8e12b1dd3a280bced92d73ed699de8c (diff) | |
| download | emacs-95268e987c484b98aac3de54cf91d65db16f4c22.tar.gz emacs-95268e987c484b98aac3de54cf91d65db16f4c22.zip | |
* net/tramp-adb.el (tramp-adb-sh-fix-ls-output): Use `bolp'.
* net/tramp-sh.el (tramp-sh-handle-set-visited-file-modtime)
(tramp-sh-handle-verify-visited-file-modtime): Use `point-at-eol'.
* net/tramp.el (tramp-call-process): Handle error strings.
* net/trampver.el: Update release number.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/net/tramp-adb.el | 4 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 6 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 10 | ||||
| -rw-r--r-- | lisp/net/trampver.el | 6 |
5 files changed, 23 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3c71395f8b9..450eac3f48d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2014-07-03 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-call-process): Handle error strings. | ||
| 4 | |||
| 5 | * net/tramp-adb.el (tramp-adb-sh-fix-ls-output): Use `bolp'. | ||
| 6 | |||
| 7 | * net/tramp-sh.el (tramp-sh-handle-set-visited-file-modtime) | ||
| 8 | (tramp-sh-handle-verify-visited-file-modtime): Use `point-at-eol'. | ||
| 9 | |||
| 10 | * net/trampver.el: Update release number. | ||
| 11 | |||
| 1 | 2014-07-03 Juri Linkov <juri@jurta.org> | 12 | 2014-07-03 Juri Linkov <juri@jurta.org> |
| 2 | 13 | ||
| 3 | * desktop.el (desktop-save): Rename arg `auto-save' to | 14 | * desktop.el (desktop-save): Rename arg `auto-save' to |
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el index 4f6d5807ba5..16017eebba3 100644 --- a/lisp/net/tramp-adb.el +++ b/lisp/net/tramp-adb.el | |||
| @@ -458,9 +458,7 @@ Emacs dired can't find files." | |||
| 458 | (insert " " (mapconcat 'identity sorted-lines "\n "))) | 458 | (insert " " (mapconcat 'identity sorted-lines "\n "))) |
| 459 | ;; Add final newline. | 459 | ;; Add final newline. |
| 460 | (goto-char (point-max)) | 460 | (goto-char (point-max)) |
| 461 | (unless (= (point) (line-beginning-position)) | 461 | (unless (bolp) (insert "\n")))) |
| 462 | (insert "\n")))) | ||
| 463 | |||
| 464 | 462 | ||
| 465 | (defun tramp-adb-ls-output-time-less-p (a b) | 463 | (defun tramp-adb-ls-output-time-less-p (a b) |
| 466 | "Sort \"ls\" output by time, descending." | 464 | "Sort \"ls\" output by time, descending." |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index d906cc67674..315bc08d0ef 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -1265,8 +1265,7 @@ target of the symlink differ." | |||
| 1265 | (format "%s -ild %s" | 1265 | (format "%s -ild %s" |
| 1266 | (tramp-get-ls-command v) | 1266 | (tramp-get-ls-command v) |
| 1267 | (tramp-shell-quote-argument localname))) | 1267 | (tramp-shell-quote-argument localname))) |
| 1268 | (setq attr (buffer-substring (point) | 1268 | (setq attr (buffer-substring (point) (point-at-eol)))) |
| 1269 | (progn (end-of-line) (point))))) | ||
| 1270 | (tramp-set-file-property | 1269 | (tramp-set-file-property |
| 1271 | v localname "visited-file-modtime-ild" attr)) | 1270 | v localname "visited-file-modtime-ild" attr)) |
| 1272 | (when (boundp 'last-coding-system-used) | 1271 | (when (boundp 'last-coding-system-used) |
| @@ -1317,8 +1316,7 @@ of." | |||
| 1317 | (tramp-get-ls-command v) | 1316 | (tramp-get-ls-command v) |
| 1318 | (tramp-shell-quote-argument localname))) | 1317 | (tramp-shell-quote-argument localname))) |
| 1319 | (with-current-buffer (tramp-get-buffer v) | 1318 | (with-current-buffer (tramp-get-buffer v) |
| 1320 | (setq attr (buffer-substring | 1319 | (setq attr (buffer-substring (point) (point-at-eol)))) |
| 1321 | (point) (progn (end-of-line) (point))))) | ||
| 1322 | (equal | 1320 | (equal |
| 1323 | attr | 1321 | attr |
| 1324 | (tramp-get-file-property | 1322 | (tramp-get-file-property |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 6be737eb3f0..921c70135df 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -4127,10 +4127,9 @@ ALIST is of the form ((FROM . TO) ...)." | |||
| 4127 | (defun tramp-call-process | 4127 | (defun tramp-call-process |
| 4128 | (vec program &optional infile destination display &rest args) | 4128 | (vec program &optional infile destination display &rest args) |
| 4129 | "Calls `call-process' on the local host. | 4129 | "Calls `call-process' on the local host. |
| 4130 | This is needed because for some Emacs flavors Tramp has | 4130 | It always returns a return code. The Lisp error raised when |
| 4131 | defadvised `call-process' to behave like `process-file'. The | 4131 | PROGRAM is nil is trapped also, returning 1. Furthermore, traces |
| 4132 | Lisp error raised when PROGRAM is nil is trapped also, returning 1. | 4132 | are written with verbosity of 6." |
| 4133 | Furthermore, traces are written with verbosity of 6." | ||
| 4134 | (let ((v (or vec | 4133 | (let ((v (or vec |
| 4135 | (vector tramp-current-method tramp-current-user | 4134 | (vector tramp-current-method tramp-current-user |
| 4136 | tramp-current-host nil nil))) | 4135 | tramp-current-host nil nil))) |
| @@ -4144,6 +4143,9 @@ Furthermore, traces are written with verbosity of 6." | |||
| 4144 | (setq result | 4143 | (setq result |
| 4145 | (apply | 4144 | (apply |
| 4146 | 'call-process program infile (or destination t) display args)) | 4145 | 'call-process program infile (or destination t) display args)) |
| 4146 | ;; `result' could also be an error string. | ||
| 4147 | (when (stringp result) | ||
| 4148 | (signal 'file-error (list result))) | ||
| 4147 | (with-current-buffer | 4149 | (with-current-buffer |
| 4148 | (if (bufferp destination) destination (current-buffer)) | 4150 | (if (bufferp destination) destination (current-buffer)) |
| 4149 | (tramp-message v 6 "%d\n%s" result (buffer-string)))) | 4151 | (tramp-message v 6 "%d\n%s" result (buffer-string)))) |
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el index 9c0beb114bc..065c3f33ebe 100644 --- a/lisp/net/trampver.el +++ b/lisp/net/trampver.el | |||
| @@ -24,14 +24,14 @@ | |||
| 24 | 24 | ||
| 25 | ;;; Code: | 25 | ;;; Code: |
| 26 | 26 | ||
| 27 | ;; In the Tramp CVS repository, the version number and the bug report | 27 | ;; In the Tramp GIT repository, the version number and the bug report |
| 28 | ;; address are auto-frobbed from configure.ac, so you should edit that | 28 | ;; address are auto-frobbed from configure.ac, so you should edit that |
| 29 | ;; file and run "autoconf && ./configure" to change them. (X)Emacs | 29 | ;; file and run "autoconf && ./configure" to change them. (X)Emacs |
| 30 | ;; version check is defined in macro AC_EMACS_INFO of aclocal.m4; | 30 | ;; version check is defined in macro AC_EMACS_INFO of aclocal.m4; |
| 31 | ;; should be changed only there. | 31 | ;; should be changed only there. |
| 32 | 32 | ||
| 33 | ;;;###tramp-autoload | 33 | ;;;###tramp-autoload |
| 34 | (defconst tramp-version "2.2.10" | 34 | (defconst tramp-version "2.2.11-pre" |
| 35 | "This version of Tramp.") | 35 | "This version of Tramp.") |
| 36 | 36 | ||
| 37 | ;;;###tramp-autoload | 37 | ;;;###tramp-autoload |
| @@ -44,7 +44,7 @@ | |||
| 44 | (= emacs-major-version 21) | 44 | (= emacs-major-version 21) |
| 45 | (>= emacs-minor-version 4))) | 45 | (>= emacs-minor-version 4))) |
| 46 | "ok" | 46 | "ok" |
| 47 | (format "Tramp 2.2.10 is not fit for %s" | 47 | (format "Tramp 2.2.11-pre is not fit for %s" |
| 48 | (when (string-match "^.*$" (emacs-version)) | 48 | (when (string-match "^.*$" (emacs-version)) |
| 49 | (match-string 0 (emacs-version))))))) | 49 | (match-string 0 (emacs-version))))))) |
| 50 | (unless (string-match "\\`ok\\'" x) (error "%s" x))) | 50 | (unless (string-match "\\`ok\\'" x) (error "%s" x))) |