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 16:24:58 +0200 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206888049 13668 80.91.229.12 (30 Mar 2008 14:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 14:40:49 +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 16:41:20 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 1Jfyil-0003xf-8y for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 16:41:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfyi9-0002tZ-Fv for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 10:40:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news.f.de.plusline.net!newsfeeder.dynfx.net!news.motzarella.org!motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-X-Trace: feeder.motzarella.org U2FsdGVkX18uMsGvp7lNL2o9j5eCAsaGyB34y6FFcY/Wmw0VqMGTBorBROUmWTn0fAtJ6vADdUgt82oTm842brkptwRWu8VOiMZ5iGZfMrSHlyrJNdr3QRgTNc3kxmYqENPihEMnLc0= Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sun, 30 Mar 2008 14:24:59 +0000 (UTC) In-Reply-To: X-Auth-Sender: U2FsdGVkX1/yT/s1T2N//jIdqXhzze1rkArGfcCyhMc= Cancel-Lock: sha1:OwyMNqtgHMe1VzgGODZM/XXbEGM= 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:157468 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:52839 Archived-At: Lennart Borgman (gmail) schrieb: > > Do > > C-h f unless RET > > to read the documentation for "unless". You can see there that is says > "body forms". > C-h f unless RET yields here: -- |unless is a Lisp macro in `subr'. |(unless COND &rest BODY) | |If COND yields nil, do BODY, else return nil. -- But what about more than one function inside the Body? I do it like this atm (because i dont really understand the above help): (unless window-system (menu-bar-mode nil)) (unless window-system (color-theme-arjen)) But is it possible to do the 2 functions withe evaluating the 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 :) Greets, Christian