delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/06/17:10:32

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-7.6 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_THREADED,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_GT
X-Spam-Check-By: sourceware.org
Message-ID: <50C117C1.50104@dancol.org>
Date: Thu, 06 Dec 2012 14:10:09 -0800
From: Daniel Colascione <dancol AT dancol DOT org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Updated: emacs*-24.2.90-1 (TEST)
References: <announce DOT 50BB4D0D DOT 7010204 AT cornell DOT edu> <loom DOT 20121203T102613-270 AT post DOT gmane DOT org> <loom DOT 20121206T085349-191 AT post DOT gmane DOT org> <50C08983 DOT 8000806 AT cornell DOT edu> <87ip8f10hc DOT fsf AT Rainer DOT invalid> <50C1076F DOT 3000107 AT cornell DOT edu> <877gou980c DOT fsf AT Rainer DOT invalid> <50C11251 DOT 4040904 AT dancol DOT org> <87y5ha7sob DOT fsf AT Rainer DOT invalid>
In-Reply-To: <87y5ha7sob.fsf@Rainer.invalid>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enig73783CA1FEA186A1474A734C
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 12/6/12 1:54 PM, Achim Gratz wrote:
> Daniel Colascione writes:
>> Under Cygwin, the variable system-type will be 'cygwin; under Windows,
>> it will be 'windows-nt. You can perform conditional initialization as
>> follows:
>>
>> (cond ((eq system-type 'cygwin) (cygwin-specific-initialization))
>>       ((eq system-type 'windows-nt) (windows-specific-initialization))
>>       (t (default-initialization))
>=20
> I need to keep the emacs-w32 and emacs-gtk under cygwin apart and AFAIK
> they both get reported as 'cygwin.  So I was looking for a way to know
> this other than by looking at the build string.

Ah. You want (window-system) then.



--------------enig73783CA1FEA186A1474A734C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAlDBF8EACgkQ17c2LVA10VvyOQCeJ8F+k04BykRpx9S95Q4ngfvc
6hYAnj4hiE3HcJcbpRIEmOcvVCOF58qT
=XpZl
-----END PGP SIGNATURE-----

--------------enig73783CA1FEA186A1474A734C--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019