From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?iso-8859-1?q?Fran=E7ois_Fleuret?= Newsgroups: gmane.emacs.help Subject: Re: How have .emacs segment ONLY run if X-Windows but NOT if run without X? Date: 02 Dec 2003 09:39:31 +0100 Organization: I.N.R.I.A Rocquencourt Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1070360024 18407 80.91.224.253 (2 Dec 2003 10:13:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2003 10:13:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 02 11:13:41 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AR7XJ-0006sB-00 for ; Tue, 02 Dec 2003 11:13:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AR7zc-0002cs-VF for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Dec 2003 05:42:56 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!jussieu.fr!univ-angers.fr!news.univ-rennes1.fr!irisa.fr!news-rocq.inria.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: wasabi.inria.fr Original-X-Trace: news-rocq.inria.fr 1070354371 7393 128.93.23.201 (2 Dec 2003 08:39:31 GMT) Original-X-Complaints-To: usenet@inria.fr Original-NNTP-Posting-Date: Tue, 2 Dec 2003 08:39:31 +0000 (UTC) X-Attribution: FF X-Url: http://www-rocq.inria.fr/~fleuret User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:118900 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14842 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14842 Hi, Christian Seberino wrote on 01 Dec 2003 19:41:45 MET: > How have .emacs segment ONLY run if X-Windows but NOT if run without X? ,---- | window-system's value is x | | Name of window system that Emacs is displaying through. | The value is a symbol--for instance, `x' for X windows. | The value is nil if Emacs is using a text-only terminal. `---- Hence, using (when window-system ...) should do it. Regards, -- François Fleuret