Re: more alt key questions

2002-04-07 Thread Richard Cobbe
Lo, on Saturday, April 6, Bob Thibodeau did write:

> On Sat, Apr 06, 2002 at 04:16:35PM -0600, Richard Cobbe wrote:

> > First step: see what keysym your alt keys are generating.  Run xev (from
> > the xbase-clients package), make sure the new window has focus, and hit
> > both alt keys.  If you want the plastic bump labeled `alt' on your
> > keyboard to act as meta in emacs, then you should see something like the
> > following:



> > KeyRelease event, serial 27, synthetic NO, window 0x161,
> > root 0x31, subw 0x0, time 223020366, (56,121), root:(810,145),
> > state 0x8, keycode 113 (keysym 0xffe8, Meta_R), same_screen YES,
   ~~~  ~
> > XLookupString gives 0 characters:  ""



> Events are received, 64 and 113.

Since you've already fixed this, I'm just nitpicking.  The relevant
details here are not the keycodes but the keysyms.  Your keyboard
generates, in hardware, a number corresponding to each key (= physical
piece of plastic) on the board; this number is the keycode.  The X
server receives this and maps it into a keysym.  The server sends the
keysym to the application with input focus; apps should never see raw
keycodes.  (On PC hardware, anyway; not sure about how other systems
work off the top of my head.)

For this situation, you'd want to see the keys generating keysyms Meta_L
and Meta_R.

Richard


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



SOLVED Re: more alt key questions

2002-04-07 Thread Bob Thibodeau
After sleeping on it, I realized that I needed to combine
some of the solutions I had tried. I had to switch meta <-> alt
AND turn off wm grabbing. I had thought I did that, but
apparently not.

Thanks, everybody!

Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: more alt key questions

2002-04-06 Thread Bob Thibodeau
64 and 113

On Sat, Apr 06, 2002 at 04:16:35PM -0600, Richard Cobbe wrote:
> Lo, on Saturday, April 6, Bob Thibodeau did write:
> 
> > On Sat, Apr 06, 2002 at 08:32:59PM +0200, Carel Fellinger wrote:
> > > On Sat, Apr 06, 2002 at 04:09:00AM -0500, Bob Thibodeau wrote:
> > > > I just went back through the archives to questions I thought
> > > > would help. They did, but for a different problem ( which
> > > > I wasn't having).
> > > > 
> > > > I used to have a 'meta' key in Emacs. I also used to do
> > > > Ctrl-A, Alt-d in xterms to erase a command. Now my alt
> > > > key doesn't affect the letters at all (alt-x prints 'x').
> > > > 
> > > > I can still Ctrl-Alt-Fx to switch consoles and
> > > > Alt-TAB switches windows in Icewm.
> > > 
> > > Could it be that your window manager thinks alt keys are for him?
> > 
> > I tried without a window manager with the same same results.
> > No menu, of course, but no effect from the alt keys.
> 
> First step: see what keysym your alt keys are generating.  Run xev (from
> the xbase-clients package), make sure the new window has focus, and hit
> both alt keys.  If you want the plastic bump labeled `alt' on your
> keyboard to act as meta in emacs, then you should see something like the
> following:
> 
> KeyPress event, serial 27, synthetic NO, window 0x161,
> root 0x31, subw 0x0, time 223019973, (56,121), root:(810,145),
> state 0x0, keycode 64 (keysym 0xffe7, Meta_L), same_screen YES,
> XLookupString gives 0 characters:  ""
> 
> KeyRelease event, serial 27, synthetic NO, window 0x161,
> root 0x31, subw 0x0, time 223020047, (56,121), root:(810,145),
> state 0x8, keycode 64 (keysym 0xffe7, Meta_L), same_screen YES,
> XLookupString gives 0 characters:  ""
> 
> KeyPress event, serial 27, synthetic NO, window 0x161,
> root 0x31, subw 0x0, time 223020300, (56,121), root:(810,145),
> state 0x0, keycode 113 (keysym 0xffe8, Meta_R), same_screen YES,
> XLookupString gives 0 characters:  ""
> 
> KeyRelease event, serial 27, synthetic NO, window 0x161,
> root 0x31, subw 0x0, time 223020366, (56,121), root:(810,145),
> state 0x8, keycode 113 (keysym 0xffe8, Meta_R), same_screen YES,
> XLookupString gives 0 characters:  ""
> 
> If you see different keysyms, then your X keyboard settings are off.
> Check your X server configuration file or use xmodmap(1) or xkeycaps to
> adjust this.
> 
> If you don't see any events in response to you hitting the Alt keys,
> then something (probably your window manager) is intercepting the keys
> before it gets to the server.  Adjust your WM config.  (Based on your
> description above, though, I don't think this is happening.)
> 
> HTH,
> 
> Richard

Events are received, 64 and 113.

Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: more alt key questions

2002-04-06 Thread Richard Cobbe
Lo, on Saturday, April 6, Bob Thibodeau did write:

> On Sat, Apr 06, 2002 at 08:32:59PM +0200, Carel Fellinger wrote:
> > On Sat, Apr 06, 2002 at 04:09:00AM -0500, Bob Thibodeau wrote:
> > > I just went back through the archives to questions I thought
> > > would help. They did, but for a different problem ( which
> > > I wasn't having).
> > > 
> > > I used to have a 'meta' key in Emacs. I also used to do
> > > Ctrl-A, Alt-d in xterms to erase a command. Now my alt
> > > key doesn't affect the letters at all (alt-x prints 'x').
> > > 
> > > I can still Ctrl-Alt-Fx to switch consoles and
> > > Alt-TAB switches windows in Icewm.
> > 
> > Could it be that your window manager thinks alt keys are for him?
> 
> I tried without a window manager with the same same results.
> No menu, of course, but no effect from the alt keys.

First step: see what keysym your alt keys are generating.  Run xev (from
the xbase-clients package), make sure the new window has focus, and hit
both alt keys.  If you want the plastic bump labeled `alt' on your
keyboard to act as meta in emacs, then you should see something like the
following:

KeyPress event, serial 27, synthetic NO, window 0x161,
root 0x31, subw 0x0, time 223019973, (56,121), root:(810,145),
state 0x0, keycode 64 (keysym 0xffe7, Meta_L), same_screen YES,
XLookupString gives 0 characters:  ""

KeyRelease event, serial 27, synthetic NO, window 0x161,
root 0x31, subw 0x0, time 223020047, (56,121), root:(810,145),
state 0x8, keycode 64 (keysym 0xffe7, Meta_L), same_screen YES,
XLookupString gives 0 characters:  ""

KeyPress event, serial 27, synthetic NO, window 0x161,
root 0x31, subw 0x0, time 223020300, (56,121), root:(810,145),
state 0x0, keycode 113 (keysym 0xffe8, Meta_R), same_screen YES,
XLookupString gives 0 characters:  ""

KeyRelease event, serial 27, synthetic NO, window 0x161,
root 0x31, subw 0x0, time 223020366, (56,121), root:(810,145),
state 0x8, keycode 113 (keysym 0xffe8, Meta_R), same_screen YES,
XLookupString gives 0 characters:  ""

If you see different keysyms, then your X keyboard settings are off.
Check your X server configuration file or use xmodmap(1) or xkeycaps to
adjust this.

If you don't see any events in response to you hitting the Alt keys,
then something (probably your window manager) is intercepting the keys
before it gets to the server.  Adjust your WM config.  (Based on your
description above, though, I don't think this is happening.)

HTH,

Richard


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: more alt key questions

2002-04-06 Thread Bob Thibodeau
On Sat, Apr 06, 2002 at 08:32:59PM +0200, Carel Fellinger wrote:
> On Sat, Apr 06, 2002 at 04:09:00AM -0500, Bob Thibodeau wrote:
> > I just went back through the archives to questions I thought
> > would help. They did, but for a different problem ( which
> > I wasn't having).
> > 
> > I used to have a 'meta' key in Emacs. I also used to do
> > Ctrl-A, Alt-d in xterms to erase a command. Now my alt
> > key doesn't affect the letters at all (alt-x prints 'x').
> > 
> > I can still Ctrl-Alt-Fx to switch consoles and
> > Alt-TAB switches windows in Icewm.
> 
> Could it be that your window manager thinks alt keys are for him?

I tried without a window manager with the same same results.
No menu, of course, but no effect from the alt keys.

Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: more alt key questions

2002-04-06 Thread Carel Fellinger
On Sat, Apr 06, 2002 at 04:09:00AM -0500, Bob Thibodeau wrote:
> I just went back through the archives to questions I thought
> would help. They did, but for a different problem ( which
> I wasn't having).
> 
> I used to have a 'meta' key in Emacs. I also used to do
> Ctrl-A, Alt-d in xterms to erase a command. Now my alt
> key doesn't affect the letters at all (alt-x prints 'x').
> 
> I can still Ctrl-Alt-Fx to switch consoles and
> Alt-TAB switches windows in Icewm.

Could it be that your window manager thinks alt keys are for him?

-- 
groetjes, carel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



more alt key questions

2002-04-06 Thread Bob Thibodeau
I just went back through the archives to questions I thought
would help. They did, but for a different problem ( which
I wasn't having).

I used to have a 'meta' key in Emacs. I also used to do
Ctrl-A, Alt-d in xterms to erase a command. Now my alt
key doesn't affect the letters at all (alt-x prints 'x').

I can still Ctrl-Alt-Fx to switch consoles and
Alt-TAB switches windows in Icewm.

I have a Windoze key which brings up the menu (which
behavior transfered to the alt key when I tried an earlier
suggestion to somebody else's question).

How do I get my alt key back the way it used to work?

Thanks,
Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]