unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: david@adboyd.com (J. David Boyd)
To: help-gnu-emacs@gnu.org
Subject: Re: super and hyper keys acting funny in emacs
Date: Mon, 24 Jun 2013 09:21:45 -0400	[thread overview]
Message-ID: <m9hid2rb8x06.fsf@W0144758.usac.mmm.com> (raw)
In-Reply-To: jwvppve88jl.fsf-monnier+gmane.emacs.help@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>>     state 0x40, keycode 66 (keysym 0xffed, Hyper_L), same_screen YES,
> [...]
>>     state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
>
> Notice how the "state" is the same: both your Hyper_L and Super_L keys
> are assigned to the same modifier (presumably "Hyper").
> Take a look at the output of "xmodmap".
>
> Yes, X11 has an additional level of mapping from what you expect: the
> name of the key does not in itself determine if it's a modifier and
> which modifier it is.  Instead, there's an additional mapping from keys
> to modifiers.
>
>
>         Stefan

Thanks for the tip.  I was able to create an .Xmodmap file, containing

keycode 115 = Super_L
remove mod4 = Super_L
add mod3 = Super_L
keycode 117 = Super_R
remove mod4 = Super_R
add mod3 = Super_R

and now, after running that, emacs sees Hyper and Super as different keys.
I'm very happy.

Dave




      reply	other threads:[~2013-06-24 13:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-21 20:31 super and hyper keys acting funny in emacs J. David Boyd
2013-06-21 21:56 ` Peter Dyballa
2013-06-22 15:35 ` Stefan Monnier
2013-06-24 13:21   ` J. David Boyd [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m9hid2rb8x06.fsf@W0144758.usac.mmm.com \
    --to=david@adboyd.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).