diff options
| author | Eli Zaretskii | 2009-03-21 14:00:26 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2009-03-21 14:00:26 +0000 |
| commit | 8e9b25831feecd9b0732a5c10f6b1ad56d6b5d4e (patch) | |
| tree | cccf04a0434dcc3ee88318f095583df51b9e9a3c /lisp/eshell | |
| parent | ae2349fed8c140d4d891519dce29ca9abf7ec0f7 (diff) | |
| download | emacs-8e9b25831feecd9b0732a5c10f6b1ad56d6b5d4e.tar.gz emacs-8e9b25831feecd9b0732a5c10f6b1ad56d6b5d4e.zip | |
(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')
| -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." | |||
| 579 | string))) | 579 | string))) |
| 580 | 580 | ||
| 581 | (unless (fboundp 'directory-files-and-attributes) | 581 | (unless (fboundp 'directory-files-and-attributes) |
| 582 | (defun directory-files-and-attributes (directory &optional full match nosort) | 582 | (defun directory-files-and-attributes (directory &optional full match nosort id-format) |
| 583 | "Return a list of names of files and their attributes in DIRECTORY. | 583 | "Return a list of names of files and their attributes in DIRECTORY. |
| 584 | There are three optional arguments: | 584 | There are three optional arguments: |
| 585 | If FULL is non-nil, return absolute file names. Otherwise return names | 585 | 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. | |||
| 596 | 596 | ||
| 597 | (defvar ange-cache) | 597 | (defvar ange-cache) |
| 598 | 598 | ||
| 599 | (defun eshell-directory-files-and-attributes (dir &optional full match nosort) | 599 | (defun eshell-directory-files-and-attributes (dir &optional full match nosort id-format) |
| 600 | "Make sure to use the handler for `directory-file-and-attributes'." | 600 | "Make sure to use the handler for `directory-file-and-attributes'." |
| 601 | (let* ((dir (expand-file-name dir)) | 601 | (let* ((dir (expand-file-name dir)) |
| 602 | (dfh (find-file-name-handler dir 'directory-files))) | 602 | (dfh (find-file-name-handler dir 'directory-files))) |
| 603 | (if (not dfh) | 603 | (if (not dfh) |
| 604 | (directory-files-and-attributes dir full match nosort) | 604 | (directory-files-and-attributes dir full match nosort id-format) |
| 605 | (let ((files (funcall dfh 'directory-files dir full match nosort)) | 605 | (let ((files (funcall dfh 'directory-files dir full match nosort)) |
| 606 | (fah (find-file-name-handler dir 'file-attributes))) | 606 | (fah (find-file-name-handler dir 'file-attributes))) |
| 607 | (mapcar | 607 | (mapcar |