GNU bug report logs - #11977
23.2; F5 and revert without confirmation

Previous Next

Package: emacs;

Reported by: Romain TROIT <romain.troit <at> aviation-civile.gouv.fr>

Date: Wed, 18 Jul 2012 15:39:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 23.2

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Romain Troit <romain.troit <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 11977 <at> debbugs.gnu.org, drew.adams <at> oracle.com
Subject: bug#11977: 23.2; F5 and revert without confirmation
Date: Thu, 19 Jul 2012 22:14:21 +0200
Le 19/07/2012 00:55, Dmitry Gutov a écrit :
> "Drew Adams" <drew.adams <at> oracle.com> writes:
>
> >> This piece of code should really be part of emacs defaults !
> >>
> >> (defun revert-buffer-no-confirm ()
> >>     "Revert buffer without confirmation."
> >>     (interactive) (revert-buffer t t))
> >> (define-key global-map [f5] 'revert-buffer-no-confirm)
> >
> > +1, at least for adding the definition.
>
> Personally, I don't think it's a good suggestion:
>
> 1. A user might stumble on the command accidentally (that's what the
> confirmation is for).
>
> 2. (define-key global-map [f5] 'revert-buffer-no-confirm)
>
> is not that much shorter than
>
>   (define-key global-map [f5] (lambda () (interactive) (revert-buffer 
> t t)))
2 : No indeed, it not much longer, but only you knows how to do this 
(and me now!)

Regards,

William




This bug report was last modified 12 years and 263 days ago.

Previous Next


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