diff options
| author | Eli Zaretskii | 2019-10-17 20:07:16 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-10-17 20:07:16 +0300 |
| commit | 046ac483817ff6a4e4d7ca18d10f4b3942a0ce0f (patch) | |
| tree | d1d1dad559f5722d5ba3d16ea33f15f6e1e2f434 /lisp | |
| parent | dc0a218f62cab2eea245b1d577e1edc8e474364e (diff) | |
| download | emacs-046ac483817ff6a4e4d7ca18d10f4b3942a0ce0f.tar.gz emacs-046ac483817ff6a4e4d7ca18d10f4b3942a0ce0f.zip | |
* lisp/dired.el (dired-auto-revert-buffer): Doc fix. (Bug#37771)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/dired.el | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 5ad5904c79f..574de7ac3eb 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -913,12 +913,16 @@ This feature is used by Auto Revert mode." | |||
| 913 | (dired-directory-changed-p dirname)))) | 913 | (dired-directory-changed-p dirname)))) |
| 914 | 914 | ||
| 915 | (defcustom dired-auto-revert-buffer nil | 915 | (defcustom dired-auto-revert-buffer nil |
| 916 | "Automatically revert Dired buffer on revisiting. | 916 | "Automatically revert Dired buffers on revisiting their directory. |
| 917 | If t, revisiting an existing Dired buffer automatically reverts it. | 917 | This option controls whether to refresh the directory listing in a |
| 918 | If its value is a function, call this function with the directory | 918 | Dired buffer when the directory that is already in some Dired buffer |
| 919 | name as single argument and revert the buffer if it returns non-nil. | 919 | is revisited by commands such as \\[dired] and \\[dired-find-file]. |
| 920 | Otherwise, a message offering to revert the changed dired buffer | 920 | If the value is t, revisiting an existing Dired buffer always reverts it. |
| 921 | is displayed. | 921 | If the value is a function, it is called with the directory name as a |
| 922 | single argument, and the buffer is reverted if the function returns non-nil. | ||
| 923 | One such function is `dired-directory-changed-p', which returns non-nil | ||
| 924 | if the directory has been changed since it was last revisited. | ||
| 925 | Otherwise, Emacs prompts whether to revert the changed Dired buffer. | ||
| 922 | Note that this is not the same as `auto-revert-mode' that | 926 | Note that this is not the same as `auto-revert-mode' that |
| 923 | periodically reverts at specified time intervals." | 927 | periodically reverts at specified time intervals." |
| 924 | :type '(choice | 928 | :type '(choice |