diff options
| author | Paul Eggert | 2012-09-30 19:07:14 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-09-30 19:07:14 -0700 |
| commit | 86ec63ba3057ac5b3b760ebbdd547ff6d455cb65 (patch) | |
| tree | 4d51b01424790cd9f2d3369f12792f4d076e80e6 /doc | |
| parent | 19e54a4d41c41edea579287b3a0423d4ff361d34 (diff) | |
| download | emacs-86ec63ba3057ac5b3b760ebbdd547ff6d455cb65.tar.gz emacs-86ec63ba3057ac5b3b760ebbdd547ff6d455cb65.zip | |
Revert the FOLLOW-SYMLINKS change for file-attributes.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 04b677b177e..db728d6fec0 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-10-01 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Revert the FOLLOW-SYMLINKS change for file-attributes. | ||
| 4 | * files.texi (File Attributes, Magic File Names): Undo last change. | ||
| 5 | |||
| 1 | 2012-09-30 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-09-30 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | file-attributes has a new optional arg FOLLOW-SYMLINKS. | 8 | file-attributes has a new optional arg FOLLOW-SYMLINKS. |
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 2b087208c60..9424a661236 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -1187,7 +1187,7 @@ link to. | |||
| 1187 | @end example | 1187 | @end example |
| 1188 | @end defun | 1188 | @end defun |
| 1189 | 1189 | ||
| 1190 | @defun file-attributes filename &optional id-format follow-symlinks | 1190 | @defun file-attributes filename &optional id-format |
| 1191 | @anchor{Definition of file-attributes} | 1191 | @anchor{Definition of file-attributes} |
| 1192 | This function returns a list of attributes of file @var{filename}. If | 1192 | This function returns a list of attributes of file @var{filename}. If |
| 1193 | the specified file cannot be opened, it returns @code{nil}. | 1193 | the specified file cannot be opened, it returns @code{nil}. |
| @@ -1197,9 +1197,6 @@ valid values are @code{'string} and @code{'integer}. The latter is | |||
| 1197 | the default, but we plan to change that, so you should specify a | 1197 | the default, but we plan to change that, so you should specify a |
| 1198 | non-@code{nil} value for @var{id-format} if you use the returned | 1198 | non-@code{nil} value for @var{id-format} if you use the returned |
| 1199 | @acronym{UID} or @acronym{GID}. | 1199 | @acronym{UID} or @acronym{GID}. |
| 1200 | The optional parameter @var{follow-symlinks} says whether to follow | ||
| 1201 | @var{filename} if it is a symbolic link; if @code{t}, symbolic links | ||
| 1202 | are followed and if @code{nil} they are not. | ||
| 1203 | 1200 | ||
| 1204 | The elements of the list, in order, are: | 1201 | The elements of the list, in order, are: |
| 1205 | 1202 | ||
| @@ -2964,7 +2961,8 @@ between consecutive checks. For example: | |||
| 2964 | (let ((remote-file-name-inhibit-cache | 2961 | (let ((remote-file-name-inhibit-cache |
| 2965 | (- display-time-interval 5))) | 2962 | (- display-time-interval 5))) |
| 2966 | (and (file-exists-p file) | 2963 | (and (file-exists-p file) |
| 2967 | (< 0 (nth 7 (file-attributes file nil t)))))) | 2964 | (< 0 (nth 7 (file-attributes |
| 2965 | (file-chase-links file))))))) | ||
| 2968 | @end example | 2966 | @end example |
| 2969 | @end defopt | 2967 | @end defopt |
| 2970 | 2968 | ||