From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Using windows keys for Emacs META on w32 Date: Wed, 23 Jan 2008 23:10:39 +0100 Message-ID: <4797BB5F.7020300@gmail.com> References: <477FED30.10201@gmail.com> <479767E2.70909@gnu.org> <47976D34.4090603@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201126266 23976 80.91.229.12 (23 Jan 2008 22:11:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jan 2008 22:11:06 +0000 (UTC) Cc: Emacs Devel , Jason Rumney To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 23 23:11:25 2008 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.50) id 1JHnoZ-0001qB-Jt for ged-emacs-devel@m.gmane.org; Wed, 23 Jan 2008 23:11:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHno9-000637-IV for ged-emacs-devel@m.gmane.org; Wed, 23 Jan 2008 17:10:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHno4-00061E-OS for emacs-devel@gnu.org; Wed, 23 Jan 2008 17:10:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHno3-0005yP-0f for emacs-devel@gnu.org; Wed, 23 Jan 2008 17:10:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHno2-0005yF-So for emacs-devel@gnu.org; Wed, 23 Jan 2008 17:10:50 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JHnny-00026V-Rp; Wed, 23 Jan 2008 17:10:47 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:62909 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JHnnx-0007UJ-3Z; Wed, 23 Jan 2008 23:10:45 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 080123-1, 2008-01-23), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JHnnx-0007UJ-3Z. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JHnnx-0007UJ-3Z 95a918e403bc427829b81abe50583976 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:87402 Archived-At: Juanma Barranquero wrote: > On Jan 23, 2008 5:37 PM, Lennart Borgman (gmail) > wrote: > >> I will try to. In fact there was a bug in the patch I sent, but since no >> one has said something about it I guess no one has tested it. > > I was planning to do it, but I agree that fixing the "rough state" is > a good idea. Thanks anyway. > I must say, though, that it seems too complicate a patch for such a > small benefit. Or I don't understand what you're trying to do (that's > another distinct possibility :) I do not know if it is complicated by itself. The low level keyboard hook, which is the heart of the patch, is very straight forward. Then I tried to follow the same structure as was used before in the w32 message handling. (BTW that really made me wish that the different threads, GUI and main, were marked in the source.) But after that I discovered that there was a bug in the menu handling that could result in what you typed to open a menu could go to the buffer instead. You do not notice that bug unless you let windows handle the Alt key completely. After this there was the bug in accessibility sticky keys handling. The patch also makes the handling of caps/num lock a little bit better (though I do not know the consequences of this). But the main gains are of course: - Beeing able to use the Alt for menus (required by some accessibility guidelines if I remember correctly). - Using M-Tab for completion Can't remember if it was anything more now. Eh, yes, I remember one little thing more: Beeing able to have a meta key at all if you want to use Alt for the menus - and you use Viper ... I also have a little file to easily change the setting of META (lwindow, rwindow or alt). What I want to is get rid of the patches. It is unnecessary work to have them outside of core Emacs and they would be useful IMO in Emacs.