Article View: gnu.emacs.bug
Article #98969Emacs 18.56 on Irix 3.3
From: USENET News System
Date: Thu, 24 Jan 1991 17:27
Date: Thu, 24 Jan 1991 17:27
54 lines
3147 bytes
3147 bytes
While installing GNU Emacs 18.56 on an Iris running Irix 3.3.1 (using
the X libraries which come with the OS), I couldn't figure out why X
emacs was always "plain" (ie., not like I had it set in my
.Xdefaults). I had remembered reading an article in comp.sys.sgi
about arguments to XGetDefault being reversed, but had discarded it.
I greped for it in the sources and found some code #ifdef'd for
XBACKWARDS in x11fns.c, but XBACKWARDS didn't get defined anywhere. I
defined it in s-irix3-3, but it didn't help. After examining all the
occurrances of XGetDefault I finally figured out that a similar
modification needed to be added to x11term.c, so here it is for the
world to enjoy. Just save everything after my signature and run it
through patch in your emacs-18.56/src directory. Please forgive me if
my patch is reversed, but everything seems backwards lately :-)
/-----------------------------------------------------------------------------\
| Mike J. Fuller | Internet: mikef@sarah.lerc.nasa.gov | "I hate |
|----------------| mikef@zippysun.math.uakron.edu | quotations." |
|/\/\/\/\/\/\/\/\| Bitnet: r3mjf1@akronvm | -- R.W. Emerson |
\-----------------------------------------------------------------------------/
*** x11term.c~ Tue Jan 8 13:21:39 1991
--- x11term.c Thu Jan 24 11:30:48 1991
***************
*** 1539,1548 ****
--- 1539,1556 ----
for (entry = xDefaultsValueTable; entry->iname; entry++)
{
+ #ifdef XBACKWARDS
+ /* Some versions of X11R4, at least, have the args backwards. */
+ if (!(option = XGetDefault (XXdisplay, entry->iname, class)))
+ if (!(option = XGetDefault (XXdisplay, entry->iname, CLASS)))
+ if (!(option = XGetDefault (XXdisplay, entry->cname, class)))
+ option = XGetDefault (XXdisplay, entry->cname, CLASS);
+ #else
if (!(option = XGetDefault (XXdisplay, class, entry->iname)))
if (!(option = XGetDefault (XXdisplay, CLASS, entry->iname)))
if (!(option = XGetDefault (XXdisplay, class, entry->cname)))
option = XGetDefault (XXdisplay, CLASS, entry->cname);
+ #endif
if (option && entry->varp)
*entry->varp = option;
}
*** s-irix3-3.h~ Sat Jan 12 14:44:06 1991
--- s-irix3-3.h Thu Jan 24 12:10:29 1991
***************
*** 161,163 ****
--- 161,166 ----
#define HAVE_GETWD
#define HAVE_SYSVIPC
+
+ /* Reverse last two arguments to XGetDefault. */
+ #define XBACKWARDS
Technical Details
Message-ID:
<MIKEF.91Jan24122817@sarah.lerc.nasa.gov>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!UNIX.CIS.PITT.EDU!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,ccc57798de386677,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-01-24 09:27:02 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!UNIX.CIS.PITT.EDU!news From: news@UNIX.CIS.PITT.EDU (USENET News System) Newsgroups: gnu.emacs.bug Subject: Emacs 18.56 on Irix 3.3 Keywords: emacs, iris, XBACKWARDS Message-ID: <MIKEF.91Jan24122817@sarah.lerc.nasa.gov> Date: 24 Jan 91 17:27:02 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: NASA Lewis Research Center, Cleveland, OH Lines: 54 Approved: bug-gnu-emacs@prep.ai.mit.edu