Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!agate!ucbvax!IFI.UIO.NO!obh From: obh@IFI.UIO.NO Newsgroups: comp.emacs Subject: prefix-character for gnuemacs Message-ID: <8802062136.AA08932@skakke> Date: 6 Feb 88 21:36:34 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 33 A student here at the University of Oslo uses Gnuemacs. He has a special problem: He can only use one of his fingers; thus he's unable to type control-characters. He wants a character he can type to `prefix` the next character as a control-character. (He uses a vt100 and a SUN). I can imagine several solutions to this problem, but none of them are really elegant. Has anybody found the `right` way? The solutions I come up with are: Put such a control-prefix-character into every keymap pointing to a special function which either: 1. Read the next character, controllify it and parse the rest of the input (ie: rebuild the command-loop in lisp) with offset from keymap. or 2. Read the next character, controllify that character, appends it to the (this-command-keys), and let emacs read this again, thus using emacs own command loop. This may be achieved by rewriting Gnuemacs unread_command_char to be a pointer to a string, and let a new function operate on this string. Internet: obh@ifi.uio.no (OBH)