From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Detect if Emacs is running in -nw mode Date: Sun, 30 Mar 2008 17:13:43 +0200 Message-ID: <9A545695-DDF5-4E56-9A8D-8EF0312FB93C@Web.DE> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1206890113 19593 80.91.229.12 (30 Mar 2008 15:15:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 15:15:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Christian Herenz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 30 17:15:43 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 1JfzG2-0005JM-1A for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 17:15:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfzFQ-0004VT-4c for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 11:15:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfzEH-0003sO-JC for help-gnu-emacs@gnu.org; Sun, 30 Mar 2008 11:13:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfzEC-0003n6-J7 for help-gnu-emacs@gnu.org; Sun, 30 Mar 2008 11:13:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfzEC-0003mr-Aj for help-gnu-emacs@gnu.org; Sun, 30 Mar 2008 11:13:48 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfzEC-0005sz-4G for help-gnu-emacs@gnu.org; Sun, 30 Mar 2008 11:13:48 -0400 Original-Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id 791F8D93CF06; Sun, 30 Mar 2008 17:13:46 +0200 (CEST) Original-Received: from [195.4.207.171] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1JfzE9-00023g-00; Sun, 30 Mar 2008 17:13:45 +0200 In-Reply-To: X-Mailer: Apple Mail (2.753) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1+WRipUDk5Ee1bMKAuFRXLjarO07geZ4OSbo1nb pa8zdkWY51Bbkh2Ivhqm8Nc6aEOPdsgtrOEpgyeQdIBElSU6CX zZH954R893sOHcmoM7gQ== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:52841 Archived-At: Am 30.03.2008 um 16:24 schrieb Christian Herenz: > But is it possible to do the 2 functions withe evaluating the =20 > condition only once: > > (unless window-system ((menu-bar-mode nil) (color-theme-arjen))) > > Sorry, its a noob question :) But I really would like to know :) You could make a test like that: (unless window-system (message "Oh, no!") (message "Windows -- I = =20 mean: not Losedos but X11")) -- Mit friedvollen Gr=FC=DFen Pete Hard Disk, n.: A device that allows users to delete vast quantities of data with simple mnemonic commands.