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:54:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <531ebed1-6f79-46d7-b1bf-f9c52b85517b@x1g2000prh.googlegroups.com> <871vqw1cd5.fsf@iki.fi> <87vdo8xia1.fsf@galatea.local> 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 1242027652 23862 80.91.229.12 (11 May 2009 07:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2009 07:40:52 +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 09:40:44 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 1M3Q7o-0001hf-OA for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2009 09:40:37 +0200 Original-Received: from localhost ([127.0.0.1]:49644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3Q7o-0008Qc-6J for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2009 03:40:36 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!v23g2000pro.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 163.152.71.53 Original-X-Trace: posting.google.com 1242024898 10490 127.0.0.1 (11 May 2009 06:54:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 11 May 2009 06:54:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v23g2000pro.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:169077 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:64341 Archived-At: On 5=EC=9B=9411=EC=9D=BC, =EC=98=A4=ED=9B=843=EC=8B=9C31=EB=B6=84, p...@inf= ormatimago.com (Pascal J. Bourguignon) wrote: > Kiwon Um writes: > > On 5=EC=9B=9411=EC=9D=BC, =EC=98=A4=ED=9B=841=EC=8B=9C40=EB=B6=84, Teem= u 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 (-n= w) > >> > 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: > > >> =C2=A0 =C2=A0 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: > > =C2=A0 (when window-system > =C2=A0 =C2=A0 =C2=A0...) > > or at the very least: > > =C2=A0 (unless (null window-system) > =C2=A0 =C2=A0 =C2=A0...) > > -- > __Pascal Bourguignon__ Thanks for all advices. :)