diff options
| author | Eli Zaretskii | 2009-10-05 08:45:07 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2009-10-05 08:45:07 +0000 |
| commit | 804543b5c06bcb56640d2239a14032fea5b8aa4a (patch) | |
| tree | f2aea9d05a77451cb7aeabc39d34aa65d5f24324 | |
| parent | e02131a2578f41661ff5562923f3b6543a3ce1c6 (diff) | |
| download | emacs-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/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 76 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-10-05 Michael Albinus <michael.albinus@gmx.de> | 7 | 2009-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. | |||
| 1176 | The time of last access, as a list of two integers. | 1176 | The time of last access, as a list of two integers. |
| 1177 | The first integer has the high-order 16 bits of time, | 1177 | The first integer has the high-order 16 bits of time, |
| 1178 | the second has the low 16 bits. (This is similar to the | 1178 | the second has the low 16 bits. (This is similar to the |
| 1179 | value of @code{current-time}; see @ref{Time of Day}.) | 1179 | value of @code{current-time}; see @ref{Time of Day}.) Note that on |
| 1180 | some FAT-based filesystems, only the date of last access is recorded, | ||
| 1181 | so 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 |
| 1182 | The time of last modification as a list of two integers (as above). | 1185 | The time of last modification as a list of two integers (as above). |
| 1183 | @cindex modification time of file | 1186 | This is the last time when the file's contents were modified. |
| 1184 | 1187 | ||
| 1185 | @item | 1188 | @item |
| 1186 | The time of last status change as a list of two integers (as above). | 1189 | The time of last status change as a list of two integers (as above). |
| 1190 | This is the time of the last change to the file's access mode bits, | ||
| 1191 | its owner and group, and other information recorded in the filesystem | ||
| 1192 | for the file, beyond the file's contents. | ||
| 1187 | 1193 | ||
| 1188 | @item | 1194 | @item |
| 1189 | The size of the file in bytes. If the size is too large to fit in a | 1195 | The 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}. | |||
| 1198 | deleted and recreated; @code{nil} otherwise. | 1204 | deleted and recreated; @code{nil} otherwise. |
| 1199 | 1205 | ||
| 1200 | @item | 1206 | @item |
| 1201 | The file's inode number. If possible, this is an integer. If the inode | 1207 | The file's inode number. If possible, this is an integer. If the |
| 1202 | number is too large to be represented as an integer in Emacs Lisp, then | 1208 | inode number is too large to be represented as an integer in Emacs |
| 1203 | the value has the form @code{(@var{high} . @var{low})}, where @var{low} | 1209 | Lisp, but still fits into a 32-bit integer, then the value has the |
| 1204 | holds the low 16 bits. | 1210 | form @code{(@var{high} . @var{low})}, where @var{low} holds the low 16 |
| 1211 | bits. 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 | ||
| 1213 | the high 24 bits, @var{middle} the next 24 bits, and @var{low} the low | ||
| 1214 | 16 bits. | ||
| 1205 | 1215 | ||
| 1206 | @item | 1216 | @item |
| 1207 | The file system number of the file system that the file is in. | 1217 | The filesystem number of the device that the file is on. Depending on |
| 1208 | Depending on the magnitude of the value, this can be either an integer | 1218 | the magnitude of the value, this can be either an integer or a cons |
| 1209 | or a cons cell, in the same manner as the inode number. This element | 1219 | cell, in the same manner as the inode number. This element and the |
| 1210 | and the file's inode number together give enough information to | 1220 | file's inode number together give enough information to distinguish |
| 1211 | distinguish any two files on the system---no two files can have the same | 1221 | any two files on the system---no two files can have the same values |
| 1212 | values for both of these numbers. | 1222 | for both of these numbers. |
| 1213 | @end enumerate | 1223 | @end enumerate |
| 1214 | 1224 | ||
| 1215 | For example, here are the file attributes for @file{files.texi}: | 1225 | For 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" |
| 1244 | is in the group with name "users". | 1255 | is in the group with name "users". |
| 1245 | 1256 | ||
| 1246 | @item (8489 20284) | 1257 | @item (19145 42977) |
| 1247 | was last accessed on Aug 19 00:09. | 1258 | was last accessed on Oct 5 2009, at 10:01:37. |
| 1248 | 1259 | ||
| 1249 | @item (8489 20284) | 1260 | @item (19141 59576) |
| 1250 | was last modified on Aug 19 00:09. | 1261 | last had its contents modified on Oct 2 2009, at 13:49:12. |
| 1251 | 1262 | ||
| 1252 | @item (8489 20285) | 1263 | @item (18340 17300) |
| 1253 | last had its inode changed on Aug 19 00:09. | 1264 | last had its status changed on Feb 2 2008, at 12:19:00. |
| 1254 | 1265 | ||
| 1255 | @item 14906 | 1266 | @item 122295 |
| 1256 | is 14906 bytes long. (It may not contain 14906 characters, though, | 1267 | is 122295 bytes long. (It may not contain 122295 characters, though, |
| 1257 | if some of the bytes belong to multibyte sequences.) | 1268 | if some of the bytes belong to multibyte sequences, and also if the |
| 1269 | end-of-line format is CR-LF.) | ||
| 1258 | 1270 | ||
| 1259 | @item "-rw-rw-rw-" | 1271 | @item "-rw-rw-rw-" |
| 1260 | has a mode of read and write access for the owner, group, and world. | 1272 | has 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 |
| 1263 | would retain the same @acronym{GID} if it were recreated. | 1275 | would retain the same @acronym{GID} if it were recreated. |
| 1264 | 1276 | ||
| 1265 | @item 129500 | 1277 | @item (5888 2 . 43978) |
| 1266 | has an inode number of 129500. | 1278 | has an inode number of 6473924464520138. |
| 1267 | @item -32252 | 1279 | |
| 1268 | is on file system number -32252. | 1280 | @item (15479 . 46724) |
| 1281 | is 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 |