[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rebinding C-H in lisp-listeners
Date: Sun, 3 Nov 1991 20:52 EST
From: starnet!bass!lakin@apple.com (Fred Lakin)
Is it just a matter of finding the right comtab?
Thanks to Mike McMahon for beating me to looking up the right formula
(below).
This seems to work for zmacs:
(set-comtab-return-undo *zmacs-comtab*
'(#\CONTROL-H COM-RUBOUT
#\META-H COM-BACKWARD-KILL-WORD
)
... and *standard-comtab* gets mini-buffers.
If you want this binding to apply to Zmacs, mini-buffers, and other Zwei
contexts as well (like editing messages in Zmail), making the keybinding
in ZWEI:*STANDARD-COMTAB* is all you need to do.
Zwei comtabs have a hierarchy that inherits very much like flavor
inheritance. The Zwei comtab [ZWEI:*STANDARD-COMTAB*] is the base one
for all Zwei contexts. In Zmacs, the Zmacs comtab [ZWEI:*ZMACS-COMTAB*]
is the one used, and it inherits from the Zwei comtab. Likewise the
minibuffer comtab. Likewise the somewhat oddly named Reply comtab,
which is the one used when editing message drafts in Zmail. And so on.
Date: Mon, 4 Nov 1991 21:29 EST
From: MMcM@TITANIA.Oberon.COM (Mike McMahon)
Try
(SI:ADD-IE-COMMAND 'SI:COM-RUBOUT-CHARACTER #\CONTROL-H)
(SI:ADD-IE-COMMAND 'SI:COM-RUBOUT-WORD #\CONTROL-META-H)
The input editor doesn't use the same commands as the text editor.