|
From: | Juri Linkov |
Subject: | bug#49869: Revert buffer? Yes/No/Maybe |
Date: | Tue, 10 Aug 2021 10:12:29 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
>> (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. :-) Maybe revert-buffer-quick?
[Prev in Thread] | Current Thread | [Next in Thread] |