From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 18 11:38:36 2012 Received: (at submit) by debbugs.gnu.org; 18 Jul 2012 15:38:36 +0000 Received: from localhost ([127.0.0.1]:48704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrWKf-0007rA-JX for submit@debbugs.gnu.org; Wed, 18 Jul 2012 11:38:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40062) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrU9r-00010h-K7 for submit@debbugs.gnu.org; Wed, 18 Jul 2012 09:19:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrU3r-00047Y-9y for submit@debbugs.gnu.org; Wed, 18 Jul 2012 09:13:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:41245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrU3r-00047M-6c for submit@debbugs.gnu.org; Wed, 18 Jul 2012 09:13:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrU3m-0008EH-Ib for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 09:13:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrU3f-0003oZ-6j for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 09:12:58 -0400 Received: from estelle.ath.cena.fr ([143.196.125.4]:57044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrU3e-0003ni-TM for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 09:12:51 -0400 Received: from roger.ath.cena.fr (cop.ath.cena.fr [143.196.127.2]) by estelle.ath.cena.fr (Postfix) with ESMTP id BEBEF15F5AC for ; Wed, 18 Jul 2012 14:41:53 +0200 (CEST) Received: from krahan.rfm.ath.cena.fr (krahan.rfm.ath.cena.fr [172.16.79.17]) by roger.ath.cena.fr (ESMTP CENA) with ESMTP id E5B3E17E41 for ; Wed, 18 Jul 2012 14:48:26 +0200 (CEST) Received: from troit by krahan.rfm.ath.cena.fr with local (Exim 4.72) (envelope-from ) id 1SrTZk-0001Iu-10 for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 14:41:56 +0200 Date: Wed, 18 Jul 2012 14:41:56 +0200 Message-Id: From: Romain TROIT To: bug-gnu-emacs@gnu.org Subject: 23.2; F5 and revert without confirmation X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 18 Jul 2012 11:38:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': Hello, This piece of code should really be part of emacs defaults ! Best regards, and thanks for emacs. William (defun revert-buffer-no-confirm () "Revert buffer without confirmation." (interactive) (revert-buffer t t)) (define-key global-map [f5] 'revert-buffer-no-confirm) If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/23.2/etc/DEBUG. In GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10707000 configured using `configure '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: x e m a c s r e p o r t - b u g x r e p o r Recent messages: Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50git-core.el (source)...done Loading /etc/emacs/site-start.d/50ocaml-mode.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/51tuareg-mode.el (source)...done *** Reading .emacs and ~/Emacs *** Loading paren...done For information about GNU Emacs and the GNU system, type C-h C-a. Quit Load-path shadows: /usr/share/emacs/23.2/site-lisp/auctex/tex-bar hides /usr/share/emacs/site-lisp/auctex/tex-bar /usr/share/emacs/23.2/site-lisp/auctex/context-nl hides /usr/share/emacs/site-lisp/auctex/context-nl /usr/share/emacs/23.2/site-lisp/auctex/context hides /usr/share/emacs/site-lisp/auctex/context /usr/share/emacs/23.2/site-lisp/auctex/tex-style hides /usr/share/emacs/site-lisp/auctex/tex-style /usr/share/emacs/23.2/site-lisp/auctex/tex hides /usr/share/emacs/site-lisp/auctex/tex /usr/share/emacs/23.2/site-lisp/auctex/tex-info hides /usr/share/emacs/site-lisp/auctex/tex-info /usr/share/emacs/23.2/site-lisp/auctex/tex-fold hides /usr/share/emacs/site-lisp/auctex/tex-fold /usr/share/emacs/23.2/site-lisp/auctex/bib-cite hides /usr/share/emacs/site-lisp/auctex/bib-cite /usr/share/emacs/23.2/site-lisp/auctex/tex-jp hides /usr/share/emacs/site-lisp/auctex/tex-jp /usr/share/emacs/23.2/site-lisp/auctex/font-latex hides /usr/share/emacs/site-lisp/auctex/font-latex /usr/share/emacs/23.2/site-lisp/auctex/tex-fptex hides /usr/share/emacs/site-lisp/auctex/tex-fptex /usr/share/emacs/23.2/site-lisp/auctex/context-en hides /usr/share/emacs/site-lisp/auctex/context-en /usr/share/emacs/23.2/site-lisp/auctex/multi-prompt hides /usr/share/emacs/site-lisp/auctex/multi-prompt /usr/share/emacs/23.2/site-lisp/auctex/tex-buf hides /usr/share/emacs/site-lisp/auctex/tex-buf /usr/share/emacs/23.2/site-lisp/auctex/toolbar-x hides /usr/share/emacs/site-lisp/auctex/toolbar-x /usr/share/emacs/23.2/site-lisp/auctex/tex-font hides /usr/share/emacs/site-lisp/auctex/tex-font /usr/share/emacs/23.2/site-lisp/auctex/latex hides /usr/share/emacs/site-lisp/auctex/latex /usr/share/emacs/23.2/site-lisp/auctex/tex-mik hides /usr/share/emacs/site-lisp/auctex/tex-mik /usr/share/emacs/23.2/site-lisp/auctex/texmathp hides /usr/share/emacs/site-lisp/auctex/texmathp /usr/share/emacs/23.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs/23.2/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.2/lisp/textmodes/flyspell /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.2/lisp/textmodes/ispell Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml easymenu mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug paren cus-start cus-load eurocat-asf-mode opas-arts-config-mode opas-tma-points-mode opas-traj-mode opas-tma-proc-mode devhelp preview-latex tex-site auto-loads tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 18 11:57:45 2012 Received: (at 11977) by debbugs.gnu.org; 18 Jul 2012 15:57:45 +0000 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 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 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 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 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 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 18 Jul 2012 08:51:26 -0700 From: "Drew Adams" To: "'Romain TROIT'" , <11977@debbugs.gnu.org> References: Subject: RE: bug#11977: 23.2; F5 and revert without confirmation Date: Wed, 18 Jul 2012 08:51:25 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11977 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) > 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.) From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 18 19:02:05 2012 Received: (at 11977) by debbugs.gnu.org; 18 Jul 2012 23:02:05 +0000 Received: from localhost ([127.0.0.1]:49089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrdFt-0002jG-29 for submit@debbugs.gnu.org; Wed, 18 Jul 2012 19:02:05 -0400 Received: from forward6.mail.yandex.net ([77.88.60.125]:49109) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrdFo-0002in-O0 for 11977@debbugs.gnu.org; Wed, 18 Jul 2012 19:02:03 -0400 Received: from smtp8.mail.yandex.net (smtp8.mail.yandex.net [77.88.61.54]) by forward6.mail.yandex.net (Yandex) with ESMTP id 09C5811235B2; Thu, 19 Jul 2012 02:55:50 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1342652151; bh=rshx4+TRuNgFfq7AgtCowLkO33sHy7X+k2kuHw55Ylk=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:Content-Type: Content-Transfer-Encoding; b=wfYXX8la8xYMR5eAd4y00uYog37+XD+5Mg2cv2KuPUuAoKQdk0hzRhlbNVMSAAUTf YsHe9HaOMqdY/HWqUXhew4TsdxXnM0OKRclIkBh287MbDMhWHanFIwHR9L0nSFFBY/ XXVNF6XIKC68M+Xhmi/bQATHPZY8VTwrVE4oy4b8= Received: from smtp8.mail.yandex.net (localhost [127.0.0.1]) by smtp8.mail.yandex.net (Yandex) with ESMTP id C417E1B604F8; Thu, 19 Jul 2012 02:55:50 +0400 (MSK) Received: from 98-87.nwlink.spb.ru (98-87.nwlink.spb.ru [178.252.98.87]) by smtp8.mail.yandex.net (nwsmtp/Yandex) with ESMTP id to2G3MZ9-to2SgkC3; Thu, 19 Jul 2012 02:55:50 +0400 X-Yandex-Rcpt-Suid: drew.adams@oracle.com X-Yandex-Rcpt-Suid: romain.troit@aviation-civile.gouv.fr X-Yandex-Rcpt-Suid: 11977@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1342652150; bh=rshx4+TRuNgFfq7AgtCowLkO33sHy7X+k2kuHw55Ylk=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: Content-Type:Content-Transfer-Encoding; b=OVu4FFT1RwiDlrrzZGxU+07gMDcOHhUYnJ/Z0ArBL850h6f3o18fYOlFoxox+Ar1n B/kPfgKz+knlZOXO9FYPYXu+TBKsjM1CauFxMn9IO6vl8QaugRH8s/AOyHDEYK3AHR fRCyZ6N3E4YRSUXgDhOvvuIW0jIejRryBU3W0hdo= Message-ID: <50073EF9.2050907@yandex.ru> Date: Thu, 19 Jul 2012 02:55:53 +0400 From: Dmitry Gutov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: drew.adams@oracle.com Subject: Re: bug#11977: 23.2; F5 and revert without confirmation Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11977 Cc: 11977@debbugs.gnu.org, romain.troit@aviation-civile.gouv.fr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) "Drew Adams" 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 18 19:19:17 2012 Received: (at submit) by debbugs.gnu.org; 18 Jul 2012 23:19:17 +0000 Received: from localhost ([127.0.0.1]:49100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrdWW-00036C-RJ for submit@debbugs.gnu.org; Wed, 18 Jul 2012 19:19:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59260) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrdWU-000366-Sa for submit@debbugs.gnu.org; Wed, 18 Jul 2012 19:19:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrdQX-00013A-Qz for submit@debbugs.gnu.org; Wed, 18 Jul 2012 19:13:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:42580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrdQX-000136-Nt for submit@debbugs.gnu.org; Wed, 18 Jul 2012 19:13:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrdQW-00077G-Qs for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 19:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrdQV-00012j-JO for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 19:13:04 -0400 Received: from ristopher.com ([146.185.21.93]:39155 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrdQV-00012f-BS for bug-gnu-emacs@gnu.org; Wed, 18 Jul 2012 19:13:03 -0400 Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id D805020B90; Thu, 19 Jul 2012 00:13:00 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1342653180; bh=XURjZEbbECZLwkFkyFwjQckehqV7qA0r+eRFNibDBQE=; h=From:To:Subject:In-Reply-To:References:Message-ID:MIME-Version: Content-Type:Date; b=kHcCXSTQ/Y9J2/JUnCPU1tu+bYj26MnHZ+MQTps6kNca+UKGVhDwTdjm1c/W2Gdb5 KmXRTUMbGyOkWBpZ1tBb2rDsnxuBGS43qI+pPycgcA5bzjWVupquZ6GYKvb2NVhIto aciR0ipNFVMm/kSMhmRZP/3uKYBipEODsfNqHNZ8= From: Christopher Schmidt To: bug-gnu-emacs@gnu.org Subject: Re: bug#11977: 23.2; F5 and revert without confirmation In-Reply-To: <50073EF9.2050907@yandex.ru> (Dmitry Gutov's message of "Thu, 19 Jul 2012 02:55:53 +0400") References: <50073EF9.2050907@yandex.ru> Message-ID: <87sjcopssh@ch.ristopher.com> Mail-Followup-To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain Date: Thu, 19 Jul 2012 00:13:00 +0100 (BST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Dmitry Gutov writes: [...] > 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))) C-h k , C-h b and friends won't display much helpful information in this case. I don't think that any key should be bound to revert-buffer without confirmation. It is too easy to hit the key by accident. Christopher From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 21 17:16:48 2012 Received: (at 11977) by debbugs.gnu.org; 21 Jul 2012 21:16:48 +0000 Received: from localhost ([127.0.0.1]:56278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ssh2d-00015E-TG for submit@debbugs.gnu.org; Sat, 21 Jul 2012 17:16:48 -0400 Received: from smtp21.services.sfr.fr ([93.17.128.2]:54864) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SrxDA-00078r-5K for 11977@debbugs.gnu.org; Thu, 19 Jul 2012 16:20:36 -0400 Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2106.sfr.fr (SMTP Server) with ESMTP id 39C7870000F9; Thu, 19 Jul 2012 22:14:22 +0200 (CEST) Received: from [192.168.1.2] (149.38.4.93.rev.sfr.net [93.4.38.149]) by msfrf2106.sfr.fr (SMTP Server) with ESMTP id E864E70000E5; Thu, 19 Jul 2012 22:14:21 +0200 (CEST) X-SFR-UUID: 20120719201421951.E864E70000E5@msfrf2106.sfr.fr Message-ID: <50086A9D.7030006@gmail.com> Date: Thu, 19 Jul 2012 22:14:21 +0200 From: Romain Troit User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Dmitry Gutov Subject: Re: bug#11977: 23.2; F5 and revert without confirmation References: <50073EF9.2050907@yandex.ru> In-Reply-To: <50073EF9.2050907@yandex.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 11977 X-Mailman-Approved-At: Sat, 21 Jul 2012 17:16:45 -0400 Cc: 11977@debbugs.gnu.org, drew.adams@oracle.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.1 (-) Le 19/07/2012 00:55, Dmitry Gutov a =E9crit : > "Drew Adams" 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=20 > t t))) 2 : No indeed, it not much longer, but only you knows how to do this=20 (and me now!) Regards, William From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 02 00:16:59 2012 Received: (at control) by debbugs.gnu.org; 2 Sep 2012 04:16:59 +0000 Received: from localhost ([127.0.0.1]:33652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T81cI-0004mc-Ks for submit@debbugs.gnu.org; Sun, 02 Sep 2012 00:16:59 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:61733) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T81cG-0004mV-5k for control@debbugs.gnu.org; Sun, 02 Sep 2012 00:16:56 -0400 Received: by pbbrr4 with SMTP id rr4so6615834pbb.3 for ; Sat, 01 Sep 2012 21:15:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=8iqKZ4IkQo4qQtNBXWoOVa0yWsM0pEWft0w+sQXcb4s=; b=w9RBLaFFWNXt+4cZFCckR38VNFOkSRokHHESCXhEogbR2fuKC5Vm7WVLkKF+m5uZqI p60OchjF6bt5XXW/FlvYKGdUPH/hA/xFWLJc9WVdOFtR1Ju7eHl8ZIU2Gq+aI+HW1Ug/ 2lcM4eNo8ReSNzoN6h3G15FRHnySbdGpgvh/tnPie8fT2pcZMA1DAzM4s8umeyh+PRHv Km1/03JVy8HZ2nFaCFmmDURiEZ/i3QygkMZrCGsjmMNKGzhDJ43yQI40X9VYPGBDuExK 2Fk3bKAg3uA9mNXKvLsIN8hK4GcElrs5IRBXs6iiKiAJgDYR3cqrZ5dpqNsSL4GKiUsR c2WA== Received: by 10.68.203.67 with SMTP id ko3mr28458272pbc.126.1346559330952; Sat, 01 Sep 2012 21:15:30 -0700 (PDT) Received: from ulysses (cm162.gamma80.maxonline.com.sg. [202.156.80.162]) by mx.google.com with ESMTPS id wh7sm6947751pbc.33.2012.09.01.21.15.28 (version=SSLv3 cipher=OTHER); Sat, 01 Sep 2012 21:15:30 -0700 (PDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: tags 11977 + wontfix Date: Sun, 02 Sep 2012 12:15:25 +0800 Message-ID: <87fw7183he.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) tags 11977 + wontfix close 11977 thanks From unknown Thu Jun 19 14:17:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 30 Sep 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator