aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-02-10 00:08:23 -0800
committerGlenn Morris2012-02-10 00:08:23 -0800
commitb011fbfe6ca637c1cd68da317562c7134474a015 (patch)
treea8b206dc4d045ea4c21fa818b2ffb4e970254b3c
parent6c1e4b46424d7554fcaa42ab78b9f313e7bd32ea (diff)
downloademacs-b011fbfe6ca637c1cd68da317562c7134474a015.tar.gz
emacs-b011fbfe6ca637c1cd68da317562c7134474a015.zip
Doc fixes for remote-file-name-inhibit-cache
* doc/lispref/files.texi (Magic File Names): Tweak remote-file-name-inhibit-cache entry. * lisp/files.el (remote-file-name-inhibit-cache): Doc fixes. * etc/NEWS: Edits.
-rw-r--r--doc/lispref/ChangeLog2
-rw-r--r--doc/lispref/files.texi23
-rw-r--r--etc/NEWS14
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/files.el26
5 files changed, 35 insertions, 34 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 9e6ecdec16a..40fefde4396 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -9,6 +9,8 @@
9 9
102012-02-10 Glenn Morris <rgm@gnu.org> 102012-02-10 Glenn Morris <rgm@gnu.org>
11 11
12 * files.texi (Magic File Names): Tweak remote-file-name-inhibit-cache.
13
12 * modes.texi (Basic Major Modes): Mention tabulated-list-mode. 14 * modes.texi (Basic Major Modes): Mention tabulated-list-mode.
13 15
142012-02-08 Glenn Morris <rgm@gnu.org> 162012-02-08 Glenn Morris <rgm@gnu.org>
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 087eb6ef1db..cf093ba36cb 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -2862,24 +2862,21 @@ is a good way to come up with one.
2862@end defun 2862@end defun
2863 2863
2864@defopt remote-file-name-inhibit-cache 2864@defopt remote-file-name-inhibit-cache
2865Whether to use the remote file-name cache for read access. 2865The attributes of remote files can be cached for better performance. If
2866 2866they are changed outside of Emacs's control, the cached values become
2867File attributes of remote files are cached for better performance. If
2868they are changed out of Emacs' control, the cached values become
2869invalid, and must be reread. 2867invalid, and must be reread.
2870 2868
2871When set to @code{nil}, cached values are always used. This shall be 2869When this variable is set to @code{nil}, cached values are never
2872set with care. When set to @code{t}, cached values are never used. 2870expired. Use this setting with caution, only if you are sure nothing
2873ALthough this is the safest value, it could result in performance 2871other than Emacs ever changes the remote files. If it is set to
2874degradation. 2872@code{t}, cached values are never used. This is the safest value, but
2873could result in performance degradation.
2875 2874
2876A compromise is to set it to a positive number. This means that 2875A compromise is to set it to a positive number. This means that
2877cached values are used for that amount of seconds since they were 2876cached values are used for that amount of seconds since they were
2878cached. 2877cached. If a remote file is checked regularly, it might be a good
2879 2878idea to let-bind this variable to a value less than the time period
2880In case a remote file is checked regularly, it might be reasonable to 2879between consecutive checks. For example:
2881let-bind this variable to a value less then the time period between
2882two checks. Example:
2883 2880
2884@example 2881@example
2885(defun display-time-file-nonempty-p (file) 2882(defun display-time-file-nonempty-p (file)
diff --git a/etc/NEWS b/etc/NEWS
index 4a69f18aad0..d7491b7560b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -305,9 +305,6 @@ context in their return values.
305+++ 305+++
306*** The new functions file-selinux-context and set-file-selinux-context 306*** The new functions file-selinux-context and set-file-selinux-context
307get and set the SELinux context of a file. 307get and set the SELinux context of a file.
308---
309*** Tramp offers handlers for file-selinux-context and set-file-selinux-context
310for remote machines which support SELinux.
311 308
312** Changes for exiting Emacs 309** Changes for exiting Emacs
313+++ 310+++
@@ -385,9 +382,6 @@ If a theme is not in this list, Emacs queries before loading it, and
385offers to save the theme to `custom-safe-themes' automatically. By 382offers to save the theme to `custom-safe-themes' automatically. By
386default, all themes included in Emacs are treated as safe. 383default, all themes included in Emacs are treated as safe.
387 384
388** The user option `remote-file-name-inhibit-cache' controls whether
389the remote file-name cache is used for read access.
390
391** File- and directory-local variable changes 385** File- and directory-local variable changes
392+++ 386+++
393*** You can stop directory local vars from applying to subdirectories. 387*** You can stop directory local vars from applying to subdirectories.
@@ -855,9 +849,15 @@ sql-list-all and sql-list-table.
855--- 849---
856*** The following access methods are discontinued: "ssh1_old", 850*** The following access methods are discontinued: "ssh1_old",
857"ssh2_old", "scp1_old", "scp2_old", "imap", "imaps" and "fish". 851"ssh2_old", "scp1_old", "scp2_old", "imap", "imaps" and "fish".
852+++
853*** The user option `remote-file-name-inhibit-cache' controls whether
854remote file attributes are cached for better performance.
858--- 855---
859*** The option `ange-ftp-binary-file-name-regexp' has changed its 856*** The option `ange-ftp-binary-file-name-regexp' has changed its
860default value to "". 857default value to "".
858---
859*** Handlers for file-selinux-context and set-file-selinux-context for
860remote machines that support SELinux.
861 861
862+++ 862+++
863** New function, url-queue-retrieve, fetches URLs asynchronously like 863** New function, url-queue-retrieve, fetches URLs asynchronously like
@@ -923,7 +923,7 @@ You can get a comparable behavior with:
923--- 923---
924*** pc-mode.el is obsolete (CUA mode is much more comprehensive). 924*** pc-mode.el is obsolete (CUA mode is much more comprehensive).
925 925
926[gnus.texi, message.texi need updating] 926[FIXME gnus.texi, message.texi need updating]
927*** pgg is obsolete (use EasyPG instead) 927*** pgg is obsolete (use EasyPG instead)
928 928
929--- 929---
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0769badf4f5..41728f0b997 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-02-10 Glenn Morris <rgm@gnu.org>
2
3 * files.el (remote-file-name-inhibit-cache): Doc fixes.
4
12012-02-09 Lars Ingebrigtsen <larsi@rusty> 52012-02-09 Lars Ingebrigtsen <larsi@rusty>
2 6
3 * mail/smtpmail.el (smtpmail-user-mail-address): New function. 7 * mail/smtpmail.el (smtpmail-user-mail-address): New function.
diff --git a/lisp/files.el b/lisp/files.el
index 7bb44098223..87218c9a6e8 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -981,20 +981,18 @@ Tip: You can use this expansion of remote identifier components
981 981
982(defcustom remote-file-name-inhibit-cache 10 982(defcustom remote-file-name-inhibit-cache 10
983 "Whether to use the remote file-name cache for read access. 983 "Whether to use the remote file-name cache for read access.
984 984When `nil', never expire cached values (caution)
985When `nil', always use the cached values. 985When `t', never use the cache (safe, but may be slow)
986When `t', never use them. 986A number means use cached values for that amount of seconds since caching.
987A number means use them for that amount of seconds since they were 987
988cached. 988The attributes of remote files are cached for better performance.
989 989If they are changed outside of Emacs's control, the cached values
990File attributes of remote files are cached for better performance. 990become invalid, and must be reread. If you are sure that nothing
991If they are changed out of Emacs' control, the cached values 991other than Emacs changes the files, you can set this variable to `nil'.
992become invalid, and must be invalidated. 992
993 993If a remote file is checked regularly, it might be a good idea to
994In case a remote file is checked regularly, it might be 994let-bind this variable to a value less than the interval between
995reasonable to let-bind this variable to a value less then the 995consecutive checks. For example:
996time period between two checks.
997Example:
998 996
999 (defun display-time-file-nonempty-p (file) 997 (defun display-time-file-nonempty-p (file)
1000 (let ((remote-file-name-inhibit-cache (- display-time-interval 5))) 998 (let ((remote-file-name-inhibit-cache (- display-time-interval 5)))