cmkuo@cs.utexas.edu (Chin-Ming Kuo) (03/27/89)
I am looking for in intelligent way to remap the Backspace key on HP9000/350 to DEL in Emacs with X11. Seems to me the x-rebind-key in X10 does not exist anymore and globally rebind ^h to DEL is not acceptable. Any info will be appreciated, -- Chin-Ming Kuo cmkuo@cs.utexas.edu cs.utexas.edu!cmkuo
Duchier-Denys@cs.yale.edu (Denys Duchier) (03/27/89)
In article <320@mohawk.cs.utexas.edu>, cmkuo@cs (Chin-Ming Kuo) writes: > I am looking for in intelligent way to remap the Backspace key on > HP9000/350 to DEL in Emacs with X11. Seems to me the x-rebind-key > in X10 does not exist anymore and globally rebind ^h to DEL is not > acceptable. See my posting of x-rebind-keysym on comp.emacs (I think...or was it arpa.emacs-bugs?). --Denys
mayer@hplabsz.HPL.HP.COM (Niels Mayer) (03/28/89)
In article <320@mohawk.cs.utexas.edu> cmkuo@cs.utexas.edu (Chin-Ming Kuo) writes: >I am looking for in intelligent way to remap the Backspace key on >HP9000/350 to DEL in Emacs with X11. Seems to me the x-rebind-key >in X10 does not exist anymore and globally rebind ^h to DEL is not >acceptable. In your ~/.emacs, add (load "term/bobcat") or just do "M-X load-library term/bobcat" ------------------------------------------------------------------------------- Niels Mayer -- hplabs!mayer -- mayer@hplabs.hp.com Human-Computer Interaction Department Hewlett-Packard Laboratories Palo Alto, CA. *
shankar@hpclscu.HP.COM (Shankar Unni) (03/28/89)
> I am looking for in intelligent way to remap the Backspace key on > HP9000/350 to DEL in Emacs with X11. Seems to me the x-rebind-key > in X10 does not exist anymore and globally rebind ^h to DEL is not > acceptable. The following works fine for me: (let ((the-table (make-string 128 0))) (let ((i 0)) (while (< i 128) (aset the-table i i) (setq i (1+ i)))) (aset the-table ?\177 ?\^h) ; Swap <BS> and DEL (aset the-table ?\^h ?\177) ; Swap DEL and <BS> (setq keyboard-translate-table the-table)) --- Shankar Unni. HP Computer Language Lab.