From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thomas Gehrlein Newsgroups: gmane.emacs.help Subject: Re: trouble writing a conditional, or with lambda Date: 24 May 2003 17:37:30 +0200 Organization: T-Online Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053790764 19028 80.91.224.249 (24 May 2003 15:39:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 24 May 2003 15:39:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat May 24 17:39:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Jb7B-0004wi-00 for ; Sat, 24 May 2003 17:39:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Jb8n-0002Qd-21 for gnu-help-gnu-emacs@m.gmane.org; Sat, 24 May 2003 11:41:01 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: news.t-online.com 1053790717 00 7831 xDkSVHMSSFYdhx 030524 15:38:37 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: bofWj8Z-oeiwfa8WBsPU+FvQwjpdWYxftvEYI2N7K+dcaQoofsc7g+ User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:113655 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10151 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10151 Florian von Savigny writes: > some basic lisp, I'm afraid, but I did consult the manual and tested > in lisp-interaction-mode, but did not get any the wiser. > > I'm trying to get a function to work differently depending on whether > emacs runs under X or on a terminal: Not tested: (if (eq window-system nil) ;; running under a terminal (progn (split-window) (switch-to-buffer "*foo*")) ;; running under a window system (select-frame (make-frame)) (set-frame-size (selected-frame) 50 24) (set-frame-position (selected-frame) 150 120)) Thomas