From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: How to check the -nw option? Date: Mon, 11 May 2009 08:31:18 +0200 Organization: Informatimago Message-ID: <87vdo8xia1.fsf@galatea.local> 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=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242024205 14877 80.91.229.12 (11 May 2009 06:43:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 06:43:25 +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:43:18 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 1M3PEL-0000bY-QH for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2009 08:43:18 +0200 Original-Received: from localhost ([127.0.0.1]:58952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3PEL-0003ba-Bh for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2009 02:43:17 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!proxad.net!feeder1-2.proxad.net!cleanfeed1-a.proxad.net!nnrp5-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) Cancel-Lock: sha1:N2U5NzBiMjdiNjZmOTZmMjJkMGI1ZTM0N2FjMTE3N2E4ODNkZGEwOA== Original-Lines: 31 Original-NNTP-Posting-Date: 11 May 2009 08:31:19 MEST Original-NNTP-Posting-Host: 88.182.134.169 Original-X-Trace: 1242023479 news-1.free.fr 32384 88.182.134.169:62671 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:169076 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:64339 Archived-At: Kiwon Um writes: > On 5=EC=9B=9411=EC=9D=BC, =EC=98=A4=ED=9B=841=EC=8B=9C40=EB=B6=84, Teemu = Likonen wrote: >> On 2009-05-10 18:37 (-0700), Kiwon Um wrote: >> >> > Some modes do not work with terminal base, i.e. no-window-system (-nw) >> > emacs. So I want to write my .emacs with checking if it's no-window- >> > emacs emacs or not. How I can check this? >> >> Check the variable "window-system". Its value is nil if Emacs is not >> running in a window system. The manual section is here: >> >> M-x elisp-index-search RET window-system RET > > Thanks. > It is really what I wanted. > (if (not (eq window-system nil)) ...) works well. :) Please, write it: =20 (when window-system ...) or at the very least: (unless (null window-system) ...) --=20 __Pascal Bourguignon__