Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!lll-tis!oodis01!uplherc!utah-gr!cdr.utah.edu!moore From: moore%cdr.utah.edu.uucp@utah-gr.UUCP (Tim Moore) Newsgroups: comp.emacs Subject: Re: the DEL key from hell Message-ID: <2555@utah-gr.UUCP> Date: 22 May 88 02:58:50 GMT References: <1975@tansei.cc.u-tokyo.JUNET> Sender: news@utah-gr.UUCP Reply-To: moore%cdr.utah.edu.UUCP@utah-gr.UUCP (Tim Moore) Organization: University of Utah CS Dept Lines: 27 In article <1975@tansei.cc.u-tokyo.JUNET> c30845@tansei.cc.u-tokyo.JUNET (c30845) writes: > >I am a fairly new user to Emacs (version 18.47). I cannot >send a DEL from my terminal to the host machine (the network > >I've side-stepped this by using define-key to assign an unused >control character to \177. This works fine except in >an incremental search. Instead of backing up a character, A more general way to redefine keys is to use the (almost) undocumented keyboard-translate-table. This a string M characters long; characters with ascii codes < M get mapped to the character at that position in the string (starting at 0). As an example, here's code from my .emacs file to map DEL to ^h (backspace) and bind help to something else: ;;; map \^h to delete (setq keyboard-translate-table "\0\1\2\3\4\5\6\7\177") (define-key global-map "\M-?" 'help-command) (define-key global-map "\M-?a" 'apropos) Hope this helps. -Tim Moore 4560 M.E.B. internet:moore@cs.utah.edu University of Utah ABUSENET:{ihnp4, decvax}!utah-cs!moore Salt Lake City, UT 84112