(setq revert-without-query '(".*"))
With this extra line in .emacs file, i have configured emacs to revert buffers without any prompt. It doesn't prompt for clean buffers but when the buffer has unsaved
changes, it prompts
for confirmation.
So, how to use revert-buffer
with absolutely no prompts (no matter if buffer is clean (or) dirty)?
(revert-buffer t t)
.(setq revert-without-query '(".*"))
manual says, this line must turn off the prompts, but it didn't? are we giving wrong params to the variable?revert-without-query
determines which buffers will be reverted without querying, It does not turn off querying. More precisely, it reverts the file without querying if the file has changed on disk and you have not edited the buffer. If you have edited the buffer then it has no effect.