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 05:15:14 +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> 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 1294892153 26493 80.91.229.12 (13 Jan 2011 04:15:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Jan 2011 04:15:53 +0000 (UTC) Cc: Stuart Hacking , emacs-devel@gnu.org, Stefan Monnier , Drew Adams , Deniz Dogan To: =?UTF-8?Q?=C3=93scar_Fuentes?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 13 05:15:47 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 1PdEbA-0005EK-Vo for ged-emacs-devel@m.gmane.org; Thu, 13 Jan 2011 05:15:45 +0100 Original-Received: from localhost ([127.0.0.1]:59485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdEb9-0007vL-LJ for ged-emacs-devel@m.gmane.org; Wed, 12 Jan 2011 23:15:43 -0500 Original-Received: from [140.186.70.92] (port=49609 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdEb4-0007u8-1w for emacs-devel@gnu.org; Wed, 12 Jan 2011 23:15:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdEb2-0000Fk-OZ for emacs-devel@gnu.org; Wed, 12 Jan 2011 23:15:37 -0500 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:32860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdEb2-0000FZ-FA for emacs-devel@gnu.org; Wed, 12 Jan 2011 23:15:36 -0500 Original-Received: by eyh6 with SMTP id 6so634847eyh.0 for ; Wed, 12 Jan 2011 20:15:35 -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=CtXJE1lM9a6xPYGNMkExBW1x68TH2YoqeCK+IfVazT8=; b=xWJcrASUs//OU0WmGol4+vwA3jvHFvcclwHZ8AAUnvh6u8JlRWJNjd1zVuPtFCLtLI KDNqBfFJiRMV6erygusELY9SmBHSaMRJyIZnk1uzHArMfqVji6MtQqJmrq+Khv3nUh4e tL6fVUeYZMXj9lv8fHPbqxS6r2PMon1m74F+w= 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=jf5HZ9ZJcAl9BGgzpga5WsGk8zYL7N8OHwZ8AqwXpJPuPMapOQvJWIiOj3MAF3r683 vzU+dZo71EtobcU8nLY5MUb8z39pI2yFyE1kauAs+wCOlu1pvbP3OX3ahPfakMJwef0B fF3sMv4tHSjWZgRyPj+AZ+vpT2bPw0zJ4FyUY= Original-Received: by 10.213.28.66 with SMTP id l2mr146662ebc.71.1294892135419; Wed, 12 Jan 2011 20:15:35 -0800 (PST) Original-Received: by 10.213.20.148 with HTTP; Wed, 12 Jan 2011 20:15:14 -0800 (PST) In-Reply-To: <87lj2pfo81.fsf@wanadoo.es> 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:134482 Archived-At: On Thu, Jan 13, 2011 at 4:59 AM, =C3=93scar Fuentes wrote: > > When Alt-F4 is pressed, the event is sent to the application as any > other keypress. The application can handle the event as it pleases > (that's the case of Emacs) or delegate the handling of that event to > Windows, which performs standard actions for certain well-known > events. But please note that the event is sent to the application first > and the OS executes the standard associated action only when the > application delegates the event handling to it. This differs from KDE, > which handles Al-F4 and Emacs never sees it > > This is the typical event loop of a Windows application (pseudocode): > > switch(event) { > case foo: do_something(); break; > case bar: do_something_else(); break; > /* More case's for all events we are interested on */ > ... > /* Let Windows handle all the rest: */ > default: let_Windows_process_it() > } > > 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)? > On Windows, if the Emacs system menu is activated (you click the icon > just above the File menu) it shows a standard entry "Close Alt-F4". But > then you press Alt-F4 and Emacs reports on the modeline " is > undefined".