🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98727

how to determine OS type from lisp

#98727
From: Eric A Pearce
Date: Wed, 20 Mar 1991 20:12
23 lines
1451 bytes
I'd like to make the lisp startup files such as site-init.el and default.el
do different things depending on the OS type.   SYSTEM_TYPE is currently the
same for several systems that I want to be able to tell apart.  I'm looking
to minimize the changes I'd have to make to other lisp files.

Looking for "magic" files or groveling through the kernel would be
the last resort.

What is the cleanest way to do this? - I imagine I could come up with
new unique names for OS/platform combinations, for example:

   (if (eq system-type 'encore-berkeley-unix)

       then fix encore problems

       else do sun specific things

Or should I make up a new variable to suit my purpose?
I mainly want to differentiate between systems currently known as 
"berkeley-unix".

Thanks
-e
Technical Details
Message-ID: <9103202012.AA26691@bu-pub.bu.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.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,47050ddee473e3ed,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-03-20 12:12:43 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: eap@BU-PUB.BU.EDU (Eric A Pearce)
Newsgroups: gnu.emacs.bug
Subject: how to determine OS type from lisp
Message-ID: <9103202012.AA26691@bu-pub.bu.edu>
Date: 20 Mar 91 20:12:43 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 23
Approved: bug-gnu-emacs@prep.ai.mit.edu