Marc Aurel <4-tea-2(a)bong.saar.de> writes:
since running X on Red Hat LiNUX 5.1 with the de-latin1 keymap, I
get
this boring "dead-circumflex not defined" whenever I touch the
"^"-key
(and I don't mean Control) in XEmacs. The key works fine in other
applications (e.g. pressing "^", then space will give me the circumflex
in xterm) - so I imagine I should correct the key binding in XEmacs.
You should... Wheee...:-( Martin and I already spent days on this.
Everytime we fix it it breaks again. The problem is there are too many
different deadkeys setup all to test them all :-(
Could you eval the following
(x-keysym-on-keyboard-p 'dead-circumflex)
and mail me the result.
Then apply the following patch, redump XEmacs and see if this works
Index: x-init.el
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs-20/lisp/x-init.el,v
retrieving revision 1.8
diff -u -u -r1.8 x-init.el
--- x-init.el 1998/05/16 05:06:55 1.8
+++ x-init.el 1998/07/20 17:22:19
@@ -208,6 +208,7 @@
(x-define-dead-key dead-cedilla compose-cedilla-map)
(x-define-dead-key dead-diaeresis compose-diaeresis-map)
(x-define-dead-key dead-circum compose-circumflex-map)
+ (x-define-dead-key dead-circumflex compose-circumflex-map)
(x-define-dead-key dead-tilde compose-tilde-map)
)
I can see two ways to do this: a) binding the circumflex character to
the
dead-circumflex key, b) using dead-circumflex the same way dead-anything
is used (with X-compose).
b) is what XEmacs is supposed to do already.
I would've been *so* happy if I would've been able to figure
out how
method a) works. But I wasn't. The info manual has at least a dozen
examples on how to use global-set-key to set a key to a command. But I
want to set it to a character sequence. The FAQ talks quite a bit about
key bindings - but, you might've guessed - no hint on how to redefine a
key to insert a simple character. [For the records: the last thing I
tried was: global-set-key ^ self-insert-command]
The trick is to use a string instead of a command
M-x global-set-key RET [dead-circumflex] RET "^" RET
you will have to paste the string "^" in from an Xterm.
OTOH: I think I shouldn't see a message like
"dead-circumflex not
defined" after a fresh installation. Has Red Hat messed up something or
is it something in my local setup?
Difficult question it is partly an omission in XEmacs, a mess from
XFree86 and our friends from the late X consortium and you being you
scared to scared to go for MULE :-)
(Note the smiley, we are in dire need of poeple with a setup like you
(the rest of Germany has long since disabled deadkeys in XFree). If
you want to know, MULE enables XIM, which makes the deadkey processing
be handled by the X libraries where it shuuld).
Keep on testing (I am afraid it so addictive you'll start to learn
elisp anyway.
Jan