From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dan Anderson Newsgroups: gmane.emacs.help Subject: Need LISP Help: popping up speedbar only under X Date: Mon, 03 Nov 2003 14:11:21 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1067886680.4492.59.camel@hades> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1067886886 22044 80.91.224.253 (3 Nov 2003 19:14:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2003 19:14:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 03 20:14:44 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 1AGk9z-0002jB-00 for ; Mon, 03 Nov 2003 20:14:44 +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 1AGk8w-0007eS-NY for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2003 14:13:38 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AGk81-0007A6-Ow for help-gnu-emacs@gnu.org; Mon, 03 Nov 2003 14:12:41 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AGk6s-0004v6-0q for help-gnu-emacs@gnu.org; Mon, 03 Nov 2003 14:12:00 -0500 Original-Received: from [24.59.76.83] (helo=hades) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AGk6m-0004jZ-EH for help-gnu-emacs@gnu.org; Mon, 03 Nov 2003 14:11:24 -0500 Original-Received: by hades (Postfix, from userid 501) id E8CCB49C; Mon, 3 Nov 2003 14:11:21 -0500 (EST) Original-To: help-gnu-emacs@gnu.org X-Mailer: Ximian Evolution 1.4.4-8mdk X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:13760 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13760 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