home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / emacs / 3512 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.9 KB  |  49 lines

  1. Organization: Carnegie Mellon, Pittsburgh, PA
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!spool.mu.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!sb41+
  3. Newsgroups: comp.emacs
  4. Message-ID: <0f05vcO00VoR8B7WVR@andrew.cmu.edu>
  5. Date: Tue, 10 Nov 1992 20:16:24 -0500 
  6. From: Steven Robert Bates <sb41+@andrew.cmu.edu>
  7. Subject: Re: emacs over a modem on a mac keyboard
  8. In-Reply-To: <EJH.92Nov10101917@khonshu.colorado.edu>
  9. References: <EJH.92Nov10101917@khonshu.colorado.edu>
  10. Lines: 37
  11.  
  12. Excerpts from netnews.comp.emacs: 10-Nov-92 emacs over a modem on a
  13. mac.. Edward J. Hartnett@khons (1577)
  14.  
  15. > But when I
  16. > tried that same thing with C-h it wouldn't accept C-h by itself, it
  17. > wanted some other key to be pressed afterwards. When I hit C-h emacs
  18. > showed that as C-h-  and waited for another key. It's hard to explain,
  19. > but try it and see. Can anyone explain this strange behavior to me?
  20.  
  21. Yes.  C-h is what is called a prefix command.  Prefix commands are
  22. basicly keymaps.  In the case of help-command it is an alist of the help
  23. keys and their functions.  The way it works is when a prefix command in
  24. envoked
  25. the next key's function binding is taken for the prefix command's
  26. keymap.  This is how C-x C-c work.  If you want to change the binding of
  27. C-h, it looks like you have to either to add the following to your
  28. .emacs:
  29.  
  30. (global-set-key "\C-h" 'backward-delete-char)  ; note no more help key
  31.  
  32. You will probaly want to bind the symbol help-command to some other key,
  33. so can still get help.
  34.  
  35. Or you can do an "esc esc" or M-x eval-expression and type the same line
  36. as you would add to your .emacs.
  37.  
  38. Hope this helps.
  39. Steven Robert Bates
  40. Student User Consultant
  41. Cluster Manager Wean 5209
  42.     
  43.     sb41@andrew.cmu.edu
  44.     R746SB41@VB.CC.CMU.EDU
  45.     cevin@CMU.EDU
  46.  
  47. It has to warm up...     So it can kill you!
  48.     -Gomez Adams
  49.