Path: utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!indri!lll-winken!uunet!mcvax!hp4nl!ruuinf!piet From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: gnu.emacs.bug Subject: Re: Rebinding Arrow Keys Message-ID: <1296@ruuinf.cs.ruu.nl> Date: 27 Apr 89 08:45:27 GMT References: Sender: piet@ruuinf.cs.ruu.nl Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Distribution: gnu Organization: Dept of Computer Science, University of Utrecht, Holland Lines: 26 In-reply-to: clamen@CLAMEN.AVALON.CS.CMU.EDU (Stewart Clamen) In article , clamen@CLAMEN (Stewart Clamen) writes: ` `One of my users has rebound ^F, but wants the rightarrow key to still `map to 'forward-char. Problem is, the GNU Emacs/X interface `translates the arrow keys DIRECTLY into ^F/^B/^P/^N. Here's the code, `from internal_socket_read() in src/x11term.c . ` `----- ` if (IsFunctionKey(keysym) || ` IsMiscFunctionKey(keysym)) { ` strcpy(mapping_buf,"["); ` strcat(mapping_buf,stringFuncVal(keysym)); `#ifdef sun ` strcat(mapping_buf,"z"); `#else ` strcat(mapping_buf,"~"); `#endif /* sun */ Another problem that I have with this code is that it binds the function keys to "^[[..." which is difficult to use as "^[[" is not a prefix. Also some other keys cannot be used, they are simply thrown away. -- Piet van Oostrum, Dept of Computer Science, University of Utrecht Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands Telephone: +31-30-531806. piet@cs.ruu.nl (mcvax!hp4nl!ruuinf!piet)