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

  1. Path: sparky!uunet!channel1![rick.sheridan@channel1.com]
  2. From: "rick sheridan" <rick.sheridan@channel1.com>
  3. Newsgroups: gnu.emacs.help
  4. Subject: key binding problem
  5. Message-ID: <1992Aug17.1277.2525@channel1>
  6. Date: 17 Aug 92 16:20:18 EST
  7. Reply-To: "rick sheridan" <rick.sheridan@channel1.com>
  8. Distribution: gnu
  9. Organization: Channel 1 Communications
  10. Lines: 30
  11.  
  12. I'm using Demacs (DOS Emacs) and am having a problem getting one key
  13. bound:  C-pgup.  I got a routine from this newsgroup that rotates thru
  14. the buffers.  It has two functions, swap-to-next-buffer and
  15. swap-to-prev-buffer, that I want to bind to C-pgdn and C-pgup
  16. respectively.
  17.  
  18. C-pgdn generates the key code `C-@ "v"' that I put in my IBMPC.EL file
  19. as
  20.  
  21.         (define-key ibmpc-map "v" 'swap-to-next-buffer)
  22.  
  23. which works perfectly.  C-pgup generates `C-@ "ESC"' which I put in as:
  24.  
  25.         (define-key ibmpc-map "ESC" 'swap-to-next-buffer)
  26.  
  27. When I byte compiled IBMPC.EL, I got no errors but I also got no C-pgup.
  28. Emacs reported it as unbound.   In place of "ESC" I then tried both
  29. "\C-@\e" and even "\C-@\033" (ESC = decimal 27, octal 033).  Still no
  30. C-pgup.
  31.  
  32. I would appreciate any help with this problem.
  33.  
  34. advTHANKSance
  35.  
  36. --Rick
  37.  
  38. rick.sheridan@channel1.com
  39. --
  40. Channel 1 (R)   Cambridge, MA
  41.  
  42.