From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.help Subject: Re: installing emacs and X11 on OS X Date: Wed, 23 Oct 2002 15:08:50 +0100 Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87elah9ril.fsf@bundalo.shootybangbang.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035382066 11219 80.91.224.249 (23 Oct 2002 14:07:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 14:07:46 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184MAj-0002ua-00 for ; Wed, 23 Oct 2002 16:07:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 184M9M-0006Zw-00; Wed, 23 Oct 2002 10:06:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.esat.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news.theplanet.net!127.0.0.1!nobody Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 62.137.78.182 Original-X-Trace: news7.svr.pol.co.uk 1035381759 3149 62.137.78.182 (23 Oct 2002 14:02:39 GMT) Original-NNTP-Posting-Date: 23 Oct 2002 14:02:39 GMT Original-X-Complaints-To: abuse@theplanet.net X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n);p.i $Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp > (fboundp 'do-applescript) > > which really feels like hack. Is there a cleaner check? The value of the variable `window-system' is `x' under X-Windows, `mac' under Carbon, and `tty' for a Terminal. e.g.: (eq window-system 'mac) could replace your check. Also, it may be better to test for specific capabilities, so that when the Carbon build gets them your configuration will use them. e.g.: (if (display-images-p) (auto-image-file-mode t)) -- John Paul Wallington