I'm trying to get rid of the annoying prompt at the end of revert-buffer
. This prompt would make sense in a lesser text editor where reverting the buffer is an irreversible action (pardon the pun). However, most of the time when I want to revert buffer I actually want it to do that, and do it right away.
One solution I've come up with was to call the non-interactive counterpart of the revert-buffer
function
(global-set-key (kbd "C-r") (lambda () (revert-buffer nil t t))
but this for some reason ignores the second optional argument and still prompts me.