Mercurial > emacs
diff lisp/eshell/esh-util.el @ 107103:f2353518b994
Fix to uid/gid format in eshell's ls (Bug#5528).
* eshell/esh-util.el (eshell-file-attributes): New optional arg
ID-FORMAT. Pass it to `file-attributes'.
* eshell/em-ls.el (eshell-do-ls): Use it (Bug#5528).
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sun, 07 Feb 2010 01:23:10 -0500 |
parents | 1d1d5d9bd884 |
children | 5fabe7db5188 376148b31b5e |
line wrap: on
line diff
--- a/lisp/eshell/esh-util.el Sat Feb 06 23:14:26 2010 -0500 +++ b/lisp/eshell/esh-util.el Sun Feb 07 01:23:10 2010 -0500 @@ -701,8 +701,11 @@ (forward-line))) entry)) -(defun eshell-file-attributes (file) - "Return the attributes of FILE, playing tricks if it's over ange-ftp." +(defun eshell-file-attributes (file &optional id-format) + "Return the attributes of FILE, playing tricks if it's over ange-ftp. +The optional argument ID-FORMAT specifies the preferred uid and +gid format. Valid values are 'string and 'integer, defaulting to +'integer. See `file-attributes'." (let* ((file (expand-file-name file)) entry) (if (string-equal (file-remote-p file 'method) "ftp") @@ -723,7 +726,7 @@ (setq entry (cdr fentry)) (setq entry nil))))) entry) - (file-attributes file)))) + (file-attributes file id-format)))) (defalias 'eshell-copy-tree 'copy-tree)