all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: david@adboyd.com (J. David Boyd)
To: help-gnu-emacs@gnu.org
Subject: super and hyper keys acting funny in emacs
Date: Fri, 21 Jun 2013 16:31:10 -0400	[thread overview]
Message-ID: <m9hi4ncr435d.fsf@W0144758.usac.mmm.com> (raw)


I'm running the latest 32 bit cygwin under windows 7, and having a funny
problem with my hyper and super keys when I run emacs.


I've got my xserver configured to set the windows keys on the keyboard to be
super, and the caps lock to by hyper.


The output from 'setxkbmap -print' is:

xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+inet(pc105)+altwin(alt_super_win)+capslock(hyper)"       };
        xkb_geometry  { include "pc(pc105)"     };
};

and if I run XEV, and press capslock I get:

KeyPress event, serial 32, synthetic NO, window 0xc00001,
    root 0x131, subw 0x0, time 8145997, (504,324), root:(2162,400),
    state 0x0, keycode 66 (keysym 0xffed, Hyper_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0xc00001,
    root 0x131, subw 0x0, time 8146122, (504,324), root:(2162,400),
    state 0x40, keycode 66 (keysym 0xffed, Hyper_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False


and if I press Left Windows key I get:

KeyPress event, serial 32, synthetic NO, window 0xc00001,
    root 0x131, subw 0x0, time 8148993, (504,324), root:(2162,400),
    state 0x0, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0xc00001,
    root 0x131, subw 0x0, time 8149102, (504,324), root:(2162,400),
    state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False



All perfect so far.  When I'm in a terminal, my keys look fine.

So, then I start up 'emacs -Q', 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), and I get 'H-d is undefined',
not 's-d is undefined', which is what I expected to see.

I've glanced through the src for emacs in what seems to be the pertinent
functions, but nothing jumps up at me that would cause emacs to combine the
setting for the Windows and CapsLock keys to be both be what CapsLock is set to.

Any ideas how I might resolve this?

Dave





             reply	other threads:[~2013-06-21 20:31 UTC|newest]

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

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

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

  git send-email \
    --in-reply-to=m9hi4ncr435d.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.