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: Checking for Emacs flavors, OS, graphics, ... (was: How big are your customisations?) Date: Fri, 28 Jul 2006 14:03:15 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <1153907142.547631.259450@s13g2000cwa.googlegroups.com> <1154080566.151718.104270@75g2000cwc.googlegroups.com> 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 1154090496 30353 80.91.229.2 (28 Jul 2006 12:41:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2006 12:41:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 28 14:41:31 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6ReN-0007xO-4K for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jul 2006 14:41:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6ReM-0002tq-As for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jul 2006 08:41:06 -0400 Original-Newsgroups: gnu.emacs.help X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.; yo.b yq4$p; ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:4fd0CyvVHlLh+wHJFHIXduwEK/E= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1154088201 134.60.10.123 (28 Jul 2006 14:03:21 +0200) Original-Lines: 50 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!news.germany.com!news.belwue.de!news.uni-ulm.de!bridgekeeper.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:140706 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:36331 Archived-At: 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/