From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: w32-pass-lwindow-to-system (& ...rwindow) Date: Sun, 24 Sep 2006 15:59:10 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1159102774 15815 80.91.229.2 (24 Sep 2006 12:59:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Sep 2006 12:59:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 24 14:59:31 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GRTZx-0004T6-Rg for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Sep 2006 14:59:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRTZx-0004Uz-7m for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Sep 2006 08:59:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRTZl-0004Sv-PV for help-gnu-emacs@gnu.org; Sun, 24 Sep 2006 08:59:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRTZk-0004SI-B6 for help-gnu-emacs@gnu.org; Sun, 24 Sep 2006 08:59:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRTZk-0004SF-7a for help-gnu-emacs@gnu.org; Sun, 24 Sep 2006 08:59:16 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GRTdv-0003sE-JZ for help-gnu-emacs@gnu.org; Sun, 24 Sep 2006 09:03:35 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-39-253.inter.net.il [80.230.39.253]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id FVK04323 (AUTH halo1); Sun, 24 Sep 2006 15:59:07 +0300 (IDT) Original-To: "B. T. Raven" In-reply-to: (ecinmn@alcisp.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37588 Archived-At: > From: "B. T. Raven" > Date: Sat, 23 Sep 2006 13:17:57 -0500 > > "Mathias Dahl" wrote in message > news:upsdmikql.fsf@gmail.com... > > Eli Zaretskii writes: > > > > > Looks like the trick we play around line 3005 of w32fns.c isn't > > > working. What Windows version is that? Is there someone on this > > > list who can make LWIN-r combo work for them in Emacs, in any > > > version of Windows? > > > > I just tested with emacs -q and it works as for the parent poster, > > i.e. Win+s gives me `search-backward-regexp' but Win+r opens up the > > Run dialog. The same applies for Win+e (open Explorer.exe). > > > > I use CVS Emacs from 2006-03-20 on Windows XP. > > > > /Mathias > > I have w98 and w2000 but I have tried it only on w98 (ver 21.3) so far. > In addition to win-e, win-f, win-d,and win-r, win-m is also a problem > (apparently it is a synonym for win-d, raise the desktop.) The other > unassigned s- keychords produce a pleasant ding sound. I will > test it on w-2000 when I get a chance but there I have only version 22.0 > installed. > > Probably not relevant, but the following work alright: > > (global-set-key [(super g)] 'goto-line) > (global-set-key [(super b)] 'bury-buffer) > (global-set-key [(super k)] (lambda () (interactive) (kill-line 0 ))) Thanks to all who responded. I now think that my original opinion about the code in w32fns.c no working was in error. That code _does_ work, and correctly prevents Windows from popping up the Start menu when lwindow is pressed and released without pressing any other key. This is important when w32-pass-lwindow-to-system is set to nil, but w32-lwindow-modifier is left at its default nil value, which causes the lwindow key to appear in Emacs as . But the case of -r, when w32-lwindow-modifier is set to `super', cannot be handled by that trick, because Windows seems to catch the combo before Emacs gets the chance to process it. Sorry for any confusion I might have caused.