Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c4e5b888
Commit
c4e5b888
authored
Oct 21, 2002
by
Juanma Barranquero
Browse files
(directory-files-and-attributes): Copy docstring from Emacs 21. Arg DIR renamed
to DIRECTORY for consistency.
parent
7a362b93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
lisp/eshell/esh-util.el
lisp/eshell/esh-util.el
+11
-5
No files found.
lisp/eshell/esh-util.el
View file @
c4e5b888
...
...
@@ -588,14 +588,20 @@ Unless optional argument INPLACE is non-nil, return a new string."
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
)
(
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
dir
)))))
(
directory-files
dir
full
match
nosort
)))))
(
cons
file
(
eshell-file-attributes
(
expand-file-name
file
dir
ectory
)))))
(
directory-files
dir
ectory
full
match
nosort
)))))
(
eval-when-compile
(
defvar
ange-cache
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment