XEmacs 21.2 "Demeter" [Lucid] (sparc-sun-solaris2.5) of Mon Mar 15
1999 on ahoward
I posted this question to comp.emacs.xemacs, but I thought this
mailing list might be a good place for it, also. I get this behavior
with XEmacs 21.2b13, and I think also with some version of XEmacs 20.0.
As described below, I know how to fix this in GNU Emacs, but not in
XEmacs. Is this difference in the two emacsen a bug or feature?
I'm having a problem defining a keymap in XEmacs; the quick version
is: I want the key "a" to be bound to something, and I want "A" to be
undefined. When I try to carry this out, though, hitting "A" just
does whatever "a" is bound to.
Details:
I initialize the keymap with
(defvar my-map nil) ;; initialize the keymap
(define-prefix-command 'my-map) ;; initialize the keymap
(define-key my-map "a" 'self-insert-command) ;; bind "a"
I check to see how "A" is bound:
(lookup-key my-map "A")
nil
Then I test it: I bind backquote to my-map and see what happens.
(global-set-key "`" 'my-map)
Now hitting `a inserts a. Hitting `A inserts a. Hitting `b gives the
message
` b is not defined.
How can I get `A to act like `b? I've tried
(define-key my-map "A" 'undefined)
and
(suppress-keymap my-map)
Each of these does what I want with GNU Emacs, but not with XEmacs.
--
John H. Palmieri palmieri.2(a)nd.edu
..I must be a VETERINARIAN..