🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #3614

Re: Num. keypad bindings for Demacs-how 2 change without affecting arrows?

#3614
From: Bruce Albrecht
Date: Sun, 10 Jan 1993 23:08
26 lines
1961 bytes
In article <1993Jan6.002415.13780@trl.oz.au> smadden@titan.trl.OZ.AU (Steve Madden) writes:
>G'Day people,
>	     I've got a little question regarding keypad mappings in
>Demacs. Basically, the situation is as follows: I have a PC on which I
>do some programming under Demacs. I also use this PC to log onto a
>mainframe which runs Emacs. On the mainframe, I have a e-lisp file which
>maps varous functions onto the PC's numeric keypad, such as PgUp/Dn,
>BOF/EOF, BOL/EOL, kill-region, kill-line, kill-word, ... etc. Now the
>bit which involves the question. I would like to make the two keypads
>behave in exactly the same way, but there seems to be a snag under
>Demacs. How do I distinguish the arrow keys and PgUp/Dn/Home/End keys on
>the numeric keypad fom those in the arrow keypad, and the other six key
>keypad above it on the pc keyboard so that I can just remap the numeric
>versions ? Is it even possible under Demacs ?? Any guidelines most
>gratefully accepted,

You need to tell ANSI.SYS that you have an extended keyboard (/X option), 
and in the emacs/lisp/term/ibm_pc.el file that loads the function keys,
you need to map the numeric keypad keys to something other than the separate
arrow key/PgUp/... block.  For the routine that remaps the keys back to the
original IBM character sequences, you'll want to remake the extended key
blocks to the same as the numeric key blocks.

--
bruce@zuhause.mn.org
Youth is wasted on the young.
Technical Details
Message-ID: <bruce.0dvx@zuhause.MN.ORG>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!howland.reston.ans.net!spool.mu.edu!umn.edu!uum1!gw.digibd.com!digibd!zuhause!bruce
References: <1993Jan6.002415.13780@trl.oz.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!howland.reston.ans.net!spool.mu.edu!umn.edu!uum1!gw.digibd.com!digibd!zuhause!bruce
From: bruce@zuhause.MN.ORG (Bruce Albrecht)
Newsgroups: comp.emacs,gnu.emacs.help
Subject: Re: Num. keypad bindings for Demacs-how 2 change without affecting arrows?
Distribution: world
Message-ID: <bruce.0dvx@zuhause.MN.ORG>
References:  <1993Jan6.002415.13780@trl.oz.au>
Date: 10 Jan 93 17:08:47 CST
Organization: Society to Stamp Out Bogus Organizations
Lines: 27