From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: How to detect if Emacs is running in a terminal Date: Sat, 16 Apr 2005 16:20:32 +0200 Message-ID: References: <8764yo9g12.fsf@thalassa.informatimago.com> <87hdi66hqh.fsf-monnier+gnu.emacs.help@gnu.org> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113665197 18237 80.91.229.2 (16 Apr 2005 15:26:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2005 15:26:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 16 17:26:33 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DMpBn-0004uQ-Ez for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Apr 2005 17:26:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMpFW-0006xU-Cq for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Apr 2005 11:30:22 -0400 Original-Newsgroups: gnu.emacs.help X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML; )7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+; CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf, d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Copies-To: nobody User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:PN+2KSwsxUW3A65r5anibL+0q24= Original-NNTP-Posting-Host: dialin-212-144-129-219.arcor-ip.net Original-X-Trace: news.uni-ulm.de 1113665135 212.144.129.219 (16 Apr 2005 17:25:35 +0200) Original-Lines: 22 X-Authenticated-User: rsteib Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!irazu.switch.ch!switch.ch!news.belwue.de!news.uni-ulm.de!siogo.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:130182 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:25750 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25750 On Sat, Apr 16 2005, Stefan Monnier wrote: > In 99% of the cases, people want their Emacs to behave the same on all their > machines, so the config should be the same, no matter whether it's > GNU/Linux, w32, uses window-system, ... > > What can happen, tho, is that depending on the machine some things may or > may not be available. In that case just prepend each such customization > with a little test that ensures that feature can be used. > This test will generally not look at system-type or window-system, but will > instead check (fboundp "somedirectoryIwanttouse"), or even place a whole subexpression inside > a (ignore-errors ...my config...). It would be nice to have something like this text in (info "(emacs)Init Examples") along with some examples. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/