diff options
| author | Glenn Morris | 2012-02-10 00:08:23 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-02-10 00:08:23 -0800 |
| commit | b011fbfe6ca637c1cd68da317562c7134474a015 (patch) | |
| tree | a8b206dc4d045ea4c21fa818b2ffb4e970254b3c | |
| parent | 6c1e4b46424d7554fcaa42ab78b9f313e7bd32ea (diff) | |
| download | emacs-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/ChangeLog | 2 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 23 | ||||
| -rw-r--r-- | etc/NEWS | 14 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/files.el | 26 |
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 | ||
| 10 | 2012-02-10 Glenn Morris <rgm@gnu.org> | 10 | 2012-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 | ||
| 14 | 2012-02-08 Glenn Morris <rgm@gnu.org> | 16 | 2012-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 |
| 2865 | Whether to use the remote file-name cache for read access. | 2865 | The attributes of remote files can be cached for better performance. If |
| 2866 | 2866 | they are changed outside of Emacs's control, the cached values become | |
| 2867 | File attributes of remote files are cached for better performance. If | ||
| 2868 | they are changed out of Emacs' control, the cached values become | ||
| 2869 | invalid, and must be reread. | 2867 | invalid, and must be reread. |
| 2870 | 2868 | ||
| 2871 | When set to @code{nil}, cached values are always used. This shall be | 2869 | When this variable is set to @code{nil}, cached values are never |
| 2872 | set with care. When set to @code{t}, cached values are never used. | 2870 | expired. Use this setting with caution, only if you are sure nothing |
| 2873 | ALthough this is the safest value, it could result in performance | 2871 | other than Emacs ever changes the remote files. If it is set to |
| 2874 | degradation. | 2872 | @code{t}, cached values are never used. This is the safest value, but |
| 2873 | could result in performance degradation. | ||
| 2875 | 2874 | ||
| 2876 | A compromise is to set it to a positive number. This means that | 2875 | A compromise is to set it to a positive number. This means that |
| 2877 | cached values are used for that amount of seconds since they were | 2876 | cached values are used for that amount of seconds since they were |
| 2878 | cached. | 2877 | cached. If a remote file is checked regularly, it might be a good |
| 2879 | 2878 | idea to let-bind this variable to a value less than the time period | |
| 2880 | In case a remote file is checked regularly, it might be reasonable to | 2879 | between consecutive checks. For example: |
| 2881 | let-bind this variable to a value less then the time period between | ||
| 2882 | two checks. Example: | ||
| 2883 | 2880 | ||
| 2884 | @example | 2881 | @example |
| 2885 | (defun display-time-file-nonempty-p (file) | 2882 | (defun display-time-file-nonempty-p (file) |
| @@ -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 |
| 307 | get and set the SELinux context of a file. | 307 | get and set the SELinux context of a file. |
| 308 | --- | ||
| 309 | *** Tramp offers handlers for file-selinux-context and set-file-selinux-context | ||
| 310 | for 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 | |||
| 385 | offers to save the theme to `custom-safe-themes' automatically. By | 382 | offers to save the theme to `custom-safe-themes' automatically. By |
| 386 | default, all themes included in Emacs are treated as safe. | 383 | default, all themes included in Emacs are treated as safe. |
| 387 | 384 | ||
| 388 | ** The user option `remote-file-name-inhibit-cache' controls whether | ||
| 389 | the 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 | ||
| 854 | remote 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 |
| 860 | default value to "". | 857 | default value to "". |
| 858 | --- | ||
| 859 | *** Handlers for file-selinux-context and set-file-selinux-context for | ||
| 860 | remote 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 @@ | |||
| 1 | 2012-02-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * files.el (remote-file-name-inhibit-cache): Doc fixes. | ||
| 4 | |||
| 1 | 2012-02-09 Lars Ingebrigtsen <larsi@rusty> | 5 | 2012-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 | 984 | When `nil', never expire cached values (caution) | |
| 985 | When `nil', always use the cached values. | 985 | When `t', never use the cache (safe, but may be slow) |
| 986 | When `t', never use them. | 986 | A number means use cached values for that amount of seconds since caching. |
| 987 | A number means use them for that amount of seconds since they were | 987 | |
| 988 | cached. | 988 | The attributes of remote files are cached for better performance. |
| 989 | 989 | If they are changed outside of Emacs's control, the cached values | |
| 990 | File attributes of remote files are cached for better performance. | 990 | become invalid, and must be reread. If you are sure that nothing |
| 991 | If they are changed out of Emacs' control, the cached values | 991 | other than Emacs changes the files, you can set this variable to `nil'. |
| 992 | become invalid, and must be invalidated. | 992 | |
| 993 | 993 | If a remote file is checked regularly, it might be a good idea to | |
| 994 | In case a remote file is checked regularly, it might be | 994 | let-bind this variable to a value less than the interval between |
| 995 | reasonable to let-bind this variable to a value less then the | 995 | consecutive checks. For example: |
| 996 | time period between two checks. | ||
| 997 | Example: | ||
| 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))) |