From: Dmitry Gutov <dgutov@yandex.ru>
To: drew.adams@oracle.com
Cc: 11977@debbugs.gnu.org, romain.troit@aviation-civile.gouv.fr
Subject: bug#11977: 23.2; F5 and revert without confirmation
Date: Thu, 19 Jul 2012 02:55:53 +0400 [thread overview]
Message-ID: <50073EF9.2050907@yandex.ru> (raw)
In-Reply-To: <E1SrTZk-0001Iu-10@krahan.rfm.ath.cena.fr>
"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)))
--Dmitry
next prev parent reply other threads:[~2012-07-18 22:55 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 [this message]
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=50073EF9.2050907@yandex.ru \
--to=dgutov@yandex.ru \
--cc=11977@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
--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.