home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / emacs / 3941 < prev    next >
Encoding:
Internet Message Format  |  1993-01-10  |  1.9 KB

  1. Xref: sparky comp.emacs:3941 gnu.emacs.help:5315
  2. Path: sparky!uunet!usc!howland.reston.ans.net!spool.mu.edu!umn.edu!uum1!gw.digibd.com!digibd!zuhause!bruce
  3. From: bruce@zuhause.MN.ORG (Bruce Albrecht)
  4. Newsgroups: comp.emacs,gnu.emacs.help
  5. Subject: Re: Num. keypad bindings for Demacs-how 2 change without affecting arrows?
  6. Distribution: world
  7. Message-ID: <bruce.0dvx@zuhause.MN.ORG>
  8. References:  <1993Jan6.002415.13780@trl.oz.au>
  9. Date: 10 Jan 93 17:08:47 CST
  10. Organization: Society to Stamp Out Bogus Organizations
  11. Lines: 27
  12.  
  13. In article <1993Jan6.002415.13780@trl.oz.au> smadden@titan.trl.OZ.AU (Steve Madden) writes:
  14. >G'Day people,
  15. >         I've got a little question regarding keypad mappings in
  16. >Demacs. Basically, the situation is as follows: I have a PC on which I
  17. >do some programming under Demacs. I also use this PC to log onto a
  18. >mainframe which runs Emacs. On the mainframe, I have a e-lisp file which
  19. >maps varous functions onto the PC's numeric keypad, such as PgUp/Dn,
  20. >BOF/EOF, BOL/EOL, kill-region, kill-line, kill-word, ... etc. Now the
  21. >bit which involves the question. I would like to make the two keypads
  22. >behave in exactly the same way, but there seems to be a snag under
  23. >Demacs. How do I distinguish the arrow keys and PgUp/Dn/Home/End keys on
  24. >the numeric keypad fom those in the arrow keypad, and the other six key
  25. >keypad above it on the pc keyboard so that I can just remap the numeric
  26. >versions ? Is it even possible under Demacs ?? Any guidelines most
  27. >gratefully accepted,
  28.  
  29. You need to tell ANSI.SYS that you have an extended keyboard (/X option), 
  30. and in the emacs/lisp/term/ibm_pc.el file that loads the function keys,
  31. you need to map the numeric keypad keys to something other than the separate
  32. arrow key/PgUp/... block.  For the routine that remaps the keys back to the
  33. original IBM character sequences, you'll want to remake the extended key
  34. blocks to the same as the numeric key blocks.
  35.  
  36. --
  37. bruce@zuhause.mn.org
  38. Youth is wasted on the young.
  39.  
  40.