home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / emacs / help / 5126 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!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: binding cntrl-SPC to set-mark-command
  5. Message-ID: <1992Dec18.222242.15043@digi.lonestar.org>
  6. Date: 18 Dec 92 22:22:42 GMT
  7. References: <DLA.92Dec16224504@se05.wg2.waii.com>
  8. Organization: DSC Communications Corp, Plano, TX
  9. Lines: 25
  10.  
  11. In article <DLA.92Dec16224504@se05.wg2.waii.com> dla@se05.wg2.waii.com (Doug Acker) writes:
  12. >I'm  trying  to  bind  cntrl-spc  to  set-mark-command  (its  bound to
  13. >self-insert-command right now), so I put this in my .emacs:
  14. >
  15. >(global-set-key "\C-\020" 'set-mark-command)
  16. >
  17. >but this doesn't seem to help .. what am I doing wrong?
  18.  
  19. Some terminals/keyboards ignore the state of the control key and simply
  20. generate a space character when the spacebar is pressed.  Other
  21. terminals/keyboards generate a NUL character (C-@, x0) when CTRL-Spacebar is
  22. pressed.
  23.  
  24. It appears that, on your keyboard, CTRL-Spacebar generates a space character.
  25. This means you are out of luck, unless your operating system and/or terminal
  26. drivers support keyboard queries which can report back the state of the
  27. control key on the terminal you are using.  If so, with a little work, you
  28. should be able to hack the source code to GNU Emacs to return a NUL character,
  29. instead of a space, when such an event takes place.
  30.  
  31. -- 
  32. ----------------------------------------------------------------------------
  33. Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
  34. DSC Communications Corporation   Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
  35. ----------------------------------------------------------------------------
  36.