GNU bug report logs - #49869
Revert buffer? Yes/No/Maybe

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Wed, 4 Aug 2021 08:47:02 UTC

Severity: wishlist

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, juri <at> linkov.net, 49869 <at> debbugs.gnu.org
Subject: bug#49869: Revert buffer? Yes/No/Maybe
Date: Fri, 06 Aug 2021 11:21:03 +0200
Gregory Heytings <gregory <at> heytings.org> 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




This bug report was last modified 3 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.