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: w32-pass-lwindow-to-system does not work as expected Date: Wed, 06 Jul 2005 20:23:00 +0200 Message-ID: <42CC2184.4040800@student.lu.se> References: <42CADC1A.4060106@student.lu.se> <42CAF37E.2060307@student.lu.se> <42CB802F.8040809@student.lu.se> 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 1120674506 10386 80.91.229.2 (6 Jul 2005 18:28:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2005 18:28:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 06 20:28:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DqEch-0005EN-FF for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2005 20:27:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqEe1-0002X3-3m for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2005 14:29:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DqEdn-0002Rz-C0 for emacs-devel@gnu.org; Wed, 06 Jul 2005 14:28:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DqEdl-0002RR-UK for emacs-devel@gnu.org; Wed, 06 Jul 2005 14:28:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqEdl-0002Q3-F4 for emacs-devel@gnu.org; Wed, 06 Jul 2005 14:28:57 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DqEeQ-0003aT-Rl; Wed, 06 Jul 2005 14:29:39 -0400 Original-Received: from [192.168.123.121] (83.249.205.6) by pne-smtpout2-sn1.fre.skanova.net (7.2.060.1) id 42B9371700292FD2; Wed, 6 Jul 2005 20:23:08 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: Eli Zaretskii In-Reply-To: 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:40508 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40508 Eli Zaretskii wrote: >The low-level hook you referred to is documented to get scan codes. > > Yes, scan code AND virtual key codes. I do not mean to process the scan codes (I would not dare ;-) >See also Jason's message: if lwindow is to be used as a modifier, then >we will have to process other keys in the low-level hook as well. > > I took a look at how RegisterHotKey was used in Emacs. It post the message back as a WM_KEYDOWN with just the virtual key code and no modifiers. Could not the same thing be done in the low level hook I have suggested? Or is there something I do not know that must be done? >Unfortunately, in this case, this particular system doesn't want Emacs >to get at that key and some other special key combinations. Since >Emacs users are not the only ones who are pissed off by this >inflexibility, I'm sure there are lots of small proggies written and >floating on the Internet that will remap lwindow and other special >keys such that applications, including Emacs, can receive them. I say >let's advise our users to solve their problems outside Emacs, like we >do on GNU/Linux, where we tell them to use loadkeys and xmodmap. > > Maybe you are right, but my gut feeling is that users on w32 expect the program the use to do this. There are at least some example of code doing things similar to my suggestion. And it looks to me like things have changed over the years. The low level keyboard hook I have suggested that we use is not available in older versions of ms windows. (If I remember correctly it is available from w2k and onwards.)