Re: Emacs Using Option as meta key
Re: Emacs Using Option as meta key
- Subject: Re: Emacs Using Option as meta key
- From: "James K. Lowden via X11-users" <email@hidden>
- Date: Thu, 31 Mar 2022 13:36:17 -0400
On Thu, 31 Mar 2022 08:36:18 -0500
Perry Smith via X11-users <email@hidden> wrote:
> I?m no expert either but my **guess** is the key stroke is converted
> into an "X11 Event? (I think they are called) on the local side by
> the X11 server ? which would be XQuartz in this case.
Yes, the X11 server running on your Mac is handling all UI events, both
keyboard and display. If you have a doubt, see what xev tells you.
ISTR the XQuartz preferences used to let you choose whether Meta was
invoked by Command or Option, but I don't see it now in my version.
I use emacs all day long on remote machines via XQuartz. I just use
Command for Meta because defaults. The only real inconvenience is that
Option+Key sometimes means something to MacOS, and isn't transmitted by
X11 to the client. In those cases, I use Esc as my Meta proxy, if you
see what I mean.
In case you haven't already, you want "Meta Sends Escape" in xterm,
too, so that Command+b moves back one word in readline.
As a practical matter, I don't see what you can do better than adapt
to the system you're using.
As a technical matter, it's just a small matter of programming. Every
keystroke sends something. Emacs "arbitrarily" assigns the "A" event
to "A", and C-a to "move-beginning-of-line". Nothing but time and
patience prevents you from mapping all the graphical-character events
produced by Option+Key to their accustomed Command+Key functions).
Or you could change the X11 keyboard map with xmodmap. That would
change what emacs receives, so you wouldn't have to change emacs. To
me, that sounds like a perfect GSoC project. For someone else.
HTH.
--jkl
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden