From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: How to check the -nw option? Date: Mon, 11 May 2009 06:23:14 GMT Organization: Sonera Customer Message-ID: <8763g8ma3x.fsf@iki.fi> References: <531ebed1-6f79-46d7-b1bf-f9c52b85517b@x1g2000prh.googlegroups.com> <871vqw1cd5.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242024109 14679 80.91.229.12 (11 May 2009 06:41:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 06:41: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 Mon May 11 08:41:38 2009 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 1M3PCj-00004t-Ss for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2009 08:41:38 +0200 Original-Received: from localhost ([127.0.0.1]:57977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3PCj-0002fx-89 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2009 02:41:37 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!xlned.com!feeder1.xlned.com!border2.nntp.ams.giganews.com!nntp.giganews.com!uio.no!newsfeed1.funet.fi!newsfeeds.funet.fi!nntp.inet.fi!central1.inet.fi!inet.fi!read4.inet.fi.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:EZECgfvAMgrizP5jEwwR7faB2wA= Original-Lines: 14 Original-NNTP-Posting-Host: 80.220.180.181 Original-X-Complaints-To: abuse@inet.fi Original-X-Trace: read4.inet.fi 1242022994 80.220.180.181 (Mon, 11 May 2009 09:23:14 EEST) Original-NNTP-Posting-Date: Mon, 11 May 2009 09:23:14 EEST Original-Xref: news.stanford.edu gnu.emacs.help:169074 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:64337 Archived-At: On 2009-05-10 23:09 (-0700), Kiwon Um wrote: > (if (not (eq window-system nil)) ...) works well. :) Yes. For boolean tests one can just do (if (not window-system) THEN-FORM ELSE-FORMS) or if only one "if" branch is needed, then perhaps (unless window-system THEN-FORMS)