From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: How to detect if Emacs is running in a terminal Date: 16 Apr 2005 01:42:31 +0200 Organization: [posted via Easynet Spain] Message-ID: <8764yn8v4o.fsf@thalassa.informatimago.com> References: <6dbd4d0005041508105e3824b6@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113608710 4060 80.91.229.2 (15 Apr 2005 23:45:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2005 23:45:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 16 01:45:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DMaUW-0000nU-9J for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Apr 2005 01:44:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMaY5-0005c8-Sj for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Apr 2005 19:48:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!colt.net!diablo.theplanet.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 37 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=C[_4FYSACf5:9?\;@WVIj0EY<>`XO4V7=>Uh List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25742 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25742 Peter Dyballa writes: > Am 15.04.2005 um 17:10 schrieb Denis Bueno: > > > Is there a better way? > > What about this? > > (cond ((= 21 emacs-major-version) > (progn > (desktop-read) > (cond ((string= "x" window-system) There is this notion of a symbol in List & Intelligent Symbol Processing language. Perhaps you read some about it... Try: M-x info RET m elisp RET m symbols RET > (message "Sind in X11") > (load "~/.emacs_X11") > )) ; Ende X11 > (cond ((string= "mac" window-system) > (message "Sind in Aqua") > (load "~/.emacs_Carbon") > ; (require '.emacs_Carbon) > )) ; Ende Carbon > (cond ((string= 'nil window-system) > (message "Sind im Terminal") > (load "~/.emacs_nil") > )) ; Ende Terminal > )));Version 21 -- __Pascal Bourguignon__ http://www.informatimago.com/ Nobody can fix the economy. Nobody can be trusted with their finger on the button. Nobody's perfect. VOTE FOR NOBODY.