* Need LISP Help: popping up speedbar only under X
@ 2003-11-03 19:11 Dan Anderson
0 siblings, 0 replies; 2+ messages in thread
From: Dan Anderson @ 2003-11-03 19:11 UTC (permalink / raw)
If I evaluate:
(speedbar t)
The speedbar pops up. But I want it only to pop up when I'm running it
in KDE, and thus under X. So I tried:
(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?
Thanks in advance,
Dan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Need LISP Help: popping up speedbar only under X
[not found] <mailman.3036.1067886779.21628.help-gnu-emacs@gnu.org>
@ 2003-11-03 20:09 ` Jesper Harder
0 siblings, 0 replies; 2+ messages in thread
From: Jesper Harder @ 2003-11-03 20:09 UTC (permalink / raw)
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).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-03 20:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.3036.1067886779.21628.help-gnu-emacs@gnu.org>
2003-11-03 20:09 ` Need LISP Help: popping up speedbar only under X Jesper Harder
2003-11-03 19:11 Dan Anderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).