all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Romain TROIT'" <romain.troit@aviation-civile.gouv.fr>,
	<11977@debbugs.gnu.org>
Subject: bug#11977: 23.2; F5 and revert without confirmation
Date: Wed, 18 Jul 2012 08:51:25 -0700	[thread overview]
Message-ID: <A8801B215E644A36B4A0B6408FE737CE@us.oracle.com> (raw)
In-Reply-To: <E1SrTZk-0001Iu-10@krahan.rfm.ath.cena.fr>

> 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.)






  reply	other threads:[~2012-07-18 15:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 12:41 bug#11977: 23.2; F5 and revert without confirmation Romain TROIT
2012-07-18 15:51 ` Drew Adams [this message]
2012-07-18 22:55 ` Dmitry Gutov
2012-07-18 23:13   ` Christopher Schmidt
2012-07-19 20:14   ` Romain Troit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A8801B215E644A36B4A0B6408FE737CE@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=11977@debbugs.gnu.org \
    --cc=romain.troit@aviation-civile.gouv.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.