From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kiwon Um Newsgroups: gmane.emacs.help Subject: Re: How to check the -nw option? Date: Sun, 10 May 2009 23:09:08 -0700 (PDT) Organization: http://groups.google.com Message-ID: 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=EUC-KR Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242024056 14587 80.91.229.12 (11 May 2009 06:40:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 06:40:56 +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:40:48 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 1M3PBw-0008Jh-Bf for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2009 08:40:48 +0200 Original-Received: from localhost ([127.0.0.1]:57497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3PBv-0002Oh-Td for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2009 02:40:47 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s38g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 163.152.71.53 Original-X-Trace: posting.google.com 1242022149 21124 127.0.0.1 (11 May 2009 06:09:09 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 11 May 2009 06:09:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s38g2000prg.googlegroups.com; posting-host=163.152.71.53; posting-account=6v9_LQoAAACIrmHTUxB_-iw-j364OtYr User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; ko-KR; rv:1.9.0.9) Gecko/2009041500 SUSE/3.0.9-0.1 Firefox/3.0.9,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169073 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:64336 Archived-At: On 5=BF=F911=C0=CF, =BF=C0=C8=C41=BD=C340=BA=D0, 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. :)