summaryrefslogtreecommitdiff
path: root/src/dired.c
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2016-03-04 13:39:07 +0000
committerLars Ingebrigtsen <larsi@gnus.org>2016-03-04 15:33:38 +0000
commit2d5b20f68c194e7fec7b9602935fd95149e9b7c6 (patch)
tree4dc995ec41e242f4f0c2d431bcd129a5e2c40410 /src/dired.c
parent484967796755051c4045cdcc26b0d3d129cc72ad (diff)
downloademacs-2d5b20f68c194e7fec7b9602935fd95149e9b7c6.tar.gz
emacs-2d5b20f68c194e7fec7b9602935fd95149e9b7c6.tar.bz2
emacs-2d5b20f68c194e7fec7b9602935fd95149e9b7c6.zip
Add accessors for `file-attributes'
* doc/lispref/files.texi (File Attributes): Mention the accessors. * lisp/files.el (file-attribute-type) (file-attribute-link-number, file-attribute-user-id) (file-attribute-group-id, file-attribute-access-time) (file-attribute-modification-time) (file-attribute-change-time, file-attribute-size) (file-attribute-modes, file-attribute-inode-number) (file-attribute-device-number): New functions. * src/dired.c (Ffile_attributes): Mention the accessors (bug#22890).
Diffstat (limited to 'src/dired.c')
-rw-r--r--src/dired.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dired.c b/src/dired.c
index 97fefaefffd..fd5f142d0b5 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -861,6 +861,14 @@ below) - valid values are `string' and `integer'. The latter is the
default, but we plan to change that, so you should specify a non-nil value
for ID-FORMAT if you use the returned uid or gid.
+To access the elements returned, the following access functions are
+provided: `file-attribute-type', `file-attribute-link-number',
+`file-attribute-user-id', `file-attribute-group-id',
+`file-attribute-access-time', `file-attribute-modification-time',
+`file-attribute-status-change-time', `file-attribute-size',
+`file-attribute-modes', `file-attribute-inode-number', and
+`file-attribute-device-number'.
+
Elements of the attribute list are:
0. t for directory, string (name linked to) for symbolic link, or nil.
1. Number of links to file.