mwc@raybed2.UUCP (MICHAEL CATTELL) (10/05/89)
Question: I am running X11 on a VAXstation 3200, emacs is up and running fine. My problem is I cannot get the keys on the number keypad to bind, I have tried different settings in termcap and everything else I could think of. Has anyone else experienced this problem or know how to fix it ?? Thanks
tom@ssd.harris.com (Tom Horsley) (10/09/89)
I had to go into the emacs source to find out why it could not bind all the
keys when I used it on a Sun and you probably have the same problem. It is
complicated to explain in detail, but basically emacs (at least the Gnu
emacs version 18.52 we are using) refuses to acknowledge any keypress events
except those belonging to function key keysyms (XK_F1, XK_F2, etc). It also
refuses to look at the shift state for function keys.
There are a couple of exceptions to the above description. The Meta key can
be used as a modifier for function keys (but not shift or control) and the
up, down, right, and left keys are explicitly checked for prior to falling
into the code that throws away everything except function keys.
In order to use random keys then, you are forced to use xmodmap to map the
keys you want to bind into function keys, then you can bind those keys in
your .emacs file.
There is a comment in the X support code that (correctly) states that emacs
should use the XRebindKeysym() routine to support attaching arbitrary
strings to arbitrary combinations of keys and shift states, but it does not
do it, it just talks about it.
I keep hearing rumors about the wonderful X support in version 19, so
presumably this problem is fixed there.
--
=====================================================================
usenet: tahorsley@ssd.harris.com USMail: Tom Horsley
compuserve: 76505,364 511 Kingbird Circle
genie: T.HORSLEY Delray Beach, FL 33444
======================== Aging: Just say no! ========================cks@white.toronto.edu (Chris Siebenmann) (10/11/89)
[A Reminder: please don't make things Distribution: usa unless they
are really only of interest to people in the USA!]
You can also hack up x11term.c to use XKeysymToString() to look up
and name keys according to their X11 names instead of arbitrary
confusing and machine-dependant numbers. My functions keys, keypad
keys, and random non-alpha keys generate ESC [ <keysym or hex value> ~
these days; predictable, easily bindable, and corresponds to what xev
will tell you. Best yet, the code gets simpler.
Diffs for 18.55's x11term.c are available from me by email (they have
to be uuencoded, since the unmodified x11term.c contains literal
escape characters), or you can get the whole new x11term.c by
anonymous ftp from snow.white.toronto.edu [128.100.2.160].
This is all fixed in version 19, of course.
--
"I shall clasp my hands together and bow to the corners of the world."
Number Ten Ox, "Bridge of Birds"
Chris Siebenmann ...!utgpu!{ncrcan,ontmoh!moore}!ziebmef!cks
cks@white.toronto.edu or ...!utgpu!{,csri!}cksrose@tci.bell-atl.com (Bob Rose) (10/12/89)
Like a revious poster, I'm having trouble with Emacs under X11. I'm on a DecStation 3100, the problem is a strange one; when I hit a control-s, it will accept the first or second character I type, and find them, but then it starts ignoring further characters and it beeps at me! It's getting confused badly! Any ideas? Emacs version is 18.51.9 thanks, Bob Rose
jg@max.crl.dec.com (Jim Gettys) (10/13/89)
This has been answered at least 5 times before, but here goes again.... It is a bug in 18.51 GNU emacs, at least on PMAX. On later versions of GNU, search works fine. We run 18.54 here at CRL, and search is completely happy. Jim Gettys Digital Equipment Corporation Cambridge Research Laboratory
cks@white.toronto.edu (Chris Siebenmann) (10/14/89)
[A reminder: please don't give your message a "usa" distribution unless it is truly only of interest to people in the United States.] | Like a revious poster, I'm having trouble with | Emacs under X11. I'm on a DecStation 3100, ... | Emacs version is 18.51.9 This seems to be a popular question, and the answer is that versions of GNU Emacs prior to 18.54 or 18.55 had problems on DECStation 3100s; the problems will go away when you upgrade to 18.55. -- "I shall clasp my hands together and bow to the corners of the world." Number Ten Ox, "Bridge of Birds" Chris Siebenmann ...!utgpu!{ncrcan,ontmoh!moore}!ziebmef!cks cks@white.toronto.edu or ...!utgpu!{,csri!}cks