[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Checking for Emacs flavors, OS, graphics, ... (was: How big are your cus
From: |
Reiner Steib |
Subject: |
Checking for Emacs flavors, OS, graphics, ... (was: How big are your customisations?) |
Date: |
Fri, 28 Jul 2006 14:03:15 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On Fri, Jul 28 2006, Davin Pearson wrote:
> emacs-dialect--dosemacs-p
(memq system-type '(ms-dos))
> emacs-dialect--xemacs-p
(featurep 'xemacs)
> emacs-dialect--gnuemacs-p
(not (featurep 'xemacs))
> os-type--microsoft-p
(memq system-type '(ms-dos windows-nt cygwin))
> os-type--linux-p
(memq system-type '(gnu/linux))
> os-type--mswindows-p
(memq system-type '(windows-nt))
> os-type--msdos-p
(memq system-type '(ms-dos))
> os-type--graphical-p
(display-graphic-p)
> os-type--text-p
(display-graphic-p)
> Wouldn't it be good if similar functions were available as standard
> commands, since they are so useful?
Most of such predicates are already available. More often you should
check for specific feature instead of checking for specific operating
systems of Emacs flavors.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
Message not available
Re: How big are your customisations?, robert . thorpe, 2006/07/28