From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: Need LISP Help: popping up speedbar only under X Date: Mon, 03 Nov 2003 21:09:45 +0100 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067890794 31771 80.91.224.253 (3 Nov 2003 20:19:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2003 20:19:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 03 21:19:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AGlB2-00080B-00 for ; Mon, 03 Nov 2003 21:19:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AGl7u-0003HI-9V for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2003 15:16:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13764 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13764 Dan Anderson writes: > (if (eq window-system "x") ;; open the speedbar when emacs loads > (speedbar t)) ;; if we're under X > > And it doesn't work. According to M-x describe-variable: > > A symbol naming the window-system under which Emacs is running (such > as `x'), or nil if emacs is running on an ordinary terminal. > > What am i doing wrong? The value of `window-system' is a symbol, not a string. So you should say (eq window-system 'x).