Stepan Nemec writes:
"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
> Stepan Nemec writes:
>
> > could please someone explain to me how I can bind the ESC key in
> > XEmacs?
>
> (setq meta-prefix-char -1) might help. See the C-h v doc for that
> variable. I don't do this myself so no promises here ....
Yeah, it didn't help. (And FWIW, in GNU Emacs rebinding ESC works even
with `meta-prefix-char' set to the default `27'.)
Sure, but GNU Emacs keymaps are known to be buggy with respect to C-g
at least. I wouldn't be surprised if the same issues affect ESC.
What exactly are you doing and what is happening? It works for me,
with
(define-key global-map 'escape (lambda () (interactive) (message "It
worked!")))
(setq meta-prefix-char -1)
Now typing ESC immediately gives the message "It worked!" (XEmacs is
a recent build from hg, exact revision on request). Then
(define-key global-map 'escape esc-map)
restores ESC to a prefix character (but I don't know if behavior is
completely normal), and I finished with
(setq meta-prefix-char 27)
(Still haven't fixed my VM config....)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/mailman/listinfo/xemacs-beta