all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ehud Karni" <ehud@unix.mvs.co.il>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how do i find out the platform emacs runs on?
Date: Thu, 27 Nov 2003 00:29:34 +0200	[thread overview]
Message-ID: <200311262229.hAQMTYQc011545@beta.mvs.co.il> (raw)
In-Reply-To: <vfptff6ni5.fsf@rpc71.cs.man.ac.uk> (message from Phillip Lord on 26 Nov 2003 17:36:02 +0000)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26 Nov 2003 17:36:02 +0000, Phillip Lord <p.lord@russet.org.uk> 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 <http://www.keyserver.net/>    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-----

  reply	other threads:[~2003-11-26 22:29 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-24  4:42 how do i find out the platform emacs runs on? leo
2003-11-24  6:11 ` Ola Nilsson
2003-11-25  3:53   ` leo
2003-11-26  9:32   ` seki
2003-11-26 17:21     ` Kevin Rodgers
2003-11-26 17:35       ` Edi Weitz
2003-11-26 17:36     ` Phillip Lord
2003-11-26 22:29       ` Ehud Karni [this message]
2003-11-27 10:02       ` Sébastien Kirche
2003-11-24  6:20 ` Eli Zaretskii
     [not found] ` <mailman.485.1069658500.399.help-gnu-emacs@gnu.org>
2003-11-24  9:39   ` apropos apropos [was: how do i find out the platform emacs runs on?] Alan Mackenzie
2003-11-24 12:46     ` Eli Zaretskii
2003-11-24 18:45     ` Kevin Rodgers
2003-11-24 21:03       ` Alan Mackenzie
2003-11-25 17:40         ` Kevin Rodgers
     [not found]     ` <mailman.496.1069681832.399.help-gnu-emacs@gnu.org>
2003-11-29 10:50       ` Alan Mackenzie
2003-11-30  6:53         ` Eli Zaretskii
2003-12-01  9:03   ` how do i find out the platform emacs runs on? Svend Tollak Munkejord
2003-12-01 13:17     ` Eli Zaretskii
2003-12-01 19:15     ` Kevin Rodgers
     [not found]     ` <mailman.851.1070328153.399.help-gnu-emacs@gnu.org>
2003-12-02  8:20       ` Svend Tollak Munkejord
2003-12-02 17:24         ` Eli Zaretskii
     [not found]         ` <mailman.924.1070390102.399.help-gnu-emacs@gnu.org>
2003-12-03  8:42           ` Svend Tollak Munkejord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200311262229.hAQMTYQc011545@beta.mvs.co.il \
    --to=ehud@unix.mvs.co.il \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.