Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!ubvax!vsi1!altnet!uunet!mcvax!unido!pbinfo!corona!michael
From: michael@pbinfo.uucp (Michael Schmidt)
Newsgroups: comp.emacs
Subject: Re: Am I using SunView or X-windows?
Message-ID: <287@corona.pb>
Date: 27 Jun 88 14:13:01 GMT
References: <8806220303.AA24247@unixb.CEL.FMC.COM> <5724@columbia.edu>
Sender: news@pbinfo.UUCP
Reply-To: michael@pbinfo.uucp (Michael Schmidt)
Organization: Replace me with your organization
Lines: 17
In-reply-to: agw@convent.columbia.edu (Art Werschulz)
Posting-Front-End: Gnews 1.4

In article <5724@columbia.edu>, agw@convent (Art Werschulz) writes:
>I would like to be able to setq a variable to one value if my emacs
>was called as an emacstool via SunView (a/k/a suntools) and to another
>value if my emacs was called via X-windows.

At least with X you ask for the variable "window-system":

(if (eq window-system 'x)
    (progn
      (x-set-bell t)))


	Michael Schmidt
-- 
    Michael Schmidt, Universitaet-GH Paderborn, FB 17, Warburger Str.100,
                     D-4790 Paderborn, West Germany
Mail:   michael@pbinfo.UUCP         or          michael%pbinfo@uunet.uu.net