Subject: bug#49869: Revert buffer? Yes/No/Maybe

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 06 Aug 2021 11:21:03 +0200

Gregory Heytings <[email-masked]> writes:

> Like this:
>
> (defcustom revert-buffer-short-answer nil "")
>
> (defun revert-buffer-short-answer (&optional ignore-auto noconfirm preserve-modes)
>   (interactive (list (not current-prefix-arg)))
>   (if revert-buffer-short-answer
>       (let ((use-short-answers t)
> 	    (noconfirm (not (buffer-modified-p))))
> 	(revert-buffer ignore-auto noconfirm preserve-modes))
>     (revert-buffer ignore-auto noconfirm preserve-modes)))
>
> (global-set-key (kbd "C-x x g") 'revert-buffer-short-answer)

Yes, something like that looks pretty nice.  But probably under a
different name (at least for the user option) to avoid confusion with
the `revert-buffer' command.

Uhm...  I have no ideas.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no