From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Bikeshedding go! Why is unbound? Date: Tue, 18 Jan 2011 14:27:15 +0100 Message-ID: <87wrm29wb0.fsf@wanadoo.es> References: <4D355F3A.4040709@gmx.de> <871v4abc80.fsf@wanadoo.es> <4D359279.4090804@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1295357256 8804 80.91.229.12 (18 Jan 2011 13:27:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 18 Jan 2011 13:27:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: grischka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 18 14:27:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PfBao-0003zN-IU for ged-emacs-devel@m.gmane.org; Tue, 18 Jan 2011 14:27:26 +0100 Original-Received: from localhost ([127.0.0.1]:46403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfBao-0002Hy-0f for ged-emacs-devel@m.gmane.org; Tue, 18 Jan 2011 08:27:26 -0500 Original-Received: from [140.186.70.92] (port=40104 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfBai-0002Hl-Pt for emacs-devel@gnu.org; Tue, 18 Jan 2011 08:27:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfBah-0002rt-Ar for emacs-devel@gnu.org; Tue, 18 Jan 2011 08:27:20 -0500 Original-Received: from impaqm1.telefonica.net ([213.4.138.17]:17293 helo=telefonica.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfBah-0002rN-23 for emacs-devel@gnu.org; Tue, 18 Jan 2011 08:27:19 -0500 Original-Received: from IMPmailhost3.adm.correo ([10.20.102.124]) by IMPaqm1.telefonica.net with bizsmtp id wuvF1f00C2h2L9m011THK5; Tue, 18 Jan 2011 14:27:17 +0100 Original-Received: from qcore ([88.13.104.24]) by IMPmailhost3.adm.correo with BIZ IMP id x1TF1f00z0XbiK41j1TGfJ; Tue, 18 Jan 2011 14:27:17 +0100 X-Brightmail-Tracker: AAAAAA== X-original-sender: 981711563@telefonica.net In-Reply-To: <4D359279.4090804@gmx.de> (grischka's message of "Tue, 18 Jan 2011 14:15:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134701 Archived-At: grischka writes: >> This is unnecesary too. Alt-F4 must work irrespectively of the prefix >> keys typed so far: if you type C-x or C-h and then click on the Close >> button on the top right of the frame, Emacs thinks you want to exit the >> application. Alt-F4 must have the same effect as clicking that button >> (when M-f4 is unbound on Emacs, hence the need for checking the binding >> from the Windows event loop). > > A matter of taste. Of consistency. Alt-F4 acts as the accelerator for the Close button and the Close menu entry on the application system menu. >>> (global-set-key [M-f4] 'w32-syskey) >> >> If we go that route why not just bind M-f4 to a function that closes the >> current frame, as suggested at the beginning of this thread? > > Because you want to support menu accelerators [Alt-] ? I was not thinking along that line. The global binding at the Lisp level is simplest solution, although maybe not the optimum: it doesn't trigger the exit procedure when typed with the C-h prefix, but some may view that as an advantage. Possibly putting M-f4 on the minibuffer keymap we could emulate the behavior describe on the top paragraph.