home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / emacs / help / 3792 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!news.dell.com!uudell!bigtex!texsun!digi!kgallagh
  2. From: kgallagh@digi.lonestar.org (Kevin Gallagher)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: key binding problem
  5. Message-ID: <1992Aug20.051446.5072@digi.lonestar.org>
  6. Date: 20 Aug 92 05:14:46 GMT
  7. References: <1992Aug17.1277.2525@channel1>
  8. Distribution: gnu
  9. Organization: DSC Communications Corp, Plano, TX
  10. Lines: 31
  11.  
  12. In article <1992Aug17.1277.2525@channel1> "rick sheridan" <rick.sheridan@channel1.com> writes:
  13. >I'm using Demacs (DOS Emacs) and am having a problem getting one key
  14. >bound:  C-pgup.  I got a routine from this newsgroup that rotates thru
  15. >the buffers.  It has two functions, swap-to-next-buffer and
  16. >swap-to-prev-buffer, that I want to bind to C-pgdn and C-pgup
  17. >respectively.
  18. >
  19. >C-pgdn generates the key code `C-@ "v"' that I put in my IBMPC.EL file
  20. >as
  21. >
  22. >        (define-key ibmpc-map "v" 'swap-to-next-buffer)
  23. >
  24. >which works perfectly.  C-pgup generates `C-@ "ESC"' which I put in as:
  25. >
  26. >        (define-key ibmpc-map "ESC" 'swap-to-next-buffer)
  27. >
  28. >When I byte compiled IBMPC.EL, I got no errors but I also got no C-pgup.
  29.  
  30. Try
  31.  
  32.         (define-key ibmpc-map "M-C-d" 'swap-to-prev-buffer)
  33.  
  34. When I press C-PgUp on my system, while in demacs, view-lossage (C-h l)
  35. reports that it saw the characters
  36.  
  37.         C-@ M-C-d
  38. -- 
  39. ----------------------------------------------------------------------------
  40. Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
  41. DSC Communications Corporation   Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
  42. ----------------------------------------------------------------------------
  43.