home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!doc.ic.ac.uk!agate!ames!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!digi!kgallagh
- From: kgallagh@digi.lonestar.org (Kevin Gallagher)
- Newsgroups: gnu.emacs.help
- Subject: Re: Demacs questions
- Message-ID: <1993Jan25.034238.5839@digi.lonestar.org>
- Date: 25 Jan 93 03:42:38 GMT
- References: <BANATI.93Jan22100739@kobra.cc.lut.fi>
- Distribution: gnu.emacs
- Organization: DSC Communications Corp, Plano, TX
- Lines: 33
-
- In article <BANATI.93Jan22100739@kobra.cc.lut.fi> banati@lut.fi (Jozsef Banati) writes:
- > Could someone help me please to solve the following problems in
- > Demacs? I use it on a 386 PC.
- > [stuff deleted]
- >(2) How can I bind "delete-backward-char" to BackSpace (BackArrow?) key?
- > Now Ctrl-BackSpace calls this function. I think, normally "help" is
- > assigned to the BackSpace key in Demacs, but bobcat swaps it.
-
- On a PC, the Backspace key and the Left Arrow (BackArrow) keys do NOT generate
- the same characters. There are independent of each other.
-
- After loading bobcat.el, the Backspace key still generates a C-h and the
- CTRL-Backspace key combination still generates a DEL character, as before.
- The file bobcat.el tell Demacs to INTERPRET a C-h character AS IF a DEL
- character were entered and to INTERPRET a DEL character AS IF a C-h were
- entered. So, after bobcat.el is loaded, pressing the Backspace key will
- invoke delete-backward-char. Pressing CTRL-Backspace will invoke help.
-
- Now, if you really want to bind delete-backward-char to the left arrow key, it
- can be done, but I can't imagine WHY you would want to do this! Nevertheless,
- this should work:
-
- (defun my-key-bindings ()
- (define-key global-map "\C-@K" 'delete-backward-char))
- (setq term-setup-hook 'my-key-bindings)
-
- in your .emacs file.
-
- --
- ----------------------------------------------------------------------------
- Kevin Gallagher kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
- DSC Communications Corporation Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
- ----------------------------------------------------------------------------
-