Article View: gnu.epoch.misc
Article #766Epoch Keypad Rebind problem under SunOS 4.1.3
From: Eric Law -- admin
Date: Wed, 12 May 1993 15:14
Date: Wed, 12 May 1993 15:14
56 lines
2582 bytes
2582 bytes
Summary:
Cannot rebind escape sequences to Keysyms for Epoch
under SunOS 4.1.3
Greetings,
We are using Epoch 4.2 running on various
Sun Workstations with OpenWindows 3.0 and SunOS 4.1.3
We used the standard sun compiler /usr/ucb/cc
In order to force the right-hand keypad to emit the
proper escape codes for a VT100, we used xmodmap to
assign KP_* keysyms to each keycode on the keypad.
> keycode 78 = KP_Subtract
> keycode 132 = KP_Add
In our ~/.emacs file, we call rebind-key to assign the
proper escape code to each keysym.
> (epoch::rebind-key "KP_Subtract" 0 "Om")
> (epoch::rebind-key "KP_Add" 0 "Ol")
In a loaded lisp file (.el) we call define-key to
call emacs functions based on what escape codes we find.
> (define-key global-map "\eOm" 'edt-delete-line)
> (define-key global-map "\eOl" 'edt-delete-word)
Once in Epoch however, the KP_* keys emit single digits
and simple symbols for each key. It is as if the keypad
were in numeric keypad mode, not application mode.
> Pressing KP_Subtract results in '-' not '^[Om' as expected
> Pressing KP_Add results in '+' not '^[Ol' as expected
My only guess as to what the problem might be is that
Epoch is calling XLookupString for the key pressed
and, if there already is a string associated with that
key, use it instead of the rebinding done in the ~/.emacs
file. Is this true ?
This problem does not occur under SunOS 4.1.1b
and OpenWindows 3.0
*Any* information you can provide would be greatly appreciated
Thank You for your time
Eric S. Law
Computer Resources Group
Commodore Business Machines
1200 Wilson Drive
West Chester, PA 19380
(215) 431-9496
ericl@commodore.com
Technical Details
Message-ID:
<9305121414.AA29319@crunch>Path:
arc1-ca.pugleaf.net!gmd.de!ira.uka.de!math.fu-berlin.de!cs.tu-berlin.de!mailgzrz.TU-Berlin.DE!news.netmbx.de!Germany.EU.net!mcsun!uunet!zaphod.mps.ohio-state.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!crunch.commodore.com!ericlShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,b171aabb06cb8863,start X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1993-05-12 08:47:17 PST Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!math.fu-berlin.de!cs.tu-berlin.de!mailgzrz.TU-Berlin.DE!news.netmbx.de!Germany.EU.net!mcsun!uunet!zaphod.mps.ohio-state.edu!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!crunch.commodore.com!ericl From: ericl@crunch.commodore.com (Eric Law -- admin) Newsgroups: gnu.epoch.misc Subject: Epoch Keypad Rebind problem under SunOS 4.1.3 Date: 12 May 1993 11:14:10 -0400 Organization: GNUs Not Usenet Lines: 56 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9305121414.AA29319@crunch>