From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Bikeshedding go! Why is unbound? Date: Thu, 13 Jan 2011 23:00:25 +0100 Message-ID: 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> <87tyhcel25.fsf@wanadoo.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294956834 21501 80.91.229.12 (13 Jan 2011 22:13:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Jan 2011 22:13:54 +0000 (UTC) Cc: =?UTF-8?Q?=C3=93scar_Fuentes?= , Stuart Hacking , emacs-devel@gnu.org, Drew Adams , Deniz Dogan To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 13 23:13:49 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 1PdVQT-0003tT-NT for ged-emacs-devel@m.gmane.org; Thu, 13 Jan 2011 23:13:49 +0100 Original-Received: from localhost ([127.0.0.1]:33634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdVQT-0000nK-05 for ged-emacs-devel@m.gmane.org; Thu, 13 Jan 2011 17:13:49 -0500 Original-Received: from [140.186.70.92] (port=57720 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdVNt-00076w-EX for emacs-devel@gnu.org; Thu, 13 Jan 2011 17:11:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdVDr-0008P6-GS for emacs-devel@gnu.org; Thu, 13 Jan 2011 17:00:48 -0500 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:62425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdVDr-0008Ox-B2 for emacs-devel@gnu.org; Thu, 13 Jan 2011 17:00:47 -0500 Original-Received: by eyh6 with SMTP id 6so1123473eyh.0 for ; Thu, 13 Jan 2011 14:00:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=w4tkZrTeTf0LyoBnut1xmZHSCTxhZM0UGBFENW2p4LQ=; b=qfhNlBfW4yhHt81J6ImntzupexRlruL/Hv47MDBSm3vF2RaPt+FUgGHGjzO9gOH2QA Ppxc/sDoIvQAhCsbascf1mCPFVSuofqa/lVlLZT05P++Plp++BtjChrt5yclkoESRt/S UazUIpfURfzmknYtgjlS9foY5p6bvZgZpJw1w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=GaqtoN5xUve2eAx6MIeeq3saEDZlshDygjAO+sOKDz0M2VpqsHfTc5VPPB9RVVae/p JQSIqTqysMMBIFKid3ZZnOJ6lEo0VEJ2FeaIrdjrzIZR3hPpRBDSy9/JUt903vnPxOOY sTQm+lQKdxdbdyqF88shLdhsb3NuaElPPEtMQ= Original-Received: by 10.213.28.147 with SMTP id m19mr958348ebc.97.1294956045875; Thu, 13 Jan 2011 14:00:45 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Thu, 13 Jan 2011 14:00:25 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:134498 Archived-At: On Thu, Jan 13, 2011 at 10:15 PM, Stefan Monnier wrote: >>>> When Alt-F4 is delegated to Windows, it generates events for closing t= he >>>> active window. >>> Thanks. =C2=A0So the right thing to do here is to change Emacs so it de= legates >>> the Alt-F4 to the standard Windows routine that turns it into a WM_CLOS= E. >>> Patch welcome, >> Binding Alt-F4 to a function such as handle-delete-frame will do >> fine. That's far easier than dealing with the Windows API from the C >> sources. > > It's likely to end up approximating the right behavior, and lead to > more reports. =C2=A0E.g. should it bind A-f4 or M-f4? To delegate Alt-F4 to Windows standard routine we have to catch it in the message loop. I can't remember how it shows up in the message loop. Does it come in one peace (i.e. Alt+F4) or in a sequence (i.e. Alt and then F4)?