Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!linus!necntc!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.emacs Subject: Re: gnumacs bindings Message-ID: <1347@haddock.ISC.COM> Date: Fri, 9-Oct-87 00:10:05 EDT Article-I.D.: haddock.1347 Posted: Fri Oct 9 00:10:05 1987 Date-Received: Sun, 11-Oct-87 12:12:19 EDT References: <8710082121.AA02323@icst-cmr.arpa.ARPA> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 27 In article <8710082121.AA02323@icst-cmr.arpa.ARPA> rbj@ICST-CMR.ARPA (Root Boy Jim) writes: >What I did [on a terminal with a hard-to-reach ESC key] was: > >(global-set-key "`" 'ESC-prefix) >(global-set-key "\e`" 'self-insert-command) > >Note that there is no command bound to M-`. Typed twice, it self inserts. This also doesn't solve the problem of ESC as a secondary character: C-x ESC and M-ESC still require the real ESC key in your model. I had a similar problem on a certain braindamaged terminal that I probably shouldn't mention by name because it bears our company's logo. The ESC key is hidden below the RETURN key! (Its predecessor, the INtext I, had the same problem.) I hacked something using unread-command-char to make "\eE\r" (sent by the key in the position where ESC belongs) look like ESC, and grudgingly rebound repeat-complex-command to "\C-x\eE\r" and eval-expression to "\e\eE\r", but kept getting bitten by things like the argument to C-h c. I decided that the solution had to be at a lower level, and considered redefining the read-char function. But before I had a chance to try this, I got myself a better terminal. (All this was before I knew about keyboard-translate-table, and that wouldn't have let me remap multi-character keys anyway.) Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint