delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/14/07:20:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
Message-Id: <F8B797B6-1032-4AB7-A9AF-E98D69C64A06@letterboxes.org>
From: Leo <leoslists AT letterboxes DOT org>
To: cygwin AT cygwin DOT com
Mime-Version: 1.0 (Apple Message framework v936)
Subject: How to I generate a hyper or super modifier in cygwin emacs under X
Date: Wed, 14 Mar 2012 22:19:52 +1100
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi there

I try to set up emacs in a way that I can use key bindings like H-x  
(Hyper + character x). In NT emacs the alt key could be configured to  
issue the hyper or super modifier code and NOT the Meta modifier.

In Cygwin emacs under X I am not able to achieve this: Normal behavior  
is that Alt issues Meta (M-x for example),  but then there is no  
distinction between alt and escape. :-(

I'm not sure wether this is an emacs or an X server issue, but I  
*think* it is an emacs issue (therefor I send it to the cygwin list  
and not to the cygwin-xfree list): Via the X tool xmodemap I tried to  
set the "mod1" modifier, but in emacs it gets mapped to "Meta".

When xmodmap prints the following mapping:
	shift       Shift_L (0x32),  Shift_R (0x3e)
	lock        Caps_Lock (0x42)
	control     Control_L (0x25),  Control_R (0x6d)
	mod1        Alt_R (0x71)
	mod2
	mod3
	mod4
	mod5

emacs understands Alt as meta. So far so good.

Than I changed it via an .xmodmaprc file it to "mod2", so xmodmap  
prints the following:
	shift       Shift_L (0x32),  Shift_R (0x3e)
	lock        Caps_Lock (0x42)
	control     Control_L (0x25),  Control_R (0x6d)
	mod1
	mod2        Alt_R (0x71)
	mod3
	mod4
	mod5

but Cgwin emacs still maps Alt to meta! I tried mod3-mod5 as well, but  
no luck, emacs seems to map all modifier apart from control and shift  
to meta, instead mapping some to Hyper (H- ) or Super (S- )

Any workaround? or do I do something wrongly?

Many thanks, Leo


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019