aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2013-01-05 14:48:16 +0100
committerMichael Albinus2013-01-05 14:48:16 +0100
commitf4566fe987dfcce3aedeb9ab505474408071904f (patch)
tree4f3c327f83e06b7957d773609fa12ca7eaccbb7a
parent838cf2981c3ce4fe6e1b7aa6c90c947c6d4bf027 (diff)
downloademacs-f4566fe987dfcce3aedeb9ab505474408071904f.tar.gz
emacs-f4566fe987dfcce3aedeb9ab505474408071904f.zip
* net/tramp-adb.el (tramp-do-parse-file-attributes-with-ls):
(tramp-adb-handle-directory-files-and-attributes): Fix typos.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp-adb.el18
2 files changed, 16 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5ec36240b9e..f2c6b569126 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-01-05 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-adb.el (tramp-do-parse-file-attributes-with-ls):
4 (tramp-adb-handle-directory-files-and-attributes): Fix typos.
5
12013-01-05 Jürgen Hötzel <juergen@archlinux.org> 62013-01-05 Jürgen Hötzel <juergen@archlinux.org>
2 7
3 * net/tramp-adb.el (tramp-adb-handle-file-attributes): More robust 8 * net/tramp-adb.el (tramp-adb-handle-file-attributes): More robust
diff --git a/lisp/net/tramp-adb.el b/lisp/net/tramp-adb.el
index b555746620a..fd8fdb51796 100644
--- a/lisp/net/tramp-adb.el
+++ b/lisp/net/tramp-adb.el
@@ -325,7 +325,7 @@ pass to the OPERATION."
325 mod-string 325 mod-string
326 ;; fake 326 ;; fake
327 t 1 327 t 1
328 (tramp-get-device v)) 328 (tramp-get-device vec))
329 file-properties))) 329 file-properties)))
330 file-properties))) 330 file-properties)))
331 331
@@ -335,7 +335,7 @@ pass to the OPERATION."
335 (when (file-directory-p directory) 335 (when (file-directory-p directory)
336 (with-parsed-tramp-file-name (expand-file-name directory) nil 336 (with-parsed-tramp-file-name (expand-file-name directory) nil
337 (with-tramp-file-property 337 (with-tramp-file-property
338 v localname (format "directory-files-attributes-%s-%s-%s-s" 338 v localname (format "directory-files-attributes-%s-%s-%s-%s"
339 full match id-format nosort) 339 full match id-format nosort)
340 (tramp-adb-barf-unless-okay 340 (tramp-adb-barf-unless-okay
341 v (format "%s -a -l %s" 341 v (format "%s -a -l %s"
@@ -343,13 +343,17 @@ pass to the OPERATION."
343 (tramp-shell-quote-argument localname)) "") 343 (tramp-shell-quote-argument localname)) "")
344 (with-current-buffer (tramp-get-buffer v) 344 (with-current-buffer (tramp-get-buffer v)
345 (tramp-adb-sh-fix-ls-output) 345 (tramp-adb-sh-fix-ls-output)
346 (let ((result (tramp-do-parse-file-attributes-with-ls v (or id-format 'integer)))) 346 (let ((result (tramp-do-parse-file-attributes-with-ls
347 v (or id-format 'integer))))
347 (when full 348 (when full
348 (setq result (mapcar 349 (setq result
349 (lambda (x) (cons (expand-file-name (car x) directory) (cdr x))) 350 (mapcar
350 result))) 351 (lambda (x)
352 (cons (expand-file-name (car x) directory) (cdr x)))
353 result)))
351 (unless nosort 354 (unless nosort
352 (setq result (sort result (lambda (x y) (string< (car x) (car y)))))) 355 (setq result
356 (sort result (lambda (x y) (string< (car x) (car y))))))
353 (delq nil 357 (delq nil
354 (mapcar (lambda (x) 358 (mapcar (lambda (x)
355 (if (or (not match) (string-match match (car x))) 359 (if (or (not match) (string-match match (car x)))