Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!sri-unix!sri-spam!ames!ptsfa!hoptoad!unisoft!cerebus!fai!wjvax!brett From: brett@wjvax.UUCP (Brett Galloway) Newsgroups: comp.emacs Subject: Re: key bindings for Micro-EMACS Message-ID: <1000@wjvax.wjvax.UUCP> Date: Fri, 21-Aug-87 14:25:21 EDT Article-I.D.: wjvax.1000 Posted: Fri Aug 21 14:25:21 1987 Date-Received: Sun, 23-Aug-87 22:32:05 EDT References: <292@mundoe.mu.oz> Reply-To: brett@wjvax.UUCP (Brett Galloway) Organization: Watkins-Johnson Co., San Jose, Calif. Lines: 32 In article <292@mundoe.mu.oz> glf@mundoe.mu.oz (Giuseppe Fiusco) writes: >Every so often there is some discusion about how to make MicroEMACS >recognise a certein key sequence eg. the directional keys on a VT100. > >When MicroEMACS is started up the first thing it does is read a startup >file that contains information regarding how particular functions are >bound to a particular series of key-strokes. It uses something like the >following sequence : > >[ Command Function Key Strokes ] I was faced with the same problem, but I addressed it in a slightly-different manner, which I believe is more consistent with original usage. I defined a new function 'define-key`, which let one name a character sequence. After that, that name became a function-key, which could be bound to a function. With this method, the desired define-key commands can be put in the MicroEMACS startup script, and then the resulting function keys can be bound to the desired functions. No additional function key table is necessary. In addition, I modified the termcap driver automatically to generate arrow key function keys (I used FN-LEFT,FN-RIGHT,FN-UP,FN-DOWN) and bind the respective functions to them. That is very handy. Unfortunately, I cannot post diffs, because I made lots of other modifications as part of the same effort, and I was working on an old version anyhow (3.7i). The changes outlined above aren't very hard, however. -- ------------- Brett Galloway {pesnta,twg,ios,qubix,turtlevax,tymix,vecpyr,certes,isi}!wjvax!brett