Re: Specialization of Nedit for X11
Re: Specialization of Nedit for X11
- Subject: Re: Specialization of Nedit for X11
- From: Ben Byer <email@hidden>
- Date: Fri, 16 Nov 2007 21:01:50 -0800
On Nov 16, 2007, at 8:04 AM, Jamie Kennea wrote:
On Nov 15, 2007, at 6:19 PM, Nathaniel Gray wrote:
Making a simple ~/.xmodmap file with the following single line gets
NEdit working like I expect:
keycode 66 = Alt_L
Thanks for posting this, this also fixes an issue in xemacs where it
produces the following verbose message on startup:
(1) (key-mapping/warning)
The meanings of the modifier bits Mod1 through Mod5 are determined
by the keysyms used to control those bits. Mod1 does NOT always
mean Meta, although some non-ICCCM-compliant programs assume that.
(2) (key-mapping/warning)
Two distinct modifier keys (such as Meta and Hyper) cannot generate
the same modifier bit, because Emacs won't be able to tell which
modifier was actually held down when some other key is pressed. It
won't be able to tell Meta-x and Hyper-x apart, for example. Change
one of these keys to use some other modifier bit. If you intend for
these keys to have the same behavior, then change them to have the
same keysym as well as the same modifier bit.
(3) (key-mapping/warning) XEmacs: Mod1 is being used for both
Mode_switch and Alt.
This is actually really easy to fix in the source code, too. If I
comment out the line in darwinKeyboard.c that says
/* Define this to use Alt for Mode_switch. */
#define ALT_IS_MODE_SWITCH 1
Then the default output of xmodmap changes from
shift Shift_L (0x40), Shift_R (0x44)
lock Caps_Lock (0x41)
control Control_L (0x43), Control_R (0x46)
mod1 Mode_switch (0x42), Alt_R (0x45)
mod2 Meta_L (0x3f), Meta_R (0x47)
mod3
mod4
mod5
to
shift Shift_L (0x40), Shift_R (0x44)
lock Caps_Lock (0x41)
control Control_L (0x43), Control_R (0x46)
mod1 Alt_L (0x42), Alt_R (0x45)
mod2 Meta_L (0x3f), Meta_R (0x47)
mod3
mod4
mod5
... and that XEmacs warning message goes away, too. I'll switch the
default for 1.2a12 and beyond, and we can see if it breaks anything.
(That's my personal favorite debugging technique, anyway.)
--
Ben Byer
CoreOS / BSD Technology Group, XDarwin maintainer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden