Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!rutgers!sri-spam!mordor!lll-tis!ames!sdcsvax!ucsdhub!hp-sdd!hplabs!hplabsc!mayer From: mayer@hplabsc.UUCP (Niels Mayer) Newsgroups: comp.emacs Subject: Re: DEL/^H switch in GNU EMACS? Message-ID: <2103@hplabsc.UUCP> Date: Wed, 24-Jun-87 21:27:06 EDT Article-I.D.: hplabsc.2103 Posted: Wed Jun 24 21:27:06 1987 Date-Received: Fri, 26-Jun-87 07:14:56 EDT References: <620@uhccux.UUCP> Reply-To: mayer@hplabsc.UUCP (Niels Mayer) Distribution: na Organization: Hewlett-Packard Labs, Palo Alto, CA Lines: 27 Try doing (load "term/bobcat") in your .emacs file. In fact, that file (...dist-18.xx/lisp/term/bobcat.el) uses the keyboard translate table to perform the swap as mentioned in a previous article. Here's the file.... note the amazing lack of any copyright bogosity in the preamble. ----- ;;; HP terminals usually encourage using ^H as the rubout character (let ((the-table (make-string 128 0))) (let ((i 0)) (while (< i 128) (aset the-table i i) (setq i (1+ i)))) ;; Swap ^H and DEL (aset the-table ?\177 ?\^h) (aset the-table ?\^h ?\177) (setq keyboard-translate-table the-table)) ----- I load this into site-init.el in most versions of gnuemacs that I have running.... I even find it useful for non hp keyboards such as the Zenith/Heath 19/29, Sun 1/2/3, and MicrovaxII's that plague the Stanford campus. I am conditioned to use ^H as backspace and mnemonics don't make sense when your brain runs on behaviourism. -- Niels.