home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / emacs / help / 5489 < prev    next >
Encoding:
Text File  |  1993-01-24  |  2.1 KB  |  45 lines

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