From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.help Subject: Re: How can Emacs tell if it's started with Xwindow? Date: Thu, 15 May 2003 16:37:14 +0200 Organization: CWI, Amsterdam 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 1053010021 19854 80.91.224.249 (15 May 2003 14:47:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 15 May 2003 14:47:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 15 16:46:50 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 19GJwr-0004oP-00 for ; Thu, 15 May 2003 16:43:09 +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 19GJuT-0002MV-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 15 May 2003 10:40:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!canoe.uoregon.edu!hammer.uoregon.edu!news.wind.surfnet.nl!surfnet.nl!news.surfnet.nl!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: occarina.pna.cwi.nl Original-X-Trace: news.surfnet.nl 1053009434 27113 192.16.184.200 (15 May 2003 14:37:14 GMT) Original-X-Complaints-To: usenet@news.surfnet.nl Original-NNTP-Posting-Date: Thu, 15 May 2003 14:37:14 +0000 (UTC) In-Reply-To: (Wang Yin's message of "15 May 2003 22:43:53 +0800") User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:k8OjVmLWPD3wrx/OAzTMBLF5L7k= Original-Xref: shelby.stanford.edu gnu.emacs.help:113264 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:9760 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9760 Wang Yin writes: [...] > How can I add a predicate to tell Emacs if we are in X? ,----[ C-h v window-system RET ] | window-system's value is x | | Documentation: | A symbol naming the window-system under which Emacs is running | (such as `x'), or nil if emacs is running on an ordinary terminal. `---- Lute. -- (spook) => "Aladdin S Key BLU-97 A/B" (insert-file-contents "~/.signature") => (error "`~/.signature' too rude")