From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.help Subject: Re: How can Emacs tell if it's started with Xwindow? Date: Thu, 15 May 2003 19:11:58 +0200 Organization: None Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053020085 9462 80.91.224.249 (15 May 2003 17:34:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 15 May 2003 17:34:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 15 19:34:44 2003 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 19GMYf-00027R-00 for ; Thu, 15 May 2003 19:30:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19GMYo-00011o-07 for gnu-help-gnu-emacs@m.gmane.org; Thu, 15 May 2003 13:30:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!news.supernews.com!cicero.benny.turtle-trading.net!nobody Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:Gi0TviBRGKvLUPE2U20s5ullY4A= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 20 Original-Xref: shelby.stanford.edu gnu.emacs.help:113277 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9773 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9773 Hi, Wang Yin writes: > I want to define some font in my .emacs file as: > > (create-fontset-from-fontset-spec > "-adobe-courier-medium-r-*-*-14-*-*-*-*-*-fontset-wangyin, > [...] > > How can I add a predicate to tell Emacs if we are in X? You may want to use "(if (display-multi-font-p) ...". X11 is not what you really specifically want in this place, even though it may work in your current situation. Therefore asking the question that way is considered bad style. so long, benny