diff options
author | Eli Zaretskii <eliz@gnu.org> | 2009-03-21 14:00:26 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2009-03-21 14:00:26 +0000 |
commit | 8e9b25831feecd9b0732a5c10f6b1ad56d6b5d4e (patch) | |
tree | cccf04a0434dcc3ee88318f095583df51b9e9a3c /lisp/eshell/esh-util.el | |
parent | ae2349fed8c140d4d891519dce29ca9abf7ec0f7 (diff) | |
download | emacs-8e9b25831feecd9b0732a5c10f6b1ad56d6b5d4e.tar.gz |
(directory-files-and-attributes): Accept and ignore additional optional
argument id-format.
(eshell-directory-files-and-attributes): Call directory-files-and-attributes
with additional argument id-format.
Diffstat (limited to 'lisp/eshell/esh-util.el')
-rw-r--r-- | lisp/eshell/esh-util.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el index 60e5fe7ab9a..4c5ecb4617a 100644 --- a/lisp/eshell/esh-util.el +++ b/lisp/eshell/esh-util.el @@ -579,7 +579,7 @@ Unless optional argument INPLACE is non-nil, return a new string." string))) (unless (fboundp 'directory-files-and-attributes) - (defun directory-files-and-attributes (directory &optional full match nosort) + (defun directory-files-and-attributes (directory &optional full match nosort id-format) "Return a list of names of files and their attributes in DIRECTORY. There are three optional arguments: If FULL is non-nil, return absolute file names. Otherwise return names @@ -596,12 +596,12 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable. (defvar ange-cache) -(defun eshell-directory-files-and-attributes (dir &optional full match nosort) +(defun eshell-directory-files-and-attributes (dir &optional full match nosort id-format) "Make sure to use the handler for `directory-file-and-attributes'." (let* ((dir (expand-file-name dir)) (dfh (find-file-name-handler dir 'directory-files))) (if (not dfh) - (directory-files-and-attributes dir full match nosort) + (directory-files-and-attributes dir full match nosort id-format) (let ((files (funcall dfh 'directory-files dir full match nosort)) (fah (find-file-name-handler dir 'file-attributes))) (mapcar |