|
From: | Stefan Monnier |
Subject: | Re: code listp to determine wich os I'm running on |
Date: | Wed, 29 Jan 2014 22:47:26 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> (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"))) -- Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |