aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/files.texi28
2 files changed, 33 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index dfa070e70b3..e49fe5fc3d8 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12010-10-03 Michael Albinus <michael.albinus@gmx.de>
2
3 * files.texi (Magic File Names): New defopt
4 remote-file-name-inhibit-cache.
5
12010-10-02 Glenn Morris <rgm@gnu.org> 62010-10-02 Glenn Morris <rgm@gnu.org>
2 7
3 * os.texi (Killing Emacs): Hook now runs in batch mode. 8 * os.texi (Killing Emacs): Hook now runs in batch mode.
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 23fd2376a57..333e60e3df2 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -2857,6 +2857,34 @@ non-magic directory to serve as its current directory, and this function
2857is a good way to come up with one. 2857is a good way to come up with one.
2858@end defun 2858@end defun
2859 2859
2860@defopt remote-file-name-inhibit-cache
2861Whether to use the remote file-name cache for read access.
2862
2863File attributes of remote files are cached for better performance. If
2864they are changed out of Emacs' control, the cached values become
2865invalid, and must be reread.
2866
2867When set to @code{nil}, cached values are always used. This shall be
2868set with care. When set to @code{t}, cached values are never used.
2869ALthough this is the safest value, it could result in performance
2870degradation.
2871
2872A compromise is to set it to a positive number. This means that
2873cached values are used for that amount of seconds since they were
2874cached.
2875
2876In case a remote file is checked regularly, it might be reasonable to
2877let-bind this variable to a value less then the time period between
2878two checks. Example:
2879
2880@example
2881(defun display-time-file-nonempty-p (file)
2882 (let ((remote-file-name-inhibit-cache (- display-time-interval 5)))
2883 (and (file-exists-p file)
2884 (< 0 (nth 7 (file-attributes (file-chase-links file)))))))
2885@end example
2886@end defopt
2887
2860@node Format Conversion 2888@node Format Conversion
2861@section File Format Conversion 2889@section File Format Conversion
2862 2890