From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: how do i find out the platform emacs runs on? Date: Thu, 27 Nov 2003 00:29:34 +0200 Organization: Mivtach-Simon Insurance agencies Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200311262229.hAQMTYQc011545@beta.mvs.co.il> References: <871xryxpmo.fsf@helmut.nilsson.homedns.org> <3fc47348$0$2368$626a54ce@news.free.fr> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1069886132 28730 80.91.224.253 (26 Nov 2003 22:35:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2003 22:35:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 23:35:29 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 1AP8Fs-00053Z-00 for ; Wed, 26 Nov 2003 23:35:28 +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 1AP9D9-0007y1-Fp for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2003 18:36:43 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AP9Ce-0007wX-NQ for help-gnu-emacs@gnu.org; Wed, 26 Nov 2003 18:36:12 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AP980-0006u3-4R for help-gnu-emacs@gnu.org; Wed, 26 Nov 2003 18:31:55 -0500 Original-Received: from [192.114.178.12] (helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AP97i-0006Pd-Or for help-gnu-emacs@gnu.org; Wed, 26 Nov 2003 18:31:07 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.12.10/8.12.10) with ESMTP id hAQMTZqL020993 for ; Thu, 27 Nov 2003 00:29:35 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.12.10/8.12.10) with ESMTP id hAQMTZQs011549 for ; Thu, 27 Nov 2003 00:29:35 +0200 Original-Received: (from root@localhost) by beta.mvs.co.il (8.12.10/8.12.10/Submit) id hAQMTYQc011545; Thu, 27 Nov 2003 00:29:34 +0200 Original-To: p.lord@russet.org.uk In-reply-to: (message from Phillip Lord on 26 Nov 2003 17:36:02 +0000) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) 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:14627 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14627 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 26 Nov 2003 17:36:02 +0000, Phillip Lord wrote: > > One important question to ask though, is why are you doing this? In > general its better to ask Emacs for its capabilities rather than its > platform. I have an .emacs files that runs on 3 systems: GNU/Linux, windows-NT and Cygwin (on windows). I set some Emacs variables and some environment variables. It has nothing to do with the Emacs capabilities and everything with the OS capabilities/behavior. e.g. I set the `desktop-basefilename' differently for windows-NT and Cygwin because they have different path structure (X:\... vs. /X/...). > Checking between console and windowing environment seems a good way to > do things. > > This way if Emacs on different systems gains new functionality, it > should all just work. Only if it is purely Emacs dependent, When it is dependent on the OS or the display or any other factor, you should check for the specific element that differentiate between these situations. > Of course there are times when you might just not be bothered to do > this, or when its too much effort (checking whether external programs > like diff are available for instance). There are times, you just can not check (e.g. if the test might hang the system or block Emacs forever). Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D Better Safe Than Sorry -----BEGIN PGP SIGNATURE----- Comment: use http://www.keyserver.net/ to get my key (and others) iD4DBQE/xSlNLFvTvpjqOY0RAkiwAJ9CvKnQJvZrRAkhrFrmAfUlUrhtuACWITmC a+49x1lzx3g+u6afFXhIFw== =VwGE -----END PGP SIGNATURE-----