unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: emacs-devel@gnu.org
Subject: Re: something is eating C-M-x
Date: Mon, 22 Nov 2021 06:20:38 -0800	[thread overview]
Message-ID: <86zgpwnufd.fsf@stephe-leake.org> (raw)
In-Reply-To: <874k85m3om.fsf@telefonica.net> ("Óscar Fuentes"'s message of "Mon, 22 Nov 2021 01:31:21 +0100")

Óscar Fuentes <ofv@wanadoo.es> writes:

> Stephen Leake <stephen_leake@stephe-leake.org> writes:
>
>> I've just installed a new VMWare virtual machine on my Windows box to
>> run Debian.
>>
>> Something is eating C-M-x, so Emacs doesn't see it. Very frustrating
>> when trying to redefine elisp functions!
>>
>> I'm using the LXDE window manager, and I've checked
>> ~/.config/openbox/lxde-rc.xml; that does not define C-A-x.
>>
>> I've searched in various ways for "hotkeys" and similar terms, but have
>> not found what the problem is.
>>
>> Any hints?
>>
>> Is there some X debug program that shows how key events are handled?
>
> See xev

That shows that C-M-x is being eaten by something; it generates a
KeymapNotify event for the root window, while C-M-s (for example)
generates the expected KeyPress and KeyRelease events.

The docs for setxkbmap hints that perhaps C-M-x is being used to change
between keyboard maps, but "setxkbmap -query" says that's not it.

So there must be some other lowlevel keyboard event mapping going on, by
Debian or something.

> But maybe Vmware itself is eating C-M, which IIRC by default is used for
> releasing keyboard+mouse input.

VMWare does use C-M when not followed by another key to switch to the
host, but C-M-<key> works normally; I use C-M-up to switch windows in
Emacs, for example.

> See menu Edit -> Preferences -> Hotkeys.

That apparently shows the content of the <keyboard> section of
~/.config/openbox/lxde-rc.xml, which I mentioned above; it is an easier
way to see what that file is doing. It does not show a mapping for
C-A-x.

> You can remap that key combination or use a special shortcut for
> passing C-M to the guest OS. Search the 'net for "vmware workstation
> control-alt".

I found this page:

https://docs.vmware.com/en/VMware-Workstation-Player-for-Windows/16.0/com.vmware.player.win.using.doc/GUID-974B0CC8-B082-4D56-9758-E74D25DDBCD1.html

Which says that no C-A-key should work, which is simply wrong.


-- 
-- Stephe



      reply	other threads:[~2021-11-22 14:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-21 23:40 something is eating C-M-x Stephen Leake
2021-11-22  0:27 ` Tim Cross
2021-11-22  0:31 ` Óscar Fuentes
2021-11-22 14:20   ` Stephen Leake [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=86zgpwnufd.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --cc=emacs-devel@gnu.org \
    --cc=ofv@wanadoo.es \
    /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 public inbox

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

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).