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: AltGr finger twisters documented? Date: Tue, 05 Jul 2005 19:00:09 +0200 Message-ID: <42CABC99.50600@student.lu.se> References: <42CA7FF8.5050402@student.lu.se> <763C4DA6-2025-4EE1-ADD1-69350F931C16@swipnet.se> <8AE2EF76-8EFB-478A-88BE-1B0CCF5EC034@swipnet.se> <42CAB252.3030407@student.lu.se> <42CAB75C.9010208@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120583593 23697 80.91.229.2 (5 Jul 2005 17:13:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2005 17:13:13 +0000 (UTC) Cc: Juanma Barranquero , "Jan D." , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 05 19:13:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dpqw7-0005uY-FA for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2005 19:10:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpqxO-00078o-1J for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2005 13:11:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DpqwO-0006wS-D1 for emacs-devel@gnu.org; Tue, 05 Jul 2005 13:10:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DpqwD-0006s4-44 for emacs-devel@gnu.org; Tue, 05 Jul 2005 13:10:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpqwD-0006n0-0P for emacs-devel@gnu.org; Tue, 05 Jul 2005 13:10:25 -0400 Original-Received: from [81.228.8.83] (helo=pne-smtpout1-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DpqsO-0004Zq-NX; Tue, 05 Jul 2005 13:06:28 -0400 Original-Received: from [192.168.123.121] (83.249.205.6) by pne-smtpout1-sn2.hy.skanova.net (7.2.060.1) id 42BFBBD200196CB6; Tue, 5 Jul 2005 19:00:12 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: Jason Rumney In-Reply-To: <42CAB75C.9010208@gnu.org> 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:40435 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40435 Jason Rumney wrote: > Lennart Borgman wrote: > >> Thanks. I then consider the behaviour on w32 to be a bug (if there is >> no intention with this behaviour of course). What would other think >> of this? > > > Sure it's a bug, but a bug of the OS. Setting w32-recognize-altgr to > nil appears to avoid this bug for people who don't need AltGr at all. > > The bug is that Windows does not have a separate modifier flag for > AltGr, it uses Left-Ctrl + Right-Alt flags to indicate that AltGr is > being pressed. So we can't tell that Left-Ctrl is pressed when AltGr > is down. > > If you can find a proper fix for this bug, we can probably get rid of > w32-recognize-altgr. Have you thought about the possibility to use a low level keyboard hook? I thought of this as a possibility for leaving the Alt key to windows and still have a comfortable Meta key. and could be used for that I believe but you must then use a low level keyboard hook. The current approach with w32-pass-lwindow-to-system does not work as far as I can see. If do (setq w32-pass-alt-to-system nil), and then C-h c, , e I get a Windows Explorer w32 window. Using a low level keyboard hook this can be trapped. However I do not know much about them. Can they be added if the user have no privilege? As far as I understand it ought to be decided when Emacs has keyboard focus and then it does not have it so that the keyboard hook can be added and removed at the right moments. Can WM_APPACTIVATE be used for this (or was there some other message)? Otherwise there does not seem to be needed much code for the keyboard hook itself and adding and removing it. And I guess the rest of the code already is in Emacs?