From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: configuring emacs as a programmer's editor Date: Fri, 30 Jun 2006 15:13:53 +0300 Message-ID: References: <1151627894.208462.326680@m73g2000cwd.googlegroups.com> <1151654560.583352.48720@x69g2000cwx.googlegroups.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1151669649 7945 80.91.229.2 (30 Jun 2006 12:14:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Jun 2006 12:14:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 30 14:14:09 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 1FwHsu-0004gI-D1 for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jun 2006 14:14:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FwHst-0001FG-QI for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jun 2006 08:14:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FwHsj-0001Em-NJ for help-gnu-emacs@gnu.org; Fri, 30 Jun 2006 08:13:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FwHsj-0001ER-7E for help-gnu-emacs@gnu.org; Fri, 30 Jun 2006 08:13:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FwHsj-0001EO-42 for help-gnu-emacs@gnu.org; Fri, 30 Jun 2006 08:13:57 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FwI5U-0004Vz-PW for help-gnu-emacs@gnu.org; Fri, 30 Jun 2006 08:27:09 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-57-52.inter.net.il [80.230.57.52]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id FAY01177 (AUTH halo1); Fri, 30 Jun 2006 15:13:52 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org In-reply-to: <1151654560.583352.48720@x69g2000cwx.googlegroups.com> (l26wang@gmail.com) 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:35760 Archived-At: > From: "Le Wang" > Date: 30 Jun 2006 01:02:40 -0700 > > (if (string-match "win" (prin1-to-string system-type)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ It's much easier to use (symbol-name system-type). That's if you really need the string representation of system-type; you could simply use (eq system-type 'windows-nt) or (memq system-type '(windows-nt cygwin)) instead.