[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/eshell/esh-util.el
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/eshell/esh-util.el |
Date: |
Mon, 21 Oct 2002 03:00:54 -0400 |
Index: emacs/lisp/eshell/esh-util.el
diff -c emacs/lisp/eshell/esh-util.el:1.18 emacs/lisp/eshell/esh-util.el:1.19
*** emacs/lisp/eshell/esh-util.el:1.18 Fri Aug 9 20:18:18 2002
--- emacs/lisp/eshell/esh-util.el Mon Oct 21 03:00:52 2002
***************
*** 588,601 ****
string)))
(unless (fboundp 'directory-files-and-attributes)
! (defun directory-files-and-attributes (dir &optional full match nosort)
! (documentation 'directory-files)
! (let ((dir (expand-file-name dir)) ange-cache)
(mapcar
(function
(lambda (file)
! (cons file (eshell-file-attributes (expand-file-name file dir)))))
! (directory-files dir full match nosort)))))
(eval-when-compile
(defvar ange-cache))
--- 588,607 ----
string)))
(unless (fboundp 'directory-files-and-attributes)
! (defun directory-files-and-attributes (directory &optional full match
nosort)
! "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
! that are relative to the specified directory.
! If MATCH is non-nil, mention only file names that match the regexp MATCH.
! If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
! NOSORT is useful if you plan to sort the result yourself."
! (let ((directory (expand-file-name directory)) ange-cache)
(mapcar
(function
(lambda (file)
! (cons file (eshell-file-attributes (expand-file-name file
directory)))))
! (directory-files directory full match nosort)))))
(eval-when-compile
(defvar ange-cache))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/eshell/esh-util.el,
Juanma Barranquero <=