aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2012-09-30 19:07:14 -0700
committerPaul Eggert2012-09-30 19:07:14 -0700
commit86ec63ba3057ac5b3b760ebbdd547ff6d455cb65 (patch)
tree4d51b01424790cd9f2d3369f12792f4d076e80e6 /doc
parent19e54a4d41c41edea579287b3a0423d4ff361d34 (diff)
downloademacs-86ec63ba3057ac5b3b760ebbdd547ff6d455cb65.tar.gz
emacs-86ec63ba3057ac5b3b760ebbdd547ff6d455cb65.zip
Revert the FOLLOW-SYMLINKS change for file-attributes.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/files.texi8
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 @@
12012-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
12012-09-30 Paul Eggert <eggert@cs.ucla.edu> 62012-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}
1192This function returns a list of attributes of file @var{filename}. If 1192This function returns a list of attributes of file @var{filename}. If
1193the specified file cannot be opened, it returns @code{nil}. 1193the specified file cannot be opened, it returns @code{nil}.
@@ -1197,9 +1197,6 @@ valid values are @code{'string} and @code{'integer}. The latter is
1197the default, but we plan to change that, so you should specify a 1197the default, but we plan to change that, so you should specify a
1198non-@code{nil} value for @var{id-format} if you use the returned 1198non-@code{nil} value for @var{id-format} if you use the returned
1199@acronym{UID} or @acronym{GID}. 1199@acronym{UID} or @acronym{GID}.
1200The optional parameter @var{follow-symlinks} says whether to follow
1201@var{filename} if it is a symbolic link; if @code{t}, symbolic links
1202are followed and if @code{nil} they are not.
1203 1200
1204The elements of the list, in order, are: 1201The 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