From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: code listp to determine wich os I'm running on Date: Wed, 29 Jan 2014 20:01:45 -0800 (PST) Message-ID: <34a716ab-8f06-4449-9114-ccac7007ef45@googlegroups.com> References: <5787a521-407a-43ff-aaae-cf7b3caaa2a3@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1391054716 32690 80.91.229.3 (30 Jan 2014 04:05:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 04:05:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 30 05:05:24 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8isQ-0006Km-W6 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 05:05:19 +0100 Original-Received: from localhost ([::1]:46338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8isQ-0005l3-J8 for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jan 2014 23:05:18 -0500 X-Received: by 10.68.133.164 with SMTP id pd4mr4598623pbb.1.1391054506731; Wed, 29 Jan 2014 20:01:46 -0800 (PST) X-Received: by 10.50.16.134 with SMTP id g6mr380606igd.10.1391054506427; Wed, 29 Jan 2014 20:01:46 -0800 (PST) Original-Path: usenet.stanford.edu!uq10no5264743igb.0!news-out.google.com!vg8ni1igb.0!nntp.google.com!c10no5137013igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.11.243; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.11.243 User-Agent: G2/1.0 Injection-Date: Thu, 30 Jan 2014 04:01:46 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:203517 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95786 Archived-At: On Thursday, January 30, 2014 9:17:26 AM UTC+5:30, Stefan Monnier wrote: > > (cond ((string= system-type "windows-nt") (message "Microsoft Windows")) > > ((string= system-type "darwin") (message "Darwin")) > > ((string= system-type "gnu/linux") (message "Gnu/Linux")) > > (t (message "Unknown system"))) > Please don't compare symbols with string= (which is meant for strings): > (cond ((eq system-type 'windows-nt) (message "Microsoft Windows")) > ((eq system-type 'darwin) (message "Darwin")) > ((eq system-type 'gnu/linux) (message "Gnu/Linux")) > (t (message "Unknown system"))) Whoops! Actually I did have a vague uneasy feel on seeing those strings... Didn't look further