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: Thu, 13 Jan 2011 14:13:17 +0100 Message-ID: <87hbddeyky.fsf@wanadoo.es> References: <87sjx7z7w4.fsf@telefonica.net> <83pqsbmf6j.fsf@gnu.org> <87k4ijz07h.fsf@telefonica.net> <2460D97DEA4047B3B9DF92C4A80981EF@us.oracle.com> <57BF13882D6E494286547F293FE9D03B@us.oracle.com> <87lj2pfo81.fsf@wanadoo.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294924420 3353 80.91.229.12 (13 Jan 2011 13:13:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Jan 2011 13:13:40 +0000 (UTC) Cc: Stuart Hacking , emacs-devel@gnu.org, Stefan Monnier , Drew Adams , Deniz Dogan To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 13 14:13:33 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 1PdMzc-0007Dt-Qr for ged-emacs-devel@m.gmane.org; Thu, 13 Jan 2011 14:13:32 +0100 Original-Received: from localhost ([127.0.0.1]:38792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdMzc-0005VQ-0U for ged-emacs-devel@m.gmane.org; Thu, 13 Jan 2011 08:13:32 -0500 Original-Received: from [140.186.70.92] (port=55282 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdMzT-0005Tr-R8 for emacs-devel@gnu.org; Thu, 13 Jan 2011 08:13:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdMzS-0006sl-FX for emacs-devel@gnu.org; Thu, 13 Jan 2011 08:13:23 -0500 Original-Received: from impaqm4.telefonica.net ([213.4.138.20]:55862 helo=telefonica.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdMzS-0006sJ-6d for emacs-devel@gnu.org; Thu, 13 Jan 2011 08:13:22 -0500 Original-Received: from IMPmailhost3.adm.correo ([10.20.102.124]) by IMPaqm4.telefonica.net with bizsmtp id ux5z1f0372h2L9m3Q1DLSK; Thu, 13 Jan 2011 14:13:20 +0100 Original-Received: from qcore ([88.13.104.24]) by IMPmailhost3.adm.correo with BIZ IMP id v1DH1f00f0XbiK41j1DHJm; Thu, 13 Jan 2011 14:13:20 +0100 X-Brightmail-Tracker: AAAAAA== X-original-sender: 981711563@telefonica.net In-Reply-To: (Lennart Borgman's message of "Thu, 13 Jan 2011 05:15:14 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:134484 Archived-At: Lennart Borgman writes: >> When Alt-F4 is delegated to Windows, it generates events for closing the >> active window. > > Good points, but did you verify that it generates an event for closing > the active window (and not for quitting the application as the doc at > MS seems to suggest)? The default behavior for Alt-F4 is to generate a WM_CLOSE message that is sent to the active window. The usual reaction is to destroy the window, which means that if we are dealing with the application's main window the application is terminated as well. WM_CLOSE is generated too by the "Close" button on the top left corner of the window. Emacs handles WM_CLOSE in w32term.c around line 4700. Emacs behaves as described above: kills the current frame.