On Friday 06 April 2001 07:12, you wrote:
Pimenov Yuri wrote:
> my xemacs (last beta) don't recognize Alt key at all! it's echoes "A-x
> not defined"...
Then it does recognise the Alt key. However, XEmacs doesn't use the
Alt key for any of its default bindings; it's only the Meta key which
is used.
NB: XEmacs will translate Alt to Meta, BUT only if you don't have a
Meta key.
there is no key labeled "Meta" on my keybord for sure... ;-))
> this problem doesn't happen with XEmacs 21.1
> i'm using cvs KDE, XFree86 4.0.3 with XKB extension on (russian layout).
>
> PS. LeftAlt is defined to Meta in XF86Config...
That is only one part of a complex mechanism.
What does "xmodmap -pm" say? What does "xev" say when you press the
key? These will tell you how the keyboard is actually configured.
[icct@CS-Proc icct]$ xmodmap -pm
xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40)
mod2 Num_Lock (0x4d)
mod3 Mode_switch (0x71)
mod4 Meta_L (0x73)
mod5 Scroll_Lock (0x4e)
xev says:
KeyPress event, serial 27, synthetic NO, window 0x2e00001,
root 0x3b, subw 0x2e00002, time 3038488845, (47,31), root:(889,572),
state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 characters: ""
KeyRelease event, serial 27, synthetic NO, window 0x2e00001,
root 0x3b, subw 0x2e00002, time 3038488968, (47,31), root:(889,572),
state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 characters: ""
the keyboard section in XF86Config:
Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "AutoRepeat" "250 30"
Option "LeftAlt" "Meta"
# Option "RightAlt" "Meta"
# ScrollLock Compose
Option "RightCtl" "Compose"
Option "LeftCtl" "Control"
Option "XkbRules" "xfree86"
Option "XkbCompat" ""
# Option "XkbSymbols" "us(pc104)"
Option "XkbModel" "pc104"
Option "XkbLayout" "ru"
Option "XkbVariant" "winkeys"
Option "XkbOptions" "grp:ctrl_shift_toggle"
EndSection
do you mean i have to comment out "option LeftAlt..."?
are there any ways to substitute Alt key to Meta key?