Article View: gnu.epoch.misc
Article #175Patch for Epoch 4.2
From: Marc Andreessen
Date: Fri, 11 Sep 1992 10:24
Date: Fri, 11 Sep 1992 10:24
54 lines
1762 bytes
1762 bytes
Here's a patch for src/keymap.c to fix a problem M-<key>
representation when not using the EIGHTBIT_KEYBOARD option:
--------------------------------- CLIP HERE ----------------------------------
*** keymap.c.orig Fri Sep 11 17:04:24 1992
--- keymap.c Fri Sep 11 17:10:43 1992
***************
*** 640,655 ****
register unsigned int c;
register char *p;
{
- if (c < 040)
- {
#ifndef EIGHTBIT_KEYBOARD
! if (c >= 0200)
! {
! *p++ = 'M';
! *p++ = '-';
! c -= 0200;
! }
#endif /* not EIGHTBIT_KEYBOARD */
if (c == 033)
{
*p++ = 'E';
--- 640,655 ----
register unsigned int c;
register char *p;
{
#ifndef EIGHTBIT_KEYBOARD
! if (c >= 0200)
! {
! *p++ = 'M';
! *p++ = '-';
! c -= 0200;
! }
#endif /* not EIGHTBIT_KEYBOARD */
+ if (c < 040)
+ {
if (c == 033)
{
*p++ = 'E';
--------------------------------- CLIP HERE ----------------------------------
(This fixes the problem with, e.g., binding 'help-command to \M-h,
then pressing M-h and getting a funky eightbit-character in the echo
area instead of the M-h- prompt.)
Marc
--
Marc Andreessen
Epoch Development Team
University of Illinois at Urbana-Champaign
marca@ncsa.uiuc.edu
Technical Details
Message-ID:
<9209120024.AA01180@wintermute.ncsa.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ncsa.uiuc.edu!marcaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ncsa.uiuc.edu!marca From: marca@ncsa.uiuc.edu (Marc Andreessen) Newsgroups: gnu.epoch.misc Subject: Patch for Epoch 4.2 Message-ID: <9209120024.AA01180@wintermute.ncsa.uiuc.edu> Date: 11 Sep 92 10:24:40 GMT Sender: daemon@cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 54