From: Romain Troit <romain.troit@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 11977@debbugs.gnu.org
Subject: bug#11977: 23.2; F5 and revert without confirmation
Date: Thu, 19 Jul 2012 22:14:21 +0200 [thread overview]
Message-ID: <50086A9D.7030006@gmail.com> (raw)
In-Reply-To: <50073EF9.2050907@yandex.ru>
Le 19/07/2012 00:55, Dmitry Gutov a écrit :
> "Drew Adams" <drew.adams@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
prev parent reply other threads:[~2012-07-19 20:14 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
2012-07-18 22:55 ` Dmitry Gutov
2012-07-18 23:13 ` Christopher Schmidt
2012-07-19 20:14 ` Romain Troit [this message]
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=50086A9D.7030006@gmail.com \
--to=romain.troit@gmail.com \
--cc=11977@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
/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.