help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need LISP Help: popping up speedbar only under X


From: Jesper Harder
Subject: Re: Need LISP Help: popping up speedbar only under X
Date: Mon, 03 Nov 2003 21:09:45 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Dan Anderson <dan@mathjunkies.com> 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).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]