all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Phillip Lord <p.lord@russet.org.uk>
Subject: Re: how do i find out the platform emacs runs on?
Date: 26 Nov 2003 17:36:02 +0000	[thread overview]
Message-ID: <vfptff6ni5.fsf@rpc71.cs.man.ac.uk> (raw)
In-Reply-To: 3fc47348$0$2368$626a54ce@news.free.fr

>>>>> "seki" == seki  <sebastien.kirche.no@spam.free.fr> writes:

  seki> Ola Nilsson wrote:
  >>
  >> (if (eq system-type 'windows-nt) (require 'cygwin-mount) )
  >>

  seki> I try to have one .emacs between Mac OSX, Linux and NT, here
  seki> what i defined :
  seki> ;windows
  seki> (if (eq system-type 'windows-nt)
  seki>     (progn
  seki>         ...
  seki>     ))

  seki> ;linux
  seki> (if (eq system-type 'linux)
  seki>     (progn
  seki>         ...
  seki>     ))

  seki> ;mac
  seki> (if (eq system-type 'darwin)
  seki>     (progn
  seki>         ...
  seki>     ))

  seki> for macintosh, i use darwin, as it works both for console and
  seki> windowed system.  If you want also to check between console
  seki> and graphical : test if window-system is not nil (for example
  seki> to define a default-frame-alist)


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. 

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. 
 
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). 

Cheers

Phil

  parent reply	other threads:[~2003-11-26 17:36 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 [this message]
2003-11-26 22:29       ` Ehud Karni
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=vfptff6ni5.fsf@rpc71.cs.man.ac.uk \
    --to=p.lord@russet.org.uk \
    /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.