From owner-freebsd-questions Mon Dec 27 16:54: 1 1999 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id C25BD14DA6 for ; Mon, 27 Dec 1999 16:53:56 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id LAA62028; Tue, 28 Dec 1999 11:23:30 +1030 (CST) Date: Tue, 28 Dec 1999 11:23:30 +1030 From: Greg Lehey To: Mark Ovens Cc: Tony Wells , freebsd-questions@FreeBSD.ORG Subject: Re: Emacs and the backspace key Message-ID: <19991228112330.K1316@freebie.lemis.com> References: <3867CFAD.D817A0CB@journalstar.com> <19991227214550.K1290@marder-1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19991227214550.K1290@marder-1> WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, 27 December 1999 at 21:45:50 +0000, Mark Ovens wrote: > On Mon, Dec 27, 1999 at 02:44:29PM -0600, Tony Wells wrote: >> When I ssh into a remote machine (FBSD 3.3-Stable) and run emacs, it >> thinks that the backspace key is actually C-h. 'echo $TERM' on the >> remote machine shows my terminal type as xterm. >> >> My question is: how do I convince emacs that my backspace key is really >> my backspace key and not C-h? >> > > See questions 112 & 113 in the Emacs FAQ (C-h F). Note that these numbers change with the version. In my version (20.4.1) the key binding questions start at 116. The real issue is that the backspace key *is* c-h. One of the more illogical things about GNU Emacs is that Stallman chose to use c-h for a different function than erasing. In order to make the backspace key work as you presumably want it to (delete previous character), you need something like this in your .emacs: (global-set-key (quote [C-backspace]) (quote backward-delete-char-untabify)) Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message