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: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Romain TROIT'" <romain.troit <at> aviation-civile.gouv.fr>, <11977 <at> debbugs.gnu.org>
Subject: bug#11977: 23.2; F5 and revert without confirmation
Date: Wed, 18 Jul 2012 08:51:25 -0700
> 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.

FWIW, that's exactly the code I have in misc-cmds.el.

Wrt binding f5 by default:

Emacs Dev generally avoids binding function keys by default, as it should.  But
they have already created default bindings for some function keys (they should
*not* have, IMHO).

Also, function keys are repeatable keys (just hold one down to repeat it), and
as such they should generally be used for repeatable commands.  We should
generally put commands (such as buffer reverting) that are typically not
repeated on other key sequences, and not waste repeatable keys on them.

But this binding could be made by default on MS Windows perhaps.  On that
platform f5 is revert/update/refresh for applications generally.

(Personally/FWIW, I bind it to f5 on all platforms.)





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.