From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9646 invoked by alias); 24 Jun 2013 18:08:30 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 9634 invoked by uid 89); 24 Jun 2013 18:08:30 -0000 X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.1 Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 24 Jun 2013 18:08:29 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UrBBh-0002v9-Us for cygwin-xfree@cygwin.com; Mon, 24 Jun 2013 20:08:26 +0200 Received: from 169.15.137.27 ([169.15.137.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Jun 2013 20:08:25 +0200 Received: from david by 169.15.137.27 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Jun 2013 20:08:25 +0200 To: cygwin-xfree@cygwin.com From: david@adboyd.com (J. David Boyd) Subject: Re: cygwin and xwin and super and hyper Date: Mon, 24 Jun 2013 18:08:00 -0000 Message-ID: References: <51C2DF91.1010605@dronecode.org.uk> <51C8521B.9050507@dronecode.org.uk> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/24.3 (cygwin) X-SW-Source: 2013-06/txt/msg00053.txt.bz2 Jon TURNEY writes: > On 21/06/2013 16:56, J. David Boyd wrote: >> Jon TURNEY writes: >>> On 19/06/2013 22:27, J. David Boyd wrote: >> >> All perfect so far. >> >> So, when I start up emacs, and press C-h k, then, for example, Capslock-d, >> (hyper-d) I get 'H-d is undefined'. Yeah. >> >> Then I press C-h k, then Left-Win-d, (super-d), I get 'H-d is undefined', and >> not 's-d is undefined', which is what I expected to see. >> >> Any ideas how I might resolve this? > > Looking at the xev output for Hyper-d and Super-d, it seems they have the same > state (modifier) value. > > This is because xkeyboard-config seems to place super and hyper on the same > modifier, mod4, as can be seen looking at the output of 'xmodmap -pm' > >> $ xmodmap -pm >> xmodmap: up to 5 keys per modifier, (keycodes in parentheses): >> >> shift Shift_L (0x32), Shift_R (0x3e) >> lock >> control Control_L (0x25), Control_R (0x6d) >> mod1 Alt_L (0x40), Alt_R (0x74), Meta_L (0x9c) >> mod2 Num_Lock (0x4d) >> mod3 >> mod4 Hyper_L (0x42), Super_L (0x73), Super_R (0x75), Super_L (0x7f), Hyper_L (0x80) >> mod5 Mode_switch (0x8), ISO_Level3_Shift (0x7c) > > And it seems that emacs only looks at the modifier state, not the actual > proceeding keypress. > > A workaround for this is to move Hyper_L to the unused mod3 modifier. > >> $ xmodmap -e "remove mod4 = Hyper_L" >> >> $ xmodmap -e "add mod3 = Hyper_L" >> >> $ xmodmap -pm >> xmodmap: up to 3 keys per modifier, (keycodes in parentheses): >> >> shift Shift_L (0x32), Shift_R (0x3e) >> lock >> control Control_L (0x25), Control_R (0x6d) >> mod1 Alt_L (0x40), Alt_R (0x74), Meta_L (0x9c) >> mod2 Num_Lock (0x4d) >> mod3 Hyper_L (0x42), Hyper_L (0x80) >> mod4 Super_L (0x73), Super_R (0x75), Super_L (0x7f) >> mod5 Mode_switch (0x8), ISO_Level3_Shift (0x7c) > > It's probably a bug that this doesn't work as expected, but I'm not sure in what. Thanks, that just what I did, and now it works fine. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/