🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98830

AIX Xlib bug manifests itself in Emacs 18.57

#98830
From: Tom Pavel
Date: Wed, 13 Feb 1991 20:12
88 lines
4175 bytes
I am not all that familiar with AIX (and, personally, I can't imagine
why anyone would really want to be), but I have been able to track
down this little gem of a bug that we discovered on our RS/6000s here.

In Emacs 18.57, the file xkeys-aix.h is introduced to make X keys send
codes compatible with the IBM hft terminal keyboard.  This is done by
making use of the Xlib call XRebindKeysym().  Unfortunately, this call
is broken on the AIX machines we have here.  I imagine that other
folks may have the same problem.

The symptoms are that XRebindKeysym() ignores its modifier-list
argument.  Thus, when successive calls are made to declare strings to
be associated with a particular key without modifiers, with SHIFT,
with CONTROL, etc., the last call made takes effect for the whole
bunch.  The visible effect of all this was breaking the arrow-keys,
since ALT-arrow was the last call made in xkeys-aix.h.


--------------


As far as I can tell, this should provide as much info as possible
about the Xlib versions that we are using:

helga[27]% lslpp -h X11dev.obj
Option Name          State      Event      Date/Time Release         User Name
-------------------- ---------- ---------- --------- --------------- ----------
X11dev.obj           INACTIVE   COMMIT     01/07/91  01.01.0000.0000 root
                     INACTIVE   APPLY      01/07/91  01.01.0001.0003 root
                     ACTIVE     COMMIT     01/07/91  01.01.0001.0003 root
bosadt.xde.obj       INACTIVE   COMMIT     01/07/91  03.01.0000.0000 root
                     INACTIVE   APPLY      01/11/91  03.01.0002.0002 root
                     ACTIVE     COMMIT     01/11/91  03.01.0002.0002 root
bos.obj              INACTIVE   COMMIT     02/02/90  03.01.0000.0000 root
                     INACTIVE   APPLY      01/07/91  03.01.0001.0003 root
                     INACTIVE   COMMIT     01/07/91  03.01.0001.0003 root
                     INACTIVE   APPLY      01/11/91  03.01.0002.0015 root
                     ACTIVE     COMMIT     01/11/91  03.01.0002.0015 root
helga[28]% lslpp -i X11dev.obj
Option Name           Product Id  Feature Id  Product Name
--------------------  ----------  ----------  --------------------
X11dev.obj            5601-25701  0000        X11dev


"GNU Emacs 18.57.2 of Fri Feb  8 1991 on helga (aix-v3)"




>>> This is my proposed fix, which is to comment out all the keydefs
>>> that have modifiers associated with them:

helga[32]% diff -c xkeys-aix.h*
*** xkeys-aix.h Fri Feb  8 17:41:02 1991
--- xkeys-aix.h.orig    Wed Feb  6 13:37:10 1991
***************
*** 44,52 ****
  
   XRebindKeysym(XXdisplay, XK_Execute, 0, 0, "\033[114q", 6);
  
- 
- #ifdef AIXFIXED  /* Ignore the rest unless this flag is on */
- 
  /*-------------------------------------------------------------------------*/
  /*---------------------------- shift --------------------------------------*/
  #if 0
--- 44,49 ----
***************
*** 159,163 ****
   XRebindKeysym(XXdisplay, XK_Left, XMOD_Alt, 1, "\033[160q", 6);
   XRebindKeysym(XXdisplay, XK_Down, XMOD_Alt, 1, "\033[166q", 6);
   XRebindKeysym(XXdisplay, XK_Right, XMOD_Alt, 1, "\033[169q", 6);
- 
- #endif        /* AIXFIXED */
--- 156,158 ----



-----------------------------------

I hope that this is useful to someone.

-Tom Pavel
 Stanford Linear Accelerator Center
#include <Standard/Disclaimer>
--

Tom
Technical Details
Message-ID: <PAVEL.91Feb13121247@pixel.SLAC.Stanford.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!news.cs.indiana.edu!att!linac!pacific.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,f45e69ca32de9316,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-02-13 12:12:47 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!news.cs.indiana.edu!att!linac!pacific.mps.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: pavel@PIXEL.SLAC.STANFORD.EDU (Tom Pavel)
Newsgroups: gnu.emacs.bug
Subject: AIX Xlib bug manifests itself in Emacs 18.57
Message-ID: <PAVEL.91Feb13121247@pixel.SLAC.Stanford.EDU>
Date: 13 Feb 91 20:12:47 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: Stanford Linear Accelerator Center
Lines: 88
Approved: bug-gnu-emacs@prep.ai.mit.edu