aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorEli Zaretskii2009-03-21 14:00:26 +0000
committerEli Zaretskii2009-03-21 14:00:26 +0000
commit8e9b25831feecd9b0732a5c10f6b1ad56d6b5d4e (patch)
treecccf04a0434dcc3ee88318f095583df51b9e9a3c /lisp/eshell
parentae2349fed8c140d4d891519dce29ca9abf7ec0f7 (diff)
downloademacs-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.el6
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.
584There are three optional arguments: 584There are three optional arguments:
585If FULL is non-nil, return absolute file names. Otherwise return names 585If 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