From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Herenz Newsgroups: gmane.emacs.help Subject: Re: Detect if Emacs is running in -nw mode Date: Sun, 30 Mar 2008 03:22:55 +0200 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206841283 5360 80.91.229.12 (30 Mar 2008 01:41:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 01:41:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 30 03:41:55 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JfmYU-00011M-Ia for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 03:41:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfmXs-0008Pz-U0 for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 21:41:16 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: feeder.motzarella.org U2FsdGVkX1945w6gzKF2wXtVkn8k24MIPWBgrLJLrMeEF1BRT1NY3mui1F6aLwzsj12VAj0WryYp0p+oY5xaMgSgFpEHYHU5QvyIvQ4PlfvKEpiAXLcaVRt8zseDEOanmX2V8vpDvS0= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sun, 30 Mar 2008 01:22:56 +0000 (UTC) In-Reply-To: X-Auth-Sender: U2FsdGVkX1/tRWT7t9Mq0e5Wnd6f+D1KPwdg6am9LZg= Cancel-Lock: sha1:wdAYQGl4XxOrUEr8/AevdVhaRGo= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20071128 SUSE/1.1.7-3.4 SeaMonkey/1.1.7 Mnenhy/0.7.5.0 Original-Xref: shelby.stanford.edu gnu.emacs.help:157442 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52811 Archived-At: Will Parsons schrieb: >> There is (not ...) ;-) >> >> (when (not (window-system)) >> ...) > > Or how about (unless ...) > > (unless (window-system) > ...) > So... That should do the trick. One last question, i assume that window-system can either be true or false. I searched the help for a variable called window-system but I found no explanation? Where do I have to search for emacs "system-variables"? Greets and thanks, Christian