110 |
all information in the buffer is up to date and does not necessarily |
all information in the buffer is up to date and does not necessarily |
111 |
make manual reverts useless. |
make manual reverts useless. |
112 |
|
|
113 |
|
At the other extreme, certain buffers automatically auto-revert every |
114 |
|
@code{auto-revert-interval} seconds. (This currently only applies to |
115 |
|
the Buffer Menu.) In this case, Auto Revert does not print any |
116 |
|
messages while reverting, even when @code{auto-revert-verbose} is |
117 |
|
non-@code{nil}. |
118 |
|
|
119 |
The details depend on the particular types of buffers and are |
The details depend on the particular types of buffers and are |
120 |
explained in the corresponding sections. |
explained in the corresponding sections. |
121 |
|
|
218 |
@noindent |
@noindent |
219 |
in the buffer's mode function. |
in the buffer's mode function. |
220 |
|
|
221 |
The special return value @samp{fast} tells the caller that the need for |
The special return value @samp{fast} tells the caller that the need |
222 |
reverting was not checked, but that reverting the buffer is fast. |
for reverting was not checked, but that reverting the buffer is fast. |
223 |
This information could be useful if the function is consulted for |
It also tells Auto Revert not to print any revert messages, even if |
224 |
purposes other than auto-reverting. |
@code{auto-revert-verbose} is non-@code{nil}. This is important, as |
225 |
|
getting revert messages every @code{auto-revert-interval} seconds can |
226 |
|
be very annoying. The information provided by this return value could |
227 |
|
also be useful if the function is consulted for purposes other than |
228 |
|
auto-reverting. |
229 |
@end defvar |
@end defvar |
230 |
|
|
231 |
Once the buffer has a @code{revert-buffer-function} and a |
Once the buffer has a @code{revert-buffer-function} and a |
250 |
if @code{auto-revert-verbose} is @code{t} and effectively override a |
if @code{auto-revert-verbose} is @code{t} and effectively override a |
251 |
@code{nil} value for @code{auto-revert-verbose}. Hence, adapting a |
@code{nil} value for @code{auto-revert-verbose}. Hence, adapting a |
252 |
mode for auto-reverting often involves getting rid of such messages. |
mode for auto-reverting often involves getting rid of such messages. |
253 |
|
This is especially important for buffers that automatically |
254 |
|
auto-revert every @code{auto-revert-interval} seconds. |
255 |
|
|
256 |
@ifinfo |
@ifinfo |
257 |
Finally, you should add a node to this chapter's menu. This node |
Finally, you should add a node to this chapter's menu. This node |