tbl@k.cs.cmu.edu (Thomas Lord) (03/09/87)
Posting-Front-End: GNU Emacs 18.36.5 of Sat Feb 14 1987 on k.cs.cmu.edu (berkeley-unix) randy@seismo wanted to know how to impliment a control prefix. The best suggestion is to get a new terminal emulator. The second best suggestion(s) have involved keymap mucking. Here is a suggestion from out of left field that may also help those of you porting gnu-emacs to your favourite window manager: In the source file keyboard.c is a function called kbd_buffer_store_char(). The function is called for each character received by emacs, and is a good safe place to impliment out-of-band control over emacs. For the case at hand, kbd_buffer_store_char can set a flag when it sees "control prefix" and treat the next character as its control equivalent. This is a dubious way to do "control prefix", but is useful for other pursuits. For example, to bring emacs up under a local window manager, we wrote a terminal emulator that transmits funny control sequences on a resize. Since a resize can occur no matter what keymap is active, there is no way to handle these resizes in lisp. Instead, they are caught and acted upon in kbd_buffer_store_char. Tom Lord tbl@k.cs.cmu.edu