From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Override Windows default Win-* key combinations when using Emacs Date: Tue, 05 Jan 2016 19:05:02 +0200 Message-ID: <83y4c43qkh.fsf@gnu.org> References: <568BBC58.50702@aprikoodi.fi> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1452013514 7404 80.91.229.3 (5 Jan 2016 17:05:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2016 17:05:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jussi Lahdenniemi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 05 18:05:05 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aGV2e-0006Fy-S0 for ged-emacs-devel@m.gmane.org; Tue, 05 Jan 2016 18:05:05 +0100 Original-Received: from localhost ([::1]:50629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGV2e-000899-Aq for ged-emacs-devel@m.gmane.org; Tue, 05 Jan 2016 12:05:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGV2b-000891-Iu for emacs-devel@gnu.org; Tue, 05 Jan 2016 12:05:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGV2W-000372-HR for emacs-devel@gnu.org; Tue, 05 Jan 2016 12:05:01 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGV2W-00036v-Dp; Tue, 05 Jan 2016 12:04:56 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3897 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aGV2V-00083k-NP; Tue, 05 Jan 2016 12:04:56 -0500 In-reply-to: <568BBC58.50702@aprikoodi.fi> (message from Jussi Lahdenniemi on Tue, 5 Jan 2016 14:51:36 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197664 Archived-At: > From: Jussi Lahdenniemi > Date: Tue, 5 Jan 2016 14:51:36 +0200 > > I finally got around to submitting a patch I wrote some four years ago > that enables Emacs users on Windows to override the default Windows key > combinations reserved by the operating system. Especially the newer > Windowses (7, 8, 10) define quite a large number of Win+* hotkeys to a > variety of shell functions, restricting the available S-* keys on Emacs. > > This is accomplished by running an external process (supersuper.exe) > that captures keypresses, suppressing unwanted ones from the system, and > informing the currently active Emacs process about them as necessary. > All Win key combinations are thus blocked and made available for Emacs, > except Win+L which is handled on a lower level of the operating system > and cannot be intercepted. > > The feature is enabled by executing (w32-supersuper-run t). nil as the > argument disables the functionality. Thank you for your contribution. It is large enough to require legal paperwork; I can send you the forms off-list if you agree. As for the patch: why does this have to be an external program? Can't Emacs itself do this job? Doing part of Emacs's keyboard input in a separate process has several downsides, so I think it should be avoided if possible. Also, did you try this with the latest Emacs sources? The way keyboard input works in Emacs on Windows has changed several months ago. Finally, will this also work in the console (a.k.a. "TTY") session, or just in GUI sessions?