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: Mon, 17 Jan 2011 15:37:56 +0100 Message-ID: <87fwsrbnp7.fsf@wanadoo.es> References: <4D3430B2.20604@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1295275109 19360 80.91.229.12 (17 Jan 2011 14:38:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 17 Jan 2011 14:38:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 17 15:38:25 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 1PeqDx-0008CF-1i for ged-emacs-devel@m.gmane.org; Mon, 17 Jan 2011 15:38:25 +0100 Original-Received: from localhost ([127.0.0.1]:38876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeqDw-0004Fb-A3 for ged-emacs-devel@m.gmane.org; Mon, 17 Jan 2011 09:38:24 -0500 Original-Received: from [140.186.70.92] (port=35326 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeqDm-0004EZ-7n for emacs-devel@gnu.org; Mon, 17 Jan 2011 09:38:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PeqDl-0001Nh-0F for emacs-devel@gnu.org; Mon, 17 Jan 2011 09:38:14 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:43930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PeqDk-0001NN-QH for emacs-devel@gnu.org; Mon, 17 Jan 2011 09:38:12 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PeqDf-00083i-K9 for emacs-devel@gnu.org; Mon, 17 Jan 2011 15:38:07 +0100 Original-Received: from 24.red-88-13-104.dynamicip.rima-tde.net ([88.13.104.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Jan 2011 15:38:07 +0100 Original-Received: from ofv by 24.red-88-13-104.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Jan 2011 15:38:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 24.red-88-13-104.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:s2465dsYeAl2Cp+mKOtF31Gs9kw= 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:134645 Archived-At: grischka writes: >> What I really hoped to discuss where the technical difficulties. Emacs >> does not currently have a way to let key binding fall back to the OS >> binding. I am not sure it is trivial and I have forgotten the details. > > It is nontrivial to say the least. > > Unlike XEmacs, GNU Emacs is still a console application at its heart. > It wants to "read" events in a loop from an input stream until it > finds them complete as a "key-sequence". No function seems to exist > that could deal with events that are already read. This is unnecesary. The Windows event loop coded into Emacs already receives Alt-F4 in a single event. What is needed is to determine from that event loop if there is a binding for Alt-F4 (created with *-set-key etc). Once we know that there is no such binding, it is trivial to send back the Alt-F4 event back to Windows. [snip]