emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 99f92da: Improve documentation of 'directory-file


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 99f92da: Improve documentation of 'directory-files-and-attributes'
Date: Fri, 1 Jun 2018 04:28:10 -0400 (EDT)

branch: emacs-26
commit 99f92dab3d64c4ef0a38fa2f0ea5fd48b8bb2e1a
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Improve documentation of 'directory-files-and-attributes'
    
    * doc/lispref/files.texi (Contents of Directories): Fix inaccurate
    description of the return value of directory-files-and-attributes.
    
    * src/dired.c (Fdirectory_files_and_attributes): Describe the
    function's value in more detail.
---
 doc/lispref/files.texi | 4 ++--
 src/dired.c            | 9 ++++++++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index f62b670..5137f3a 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -2917,8 +2917,8 @@ are included.
 This is similar to @code{directory-files} in deciding which files
 to report on and how to report their names.  However, instead
 of returning a list of file names, it returns for each file a
-list @code{(@var{filename} . @var{attributes})}, where @var{attributes}
-is what @code{file-attributes} would return for that file.
+list @code{(@var{filename} @var{attributes})}, where @var{attributes}
+is what @code{file-attributes} returns for that file.
 The optional argument @var{id-format} has the same meaning as the
 corresponding argument to @code{file-attributes} (@pxref{Definition
 of file-attributes}).
diff --git a/src/dired.c b/src/dired.c
index c446223..a753b19 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -358,7 +358,14 @@ If NOSORT is non-nil, the list is not sorted--its order is 
unpredictable.
 DEFUN ("directory-files-and-attributes", Fdirectory_files_and_attributes,
        Sdirectory_files_and_attributes, 1, 5, 0,
        doc: /* Return a list of names of files and their attributes in 
DIRECTORY.
-There are four optional arguments:
+Value is a list of the form:
+
+  ((FILE1 FILE1-ATTRS) (FILE2 FILE2-ATTRS) ...)
+
+where each FILEn-ATTRS is the attributes of FILEn as returned
+by `file-attributes'.
+
+This function accepts four 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]