GNU bug report logs - #14794
24.3.50; `w32-register-hot-key' does not work on Windows 7 64-bit

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Drew Adams <drew.adams@HIDDEN>; dated Thu, 4 Jul 2013 21:11:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 12 Jul 2013 18:05:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 12 14:05:33 2013
Received: from localhost ([127.0.0.1]:51084 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Uxhim-0001V9-53
	for submit <at> debbugs.gnu.org; Fri, 12 Jul 2013 14:05:32 -0400
Received: from mtaout22.012.net.il ([80.179.55.172]:59827)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1Uxhii-0001Uq-2Y
 for 14794 <at> debbugs.gnu.org; Fri, 12 Jul 2013 14:05:30 -0400
Received: from conversion-daemon.a-mtaout22.012.net.il by
 a-mtaout22.012.net.il (HyperSendmail v2007.08) id
 <0MPU00B004OKYA00@HIDDEN> for 14794 <at> debbugs.gnu.org;
 Fri, 12 Jul 2013 21:04:24 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0MPU00B234VBY120@HIDDEN>;
 Fri, 12 Jul 2013 21:04:24 +0300 (IDT)
Date: Fri, 12 Jul 2013 21:04:19 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14794: 24.3.50;
 `w32-register-hot-key' does not work on Windows 7 64-bit
In-reply-to: <42b38d5f-c1ab-4e28-96c4-e4cb2f3430c2@default>
X-012-Sender: halo1@HIDDEN
To: Drew Adams <drew.adams@HIDDEN>
Message-id: <8361wf64f0.fsf@HIDDEN>
References: <42b38d5f-c1ab-4e28-96c4-e4cb2f3430c2@default>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 14794
Cc: rudalics@HIDDEN, 14794 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Fri, 12 Jul 2013 09:10:26 -0700 (PDT)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 14794 <at> debbugs.gnu.org
> 
> > Maybe try the left/right Win+E key or the Apps key, after setting the
> > w32-*-modifier variables so as to produce an Emacs modifier from them.
> 
> Sorry, I don't know what the last clause means.  What w32-* modifier
> variables, and how?

For the Win key, use w32-lwindow-modifier, for the Apps key use the
w32-apps-modifier.  You might need to use these to convert these keys
to something Emacs can use.

> But from your and Martin's other replies in this thread it appears that
> `w32-register-hot-key' is useless for Windows 7.  Unless I missed
> something.  Is there any case at all where it actually will have an
> effect?

I have no idea, I didn't research the issue enough.  This page:

  http://www.sevenforums.com/tutorials/5937-windows-key-shortcuts-enable-disable.html

tells you how to disable the Windows shortcuts, in case you don't have
any use for them outside Emacs.  Perhaps then registering hotkeys will
work on Windows 7.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 12 Jul 2013 16:10:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 12 12:10:41 2013
Received: from localhost ([127.0.0.1]:50738 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Uxfvc-0005yJ-0g
	for submit <at> debbugs.gnu.org; Fri, 12 Jul 2013 12:10:40 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:20754)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1UxfvY-0005y4-0z
 for 14794 <at> debbugs.gnu.org; Fri, 12 Jul 2013 12:10:36 -0400
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237])
 by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id
 r6CGATYm030017
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Fri, 12 Jul 2013 16:10:29 GMT
Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85])
 by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6CGASln008646
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Fri, 12 Jul 2013 16:10:28 GMT
Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60])
 by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6CGARtB024061;
 Fri, 12 Jul 2013 16:10:27 GMT
MIME-Version: 1.0
Message-ID: <42b38d5f-c1ab-4e28-96c4-e4cb2f3430c2@default>
Date: Fri, 12 Jul 2013 09:10:26 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, martin rudalics <rudalics@HIDDEN>
Subject: RE: bug#14794: 24.3.50;	`w32-register-hot-key' does not work on
 Windows 7 64-bit
References: <<c27d6591-74ce-42dc-96dd-bcb01df42b2c@default>>
 <<83k3kw5kni.fsf@HIDDEN>>
In-Reply-To: <<83k3kw5kni.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
 12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> > And I don't know what the Emacs key for PrintScreen is.
>=20
> I think [print], but I don't see that we produce it anywhere.

(global-set-key [print] 'forward-char)
(w32-register-hot-key [print]) ; =3D> 42

Has no effect: The Print Screen key is still not recognized by Emacs.

> Maybe try the left/right Win+E key or the Apps key, after setting the
> w32-*-modifier variables so as to produce an Emacs modifier from them.

Sorry, I don't know what the last clause means.  What w32-* modifier
variables, and how?

But from your and Martin's other replies in this thread it appears that
`w32-register-hot-key' is useless for Windows 7.  Unless I missed
something.  Is there any case at all where it actually will have an
effect?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 12 Jul 2013 08:56:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 12 04:56:09 2013
Received: from localhost ([127.0.0.1]:49607 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UxZ96-0005ak-JD
	for submit <at> debbugs.gnu.org; Fri, 12 Jul 2013 04:56:08 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:47719)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1UxZ93-0005aA-Vo
 for 14794 <at> debbugs.gnu.org; Fri, 12 Jul 2013 04:56:06 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
 a-mtaout20.012.net.il (HyperSendmail v2007.08) id
 <0MPT00H00FG7N300@HIDDEN> for 14794 <at> debbugs.gnu.org;
 Fri, 12 Jul 2013 11:55:48 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0MPT00HV7FGZCX90@HIDDEN>;
 Fri, 12 Jul 2013 11:55:48 +0300 (IDT)
Date: Fri, 12 Jul 2013 11:55:42 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14794: 24.3.50;
 `w32-register-hot-key' does not work on Windows 7 64-bit
In-reply-to: <51DFBC65.3040303@HIDDEN>
X-012-Sender: halo1@HIDDEN
To: martin rudalics <rudalics@HIDDEN>
Message-id: <83fvvk5f8x.fsf@HIDDEN>
References: <1bda8371-6234-45f4-a2b8-00ac282f2088@default>
 <8361whuk8c.fsf@HIDDEN> <51DFBC65.3040303@HIDDEN>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org, drew.adams@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Fri, 12 Jul 2013 10:20:53 +0200
> From: martin rudalics <rudalics@HIDDEN>
> CC: Drew Adams <drew.adams@HIDDEN>, 14794 <at> debbugs.gnu.org
> 
>  From what I read on such systems an application that does not have
> registered a key itself is allowed to unregister it only if it is
> certified in some way and resides in Program Files.

It's much worse: to unregister a key, you must know its ID (the 2nd
argument to the function).  And how can you that, unless you have
access to the sources of the program that registered the hot key in
the first place?

Moreover, RegisterHotKey can be used so that the hot key is registered
for a specific thread, in which case only that thread can unregister
it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 12 Jul 2013 08:29:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 12 04:29:51 2013
Received: from localhost ([127.0.0.1]:49503 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UxYje-0004Rq-C6
	for submit <at> debbugs.gnu.org; Fri, 12 Jul 2013 04:29:50 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:30602)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1UxYjc-0004RF-Cz
 for 14794 <at> debbugs.gnu.org; Fri, 12 Jul 2013 04:29:48 -0400
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])
 by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id
 r6C8Tggk014844
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Fri, 12 Jul 2013 08:29:42 GMT
Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230])
 by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6C8TfwO004351
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Fri, 12 Jul 2013 08:29:41 GMT
Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60])
 by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6C8TfTE005084;
 Fri, 12 Jul 2013 08:29:41 GMT
MIME-Version: 1.0
Message-ID: <7e5a4e1c-f91b-494e-b7f1-3dff1dcf8b60@default>
Date: Fri, 12 Jul 2013 01:29:40 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: martin rudalics <rudalics@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: RE: bug#14794: 24.3.50;	`w32-register-hot-key' does not work on
 Windows 7 64-bit
References: <1bda8371-6234-45f4-a2b8-00ac282f2088@default>
 <8361whuk8c.fsf@HIDDEN> <51DFBC65.3040303@HIDDEN>
In-Reply-To: <51DFBC65.3040303@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
 12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

>  From what I read on such systems an application that does not have
> registered a key itself is allowed to unregister it only if it is
> certified in some way and resides in Program Files.

Wow.  That's really too bad.  Thanks for the info, though.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 12 Jul 2013 08:21:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 12 04:21:11 2013
Received: from localhost ([127.0.0.1]:49487 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UxYbG-00043g-HG
	for submit <at> debbugs.gnu.org; Fri, 12 Jul 2013 04:21:11 -0400
Received: from mout.gmx.net ([212.227.15.19]:56799)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rudalics@HIDDEN>) id 1UxYbE-00042f-20
 for 14794 <at> debbugs.gnu.org; Fri, 12 Jul 2013 04:21:08 -0400
Received: from [62.47.40.146] ([62.47.40.146]) by mail.gmx.com (mrgmx102) with
 ESMTPA (Nemesis) id 0LswqM-1UChUo2rbm-012Yt4;
 Fri, 12 Jul 2013 10:20:57 +0200
Message-ID: <51DFBC65.3040303@HIDDEN>
Date: Fri, 12 Jul 2013 10:20:53 +0200
From: martin rudalics <rudalics@HIDDEN>
MIME-Version: 1.0
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14794: 24.3.50;
 `w32-register-hot-key' does not work on Windows 7 64-bit
References: <1bda8371-6234-45f4-a2b8-00ac282f2088@default>
 <8361whuk8c.fsf@HIDDEN>
In-Reply-To: <8361whuk8c.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V03:K0:gyUW4jnNdJ/owzGiZ1fXm6AEIAhSv2BL7MCMTPVs87ULu1yqLus
 rQzYvoojFKwN1Acd3lnv/ZfK1jQEr8fTMo1mThtSjopAxnUMK/MoCaqKT0OHDPIK5RCUfQv
 xidt35Mf3wu8Bcjs9VQb/EKqOQ3Rrl7FlCXynDuXGX1ZnEA6hLXNKtbEgbLy130TAx0gS01
 hZxAUDOo9FikexAEgw8eg==
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org, Drew Adams <drew.adams@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

 > Turns out it does make a difference.  This documentation page:
 >
 >   http://msdn.microsoft.com/en-us/library/windows/desktop/ms646309%28v=vs.85%29.aspx
 >
 > explicitly says that the behavior of the underlying API has changed
 > since XP: if the hot key is already registered, the API now fails
 > instead of replacing the old registration with the new.  And Alt+TAB
 > is hooked by the Windows Explorer.  And indeed, on Windows 7 I see
 > that the call to RegisterHotKey API consistently fails with an error
 > code which says "Hot key is already registered".
 >
 > Unless someone knows a way around this (I searched for it, but didn't
 > find any solutions, only complaints), I guess this will remain a
 > "known bug".

 From what I read on such systems an application that does not have
registered a key itself is allowed to unregister it only if it is
certified in some way and resides in Program Files.

martin




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 12 Jul 2013 06:59:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 12 02:59:13 2013
Received: from localhost ([127.0.0.1]:49434 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UxXJv-0000IZ-UV
	for submit <at> debbugs.gnu.org; Fri, 12 Jul 2013 02:59:12 -0400
Received: from mtaout21.012.net.il ([80.179.55.169]:39002)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1UxXJs-0000I6-L5
 for 14794 <at> debbugs.gnu.org; Fri, 12 Jul 2013 02:59:09 -0400
Received: from conversion-daemon.a-mtaout21.012.net.il by
 a-mtaout21.012.net.il (HyperSendmail v2007.08) id
 <0MPT00L009XS2500@HIDDEN> for 14794 <at> debbugs.gnu.org;
 Fri, 12 Jul 2013 09:59:02 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0MPT00K0AA2EYH40@HIDDEN>;
 Fri, 12 Jul 2013 09:59:02 +0300 (IDT)
Date: Fri, 12 Jul 2013 09:58:57 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14794: 24.3.50;
 `w32-register-hot-key' does not work on Windows 7 64-bit
In-reply-to: <c27d6591-74ce-42dc-96dd-bcb01df42b2c@default>
X-012-Sender: halo1@HIDDEN
To: Drew Adams <drew.adams@HIDDEN>
Message-id: <83k3kw5kni.fsf@HIDDEN>
References: <c27d6591-74ce-42dc-96dd-bcb01df42b2c@default>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Thu, 11 Jul 2013 14:12:32 -0700 (PDT)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 14794 <at> debbugs.gnu.org
> 
> > > > Does this work for you with other key combinations, btw?
> > > Dunno.  Can you tell me some key combinations to try?
> > 
> > How about PrintScreen or S-F10?
> 
> I can use S-f10 without any need for `w32-register-hot-key':
> 
> (global-set-key [S-f10] 'forward-char)
> 
> Doesn't that work for you too?

I didn't try.  You asked for ideas, I gave you some.

> And I don't know what the Emacs key for PrintScreen is.

I think [print], but I don't see that we produce it anywhere.

Maybe try the left/right Win+E key or the Apps key, after setting the
w32-*-modifier variables so as to produce an Emacs modifier from them.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 11 Jul 2013 21:12:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 11 17:12:44 2013
Received: from localhost ([127.0.0.1]:48570 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UxOAM-0004Sm-Td
	for submit <at> debbugs.gnu.org; Thu, 11 Jul 2013 17:12:43 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:22459)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1UxOAK-0004SV-GT
 for 14794 <at> debbugs.gnu.org; Thu, 11 Jul 2013 17:12:41 -0400
Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93])
 by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id
 r6BLCXj0022760
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Thu, 11 Jul 2013 21:12:34 GMT
Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86])
 by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6BLCWFn029499
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Thu, 11 Jul 2013 21:12:33 GMT
Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61])
 by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6BLCWkq027467;
 Thu, 11 Jul 2013 21:12:32 GMT
MIME-Version: 1.0
Message-ID: <c27d6591-74ce-42dc-96dd-bcb01df42b2c@default>
Date: Thu, 11 Jul 2013 14:12:32 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: RE: bug#14794: 24.3.50;	`w32-register-hot-key' does not work on
 Windows 7 64-bit
References: <<f99844ca-a167-4256-b310-c851f1d84a42@default>>
 <<83oba86h0q.fsf@HIDDEN>>
In-Reply-To: <<83oba86h0q.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
 12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: ucsinet21.oracle.com [156.151.31.93]
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> > > Does this work for you with other key combinations, btw?
> > Dunno.  Can you tell me some key combinations to try?
>=20
> How about PrintScreen or S-F10?

I can use S-f10 without any need for `w32-register-hot-key':

(global-set-key [S-f10] 'forward-char)

Doesn't that work for you too?

And I don't know what the Emacs key for PrintScreen is.

(global-set-key [PrintScreen] 'forward-char) and
(global-set-key [printscreen] 'forward-char)

have no effect.  Doing `w32-register-hot-key' for either of them
also has no effect.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 11 Jul 2013 19:20:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 11 15:20:09 2013
Received: from localhost ([127.0.0.1]:48422 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UxMPQ-0000Xo-3l
	for submit <at> debbugs.gnu.org; Thu, 11 Jul 2013 15:20:08 -0400
Received: from mtaout21.012.net.il ([80.179.55.169]:56849)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1UxMPL-0000Wt-7r
 for 14794 <at> debbugs.gnu.org; Thu, 11 Jul 2013 15:20:04 -0400
Received: from conversion-daemon.a-mtaout21.012.net.il by
 a-mtaout21.012.net.il (HyperSendmail v2007.08) id
 <0MPS00H00DE5B400@HIDDEN> for 14794 <at> debbugs.gnu.org;
 Thu, 11 Jul 2013 22:19:56 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0MPS00H2QDP8AL30@HIDDEN>;
 Thu, 11 Jul 2013 22:19:56 +0300 (IDT)
Date: Thu, 11 Jul 2013 22:19:49 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14794: 24.3.50;
 `w32-register-hot-key' does not work on Windows 7 64-bit
In-reply-to: <f99844ca-a167-4256-b310-c851f1d84a42@default>
X-012-Sender: halo1@HIDDEN
To: Drew Adams <drew.adams@HIDDEN>
Message-id: <83oba86h0q.fsf@HIDDEN>
References: <f99844ca-a167-4256-b310-c851f1d84a42@default>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Thu, 11 Jul 2013 11:47:17 -0700 (PDT)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 14794 <at> debbugs.gnu.org
> 
> > Does this work for you with other key combinations, btw?
> 
> Dunno.  Can you tell me some key combinations to try?

How about PrintScreen or S-F10?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 11 Jul 2013 18:47:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 11 14:47:28 2013
Received: from localhost ([127.0.0.1]:48389 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UxLto-0007sM-3b
	for submit <at> debbugs.gnu.org; Thu, 11 Jul 2013 14:47:28 -0400
Received: from userp1040.oracle.com ([156.151.31.81]:50523)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1UxLtl-0007s9-CO
 for 14794 <at> debbugs.gnu.org; Thu, 11 Jul 2013 14:47:25 -0400
Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94])
 by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id
 r6BIlI9s031568
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Thu, 11 Jul 2013 18:47:19 GMT
Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231])
 by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6BIlHIb017612
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Thu, 11 Jul 2013 18:47:18 GMT
Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61])
 by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6BIlHQM028575;
 Thu, 11 Jul 2013 18:47:17 GMT
MIME-Version: 1.0
Message-ID: <f99844ca-a167-4256-b310-c851f1d84a42@default>
Date: Thu, 11 Jul 2013 11:47:17 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
Subject: RE: bug#14794: 24.3.50;	`w32-register-hot-key' does not work on
 Windows 7 64-bit
References: <<1bda8371-6234-45f4-a2b8-00ac282f2088@default>>
 <<8361whuk8c.fsf@HIDDEN>>
In-Reply-To: <<8361whuk8c.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
 12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: ucsinet22.oracle.com [156.151.31.94]
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> > I'm using Windows 7 64-bit, if that makes a difference.
> > (And the same code worked fine on Windows XP SP3.)
>=20
> Turns out it does make a difference.  This documentation page:
>=20
>   http://msdn.microsoft.com/en-
> us/library/windows/desktop/ms646309%28v=3Dvs.85%29.aspx
>=20
> explicitly says that the behavior of the underlying API has changed
> since XP: if the hot key is already registered, the API now fails
> instead of replacing the old registration with the new.  And Alt+TAB
> is hooked by the Windows Explorer.  And indeed, on Windows 7 I see
> that the call to RegisterHotKey API consistently fails with an error
> code which says "Hot key is already registered".

Ouch.  Awful.  And hard to believe.

> Unless someone knows a way around this (I searched for it, but didn't
> find any solutions, only complaints), I guess this will remain a
> "known bug".
>=20
> Does this work for you with other key combinations, btw?

Dunno.  Can you tell me some key combinations to try?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 11 Jul 2013 16:38:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 11 12:38:08 2013
Received: from localhost ([127.0.0.1]:48213 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UxJsd-0003Xb-4l
	for submit <at> debbugs.gnu.org; Thu, 11 Jul 2013 12:38:07 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:35138)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1UxJsV-0003Wg-OF
 for 14794 <at> debbugs.gnu.org; Thu, 11 Jul 2013 12:38:00 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
 a-mtaout20.012.net.il (HyperSendmail v2007.08) id
 <0MPS008005UKEK00@HIDDEN> for 14794 <at> debbugs.gnu.org;
 Thu, 11 Jul 2013 19:36:46 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0MPS007IB655XSC0@HIDDEN>;
 Thu, 11 Jul 2013 19:36:42 +0300 (IDT)
Date: Thu, 11 Jul 2013 19:36:35 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14794: 24.3.50;
 `w32-register-hot-key' does not work on Windows 7 64-bit
In-reply-to: <1bda8371-6234-45f4-a2b8-00ac282f2088@default>
X-012-Sender: halo1@HIDDEN
To: Drew Adams <drew.adams@HIDDEN>
Message-id: <8361whuk8c.fsf@HIDDEN>
References: <1bda8371-6234-45f4-a2b8-00ac282f2088@default>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Wed, 10 Jul 2013 15:28:37 -0700 (PDT)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 14794 <at> debbugs.gnu.org
> 
> > > emacs -Q    ; but same problem with older Emacs versions
> > >
> > > (w32-register-hot-key [M-tab])
> > > (w32-register-hot-key [M-S-tab])
> > >
> > > Try C-h k M-TAB.  Try M-TAB.  The key is immediately grabbed by Windows.
> > 
> > Because it is not bound to any command.  If you bind it, it will work
> > as expected.
> 
> Nope, not as far as I can see.  Add this to the recipe:
> 
> (global-set-key [M-tab] 'forward-char)
> 
> Makes no difference.  But perhaps you meant something different?
> 
> I'm using Windows 7 64-bit, if that makes a difference.
> (And the same code worked fine on Windows XP SP3.)

Turns out it does make a difference.  This documentation page:

  http://msdn.microsoft.com/en-us/library/windows/desktop/ms646309%28v=vs.85%29.aspx

explicitly says that the behavior of the underlying API has changed
since XP: if the hot key is already registered, the API now fails
instead of replacing the old registration with the new.  And Alt+TAB
is hooked by the Windows Explorer.  And indeed, on Windows 7 I see
that the call to RegisterHotKey API consistently fails with an error
code which says "Hot key is already registered".

Unless someone knows a way around this (I searched for it, but didn't
find any solutions, only complaints), I guess this will remain a
"known bug".

Does this work for you with other key combinations, btw?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 10 Jul 2013 22:28:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 10 18:28:48 2013
Received: from localhost ([127.0.0.1]:46188 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ux2sS-0003bu-4p
	for submit <at> debbugs.gnu.org; Wed, 10 Jul 2013 18:28:48 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:21403)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1Ux2sP-0003bc-Vq
 for 14794 <at> debbugs.gnu.org; Wed, 10 Jul 2013 18:28:46 -0400
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])
 by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id
 r6AMSdje001981
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Wed, 10 Jul 2013 22:28:40 GMT
Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86])
 by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6AMSc6s000164
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Wed, 10 Jul 2013 22:28:39 GMT
Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65])
 by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6AMSbX5025947;
 Wed, 10 Jul 2013 22:28:37 GMT
MIME-Version: 1.0
Message-ID: <1bda8371-6234-45f4-a2b8-00ac282f2088@default>
Date: Wed, 10 Jul 2013 15:28:37 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Drew Adams <drew.adams@HIDDEN>
Subject: RE: bug#14794: 24.3.50;	`w32-register-hot-key' does not work on
 Windows 7 64-bit
References: <<fe76a82d-41dd-4c28-8204-aa7c1e4a2aef@default>>
 <<83fvvmuyct.fsf@HIDDEN>>
In-Reply-To: <<83fvvmuyct.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
 12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
X-Spam-Score: -2.6 (--)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

> > emacs -Q    ; but same problem with older Emacs versions
> >
> > (w32-register-hot-key [M-tab])
> > (w32-register-hot-key [M-S-tab])
> >
> > Try C-h k M-TAB.  Try M-TAB.  The key is immediately grabbed by Windows=
.
>=20
> Because it is not bound to any command.  If you bind it, it will work
> as expected.

Nope, not as far as I can see.  Add this to the recipe:

(global-set-key [M-tab] 'forward-char)

Makes no difference.  But perhaps you meant something different?

I'm using Windows 7 64-bit, if that makes a difference.
(And the same code worked fine on Windows XP SP3.)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at 14794 <at> debbugs.gnu.org:


Received: (at 14794) by debbugs.gnu.org; 10 Jul 2013 17:20:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 10 13:20:26 2013
Received: from localhost ([127.0.0.1]:45607 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Uwy41-0002iu-CP
	for submit <at> debbugs.gnu.org; Wed, 10 Jul 2013 13:20:26 -0400
Received: from mtaout20.012.net.il ([80.179.55.166]:63745)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <eliz@HIDDEN>) id 1Uwy3x-0002iS-7M
 for 14794 <at> debbugs.gnu.org; Wed, 10 Jul 2013 13:20:22 -0400
Received: from conversion-daemon.a-mtaout20.012.net.il by
 a-mtaout20.012.net.il (HyperSendmail v2007.08) id
 <0MPQ00F00DE9PN00@HIDDEN> for 14794 <at> debbugs.gnu.org;
 Wed, 10 Jul 2013 20:19:23 +0300 (IDT)
Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il
 (HyperSendmail v2007.08) with ESMTPA id
 <0MPQ00FJADGBP810@HIDDEN>;
 Wed, 10 Jul 2013 20:19:23 +0300 (IDT)
Date: Wed, 10 Jul 2013 20:19:14 +0300
From: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#14794: 24.3.50;
 `w32-register-hot-key' does not work on Windows 7 64-bit
In-reply-to: <fe76a82d-41dd-4c28-8204-aa7c1e4a2aef@default>
X-012-Sender: halo1@HIDDEN
To: Drew Adams <drew.adams@HIDDEN>
Message-id: <83fvvmuyct.fsf@HIDDEN>
References: <fe76a82d-41dd-4c28-8204-aa7c1e4a2aef@default>
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 14794
Cc: 14794 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Eli Zaretskii <eliz@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

> Date: Thu, 4 Jul 2013 14:10:45 -0700 (PDT)
> From: Drew Adams <drew.adams@HIDDEN>
> 
> At least it does not work as far as I can tell.
> 
> emacs -Q    ; but same problem with older Emacs versions
> 
> (w32-register-hot-key [M-tab])
> (w32-register-hot-key [M-S-tab])
> 
> Try C-h k M-TAB.  Try M-TAB.  The key is immediately grabbed by Windows. 

Because it is not bound to any command.  If you bind it, it will work
as expected.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Jul 2013 21:11:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 17:11:01 2013
Received: from localhost ([127.0.0.1]:58079 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Uuqns-0007tj-An
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2013 17:11:00 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56338)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1Uuqnp-0007tT-W7
 for submit <at> debbugs.gnu.org; Thu, 04 Jul 2013 17:10:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1Uuqnj-0004gW-VP
 for submit <at> debbugs.gnu.org; Thu, 04 Jul 2013 17:10:52 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, USER_IN_WHITELIST
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:50274)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1Uuqnj-0004gA-II
 for submit <at> debbugs.gnu.org; Thu, 04 Jul 2013 17:10:51 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58059)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1Uuqni-0004NA-E8
 for bug-gnu-emacs@HIDDEN; Thu, 04 Jul 2013 17:10:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1Uuqnh-0004db-Hr
 for bug-gnu-emacs@HIDDEN; Thu, 04 Jul 2013 17:10:50 -0400
Received: from aserp1040.oracle.com ([141.146.126.69]:22339)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1Uuqnh-0004aA-1o
 for bug-gnu-emacs@HIDDEN; Thu, 04 Jul 2013 17:10:49 -0400
Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237])
 by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id
 r64LAlLB023269
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
 for <bug-gnu-emacs@HIDDEN>; Thu, 4 Jul 2013 21:10:48 GMT
Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231])
 by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r64LAlTi018910
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
 for <bug-gnu-emacs@HIDDEN>; Thu, 4 Jul 2013 21:10:47 GMT
Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56])
 by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r64LAklA001675
 for <bug-gnu-emacs@HIDDEN>; Thu, 4 Jul 2013 21:10:47 GMT
MIME-Version: 1.0
Message-ID: <fe76a82d-41dd-4c28-8204-aa7c1e4a2aef@default>
Date: Thu, 4 Jul 2013 14:10:45 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; `w32-register-hot-key' does not work on Windows 7 64-bit
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7  (607090) [OL
 12.0.6668.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: acsinet21.oracle.com [141.146.126.237]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

At least it does not work as far as I can tell.

emacs -Q    ; but same problem with older Emacs versions

(w32-register-hot-key [M-tab])
(w32-register-hot-key [M-S-tab])

Try C-h k M-TAB.  Try M-TAB.  The key is immediately grabbed by Windows.=20



In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-07-01 on LEG570
Bzr revision: 113246 lekktu@HIDDEN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=3D/c/usr --enable-checking CFLAGS=3D'-O0 -g3'
 CPPFLAGS=3D'-DGLYPH_DEBUG=3D1 -I/c/usr/include''




Acknowledgement sent to Drew Adams <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#14794; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.