* 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 --
2003-11-03 19:11 Need LISP Help: popping up speedbar only under X Dan Anderson
[not found] <mailman.3036.1067886779.21628.help-gnu-emacs@gnu.org>
2003-11-03 20:09 ` Jesper Harder
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.