From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#11977: 23.2; F5 and revert without confirmation Date: Wed, 18 Jul 2012 08:51:25 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342626727 8337 80.91.229.3 (18 Jul 2012 15:52:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2012 15:52:07 +0000 (UTC) To: "'Romain TROIT'" , <11977@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 18 17:52:07 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SrWXm-0008VZ-At for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2012 17:52:06 +0200 Original-Received: from localhost ([::1]:59846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrWXl-0003eR-Hh for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Jul 2012 11:52:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrWXd-0003YB-7q for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 11:52:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrWXc-0005UW-3p for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 11:51:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39189) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrWXc-0005UL-0o for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 11:51:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SrWdV-0008Kq-QR for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 11:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jul 2012 15:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11977 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11977-submit@debbugs.gnu.org id=B11977.134262706532018 (code B ref 11977); Wed, 18 Jul 2012 15:58:01 +0000 Original-Received: (at 11977) by debbugs.gnu.org; 18 Jul 2012 15:57:45 +0000 Original-Received: from localhost ([127.0.0.1]:48735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrWdF-0008KM-4E for submit@debbugs.gnu.org; Wed, 18 Jul 2012 11:57:45 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:33497) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrWdD-0008KF-5k for 11977@debbugs.gnu.org; Wed, 18 Jul 2012 11:57:43 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q6IFpS50021962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Jul 2012 15:51:29 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q6IFpQEd003305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 Jul 2012 15:51:27 GMT Original-Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q6IFpQdl008990; Wed, 18 Jul 2012 10:51:26 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 18 Jul 2012 08:51:26 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac1k+qGiJl/5hMZ6T3mUEpsRFyraxgAAMx6A X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62116 Archived-At: > 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.)