From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Detect if Emacs is running in -nw mode Date: Sun, 30 Mar 2008 22:22:33 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1206931277 4967 80.91.229.12 (31 Mar 2008 02:41:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Mar 2008 02:41:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 31 04:41:48 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 1Jg9xy-0007Id-Qr for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Mar 2008 04:41:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jg9xN-00010n-2L for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2008 22:41:09 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Sun, 30 Mar 2008 21:22:33 -0500 Original-Newsgroups: gnu.emacs.help Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.5.3b2 (Intel Mac OS X) Original-Lines: 47 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 24.34.108.171 Original-X-Trace: sv3-r1AR4KGCIYJfUZNdyGSmEN6uKlX39Jr2URlmpg9VWzw0hGbHzFDUbUQOVr4AxL2dU9r+liWscerx6ux!svMg8sMH3VUAV9Wmk1XHIsdIoyqrV3I0scwoiCkOEsU8T2Gj+iRs2n6Ui4eXpJa5Fsc3umSIhW8k!c69+x22tsm+df7uP5gHtuqTGqK4sXjrTEwNpsG8= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.37 Original-Xref: shelby.stanford.edu gnu.emacs.help:157503 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:52872 Archived-At: In article , Christian Herenz wrote: > 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): Do you understand what "&rest" means? It means that there can be an arbitrary number of arguments there. > > (unless window-system (menu-bar-mode nil)) > (unless window-system (color-theme-arjen)) Even if only one form were allowed, why wouldn't you use progn to combine multiple forms into one: (unless window-system (progn (menu-bar-mode nil) (color-theme-arjen))) -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me *** *** PLEASE don't copy me on replies, I'll read them in the group ***