[11082] in Athena Bugs

home help back first fref pref prev next nref lref last post

function keys

daemon@ATHENA.MIT.EDU (cfields@MIT.EDU)
Mon Sep 27 15:36:26 1993

From: cfields@MIT.EDU
Date: Mon, 27 Sep 93 15:36:09 -0400
To: dbwilson@MIT.EDU, bugs@MIT.EDU
Cc: wchuang@MIT.EDU


> On an Athena Sparc emacs, the function keys F11 and F12 have no effect.
> They do have an effect on the Sparc xterm and Sparc xev.

This is due to a bug in the header files supplied by Sun. Emacs uses
the X macro IsFunctionKey() to determine whether to treat a key such
as F11 as a function key. That function is defined as:

#define IsFunctionKey(keysym) \
  (((unsigned)(keysym) >= XK_F1)       && ((unsigned)(keysym) <= XK_F35))

Unfortunately, the F11 and F12 keys on the Sun were defined as
SunXK_F36 and SunXK_F37, which do not fall in the range checked by
IsFunctionKey; the macro should have been extended by Sun to include
those cases. XK_F11 and XK_F12 are actually the Stop and Again keys, I
assume for historical reasons.

If you have not yet found and are interested in a workaround for this
problem (that is, you want to bind the F11 and F12 keys in emacs to do
something) let me know and I'll see what I can come up with.

Craig

home help back first fref pref prev next nref lref last post