(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)?