diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 28 |
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 @@ | |||
| 1 | 2010-10-03 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * files.texi (Magic File Names): New defopt | ||
| 4 | remote-file-name-inhibit-cache. | ||
| 5 | |||
| 1 | 2010-10-02 Glenn Morris <rgm@gnu.org> | 6 | 2010-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 | |||
| 2857 | is a good way to come up with one. | 2857 | is a good way to come up with one. |
| 2858 | @end defun | 2858 | @end defun |
| 2859 | 2859 | ||
| 2860 | @defopt remote-file-name-inhibit-cache | ||
| 2861 | Whether to use the remote file-name cache for read access. | ||
| 2862 | |||
| 2863 | File attributes of remote files are cached for better performance. If | ||
| 2864 | they are changed out of Emacs' control, the cached values become | ||
| 2865 | invalid, and must be reread. | ||
| 2866 | |||
| 2867 | When set to @code{nil}, cached values are always used. This shall be | ||
| 2868 | set with care. When set to @code{t}, cached values are never used. | ||
| 2869 | ALthough this is the safest value, it could result in performance | ||
| 2870 | degradation. | ||
| 2871 | |||
| 2872 | A compromise is to set it to a positive number. This means that | ||
| 2873 | cached values are used for that amount of seconds since they were | ||
| 2874 | cached. | ||
| 2875 | |||
| 2876 | In case a remote file is checked regularly, it might be reasonable to | ||
| 2877 | let-bind this variable to a value less then the time period between | ||
| 2878 | two 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 | ||