aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2009-10-05 08:45:07 +0000
committerEli Zaretskii2009-10-05 08:45:07 +0000
commit804543b5c06bcb56640d2239a14032fea5b8aa4a (patch)
treef2aea9d05a77451cb7aeabc39d34aa65d5f24324
parente02131a2578f41661ff5562923f3b6543a3ce1c6 (diff)
downloademacs-804543b5c06bcb56640d2239a14032fea5b8aa4a.tar.gz
emacs-804543b5c06bcb56640d2239a14032fea5b8aa4a.zip
(File Attributes): Fix description of file attributes. (Bug#4638)
Update attributes of files.texi example to be more representative.
-rw-r--r--doc/lispref/ChangeLog6
-rw-r--r--doc/lispref/files.texi76
2 files changed, 50 insertions, 32 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 66e30109d41..1cee809c188 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,9 @@
12009-10-05 Eli Zaretskii <eliz@gnu.org>
2
3 * files.texi (File Attributes): Fix description of file
4 attributes. (Bug#4638) Update attributes of files.texi example to
5 be more representative.
6
12009-10-05 Michael Albinus <michael.albinus@gmx.de> 72009-10-05 Michael Albinus <michael.albinus@gmx.de>
2 8
3 * files.texi (Create/Delete Dirs): New command copy-directory. 9 * files.texi (Create/Delete Dirs): New command copy-directory.
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 1da1b5c3369..ab3e92e44c5 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1176,14 +1176,20 @@ The file's @acronym{GID}, likewise.
1176The time of last access, as a list of two integers. 1176The time of last access, as a list of two integers.
1177The first integer has the high-order 16 bits of time, 1177The first integer has the high-order 16 bits of time,
1178the second has the low 16 bits. (This is similar to the 1178the second has the low 16 bits. (This is similar to the
1179value of @code{current-time}; see @ref{Time of Day}.) 1179value of @code{current-time}; see @ref{Time of Day}.) Note that on
1180some FAT-based filesystems, only the date of last access is recorded,
1181so this time will always hold the midnight of the day of last access.
1180 1182
1183@cindex modification time of file
1181@item 1184@item
1182The time of last modification as a list of two integers (as above). 1185The time of last modification as a list of two integers (as above).
1183@cindex modification time of file 1186This is the last time when the file's contents were modified.
1184 1187
1185@item 1188@item
1186The time of last status change as a list of two integers (as above). 1189The time of last status change as a list of two integers (as above).
1190This is the time of the last change to the file's access mode bits,
1191its owner and group, and other information recorded in the filesystem
1192for the file, beyond the file's contents.
1187 1193
1188@item 1194@item
1189The size of the file in bytes. If the size is too large to fit in a 1195The size of the file in bytes. If the size is too large to fit in a
@@ -1198,18 +1204,22 @@ as in @samp{ls -l}.
1198deleted and recreated; @code{nil} otherwise. 1204deleted and recreated; @code{nil} otherwise.
1199 1205
1200@item 1206@item
1201The file's inode number. If possible, this is an integer. If the inode 1207The file's inode number. If possible, this is an integer. If the
1202number is too large to be represented as an integer in Emacs Lisp, then 1208inode number is too large to be represented as an integer in Emacs
1203the value has the form @code{(@var{high} . @var{low})}, where @var{low} 1209Lisp, but still fits into a 32-bit integer, then the value has the
1204holds the low 16 bits. 1210form @code{(@var{high} . @var{low})}, where @var{low} holds the low 16
1211bits. If the inode is wider than 32 bits, the value is of the form
1212@code{(@var{high} @var{middle} . @var{low})}, where @code{high} holds
1213the high 24 bits, @var{middle} the next 24 bits, and @var{low} the low
121416 bits.
1205 1215
1206@item 1216@item
1207The file system number of the file system that the file is in. 1217The filesystem number of the device that the file is on. Depending on
1208Depending on the magnitude of the value, this can be either an integer 1218the magnitude of the value, this can be either an integer or a cons
1209or a cons cell, in the same manner as the inode number. This element 1219cell, in the same manner as the inode number. This element and the
1210and the file's inode number together give enough information to 1220file's inode number together give enough information to distinguish
1211distinguish any two files on the system---no two files can have the same 1221any two files on the system---no two files can have the same values
1212values for both of these numbers. 1222for both of these numbers.
1213@end enumerate 1223@end enumerate
1214 1224
1215For example, here are the file attributes for @file{files.texi}: 1225For example, here are the file attributes for @file{files.texi}:
@@ -1218,11 +1228,12 @@ For example, here are the file attributes for @file{files.texi}:
1218@group 1228@group
1219(file-attributes "files.texi" 'string) 1229(file-attributes "files.texi" 'string)
1220 @result{} (nil 1 "lh" "users" 1230 @result{} (nil 1 "lh" "users"
1221 (8489 20284) 1231 (19145 42977)
1222 (8489 20284) 1232 (19141 59576)
1223 (8489 20285) 1233 (18340 17300)
1224 14906 "-rw-rw-rw-" 1234 122295 "-rw-rw-rw-"
1225 nil 129500 -32252) 1235 nil (5888 2 . 43978)
1236 (15479 . 46724))
1226@end group 1237@end group
1227@end example 1238@end example
1228 1239
@@ -1243,18 +1254,19 @@ is owned by the user with name "lh".
1243@item "users" 1254@item "users"
1244is in the group with name "users". 1255is in the group with name "users".
1245 1256
1246@item (8489 20284) 1257@item (19145 42977)
1247was last accessed on Aug 19 00:09. 1258was last accessed on Oct 5 2009, at 10:01:37.
1248 1259
1249@item (8489 20284) 1260@item (19141 59576)
1250was last modified on Aug 19 00:09. 1261last had its contents modified on Oct 2 2009, at 13:49:12.
1251 1262
1252@item (8489 20285) 1263@item (18340 17300)
1253last had its inode changed on Aug 19 00:09. 1264last had its status changed on Feb 2 2008, at 12:19:00.
1254 1265
1255@item 14906 1266@item 122295
1256is 14906 bytes long. (It may not contain 14906 characters, though, 1267is 122295 bytes long. (It may not contain 122295 characters, though,
1257if some of the bytes belong to multibyte sequences.) 1268if some of the bytes belong to multibyte sequences, and also if the
1269end-of-line format is CR-LF.)
1258 1270
1259@item "-rw-rw-rw-" 1271@item "-rw-rw-rw-"
1260has a mode of read and write access for the owner, group, and world. 1272has a mode of read and write access for the owner, group, and world.
@@ -1262,10 +1274,11 @@ has a mode of read and write access for the owner, group, and world.
1262@item nil 1274@item nil
1263would retain the same @acronym{GID} if it were recreated. 1275would retain the same @acronym{GID} if it were recreated.
1264 1276
1265@item 129500 1277@item (5888 2 . 43978)
1266has an inode number of 129500. 1278has an inode number of 6473924464520138.
1267@item -32252 1279
1268is on file system number -32252. 1280@item (15479 . 46724)
1281is on the file-system device whose number is 1014478468.
1269@end table 1282@end table
1270@end defun 1283@end defun
1271 1284
@@ -2483,8 +2496,7 @@ which generate the listing with Lisp code.
2483 2496
2484@node Create/Delete Dirs 2497@node Create/Delete Dirs
2485@section Creating, Copying and Deleting Directories 2498@section Creating, Copying and Deleting Directories
2486@cindex creating and deleting directories 2499@cindex creating, copying and deleting directories
2487@cindex copying directories
2488@c Emacs 19 features 2500@c Emacs 19 features
2489 2501
2490 Most Emacs Lisp file-manipulation functions get errors when used on 2502 Most Emacs Lisp file-manipulation functions get errors when used on