From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: /lib/cpp not found in c-mode Date: Thu, 05 May 2005 10:17:14 -0400 Message-ID: <87ll6tn4hh.fsf-monnier+emacs@gnu.org> References: <17013.26868.207510.370151@farnswood.snap.net.nz> <17013.52411.51878.781739@farnswood.snap.net.nz> <17014.39042.74353.677362@farnswood.snap.net.nz> <87d5s8144e.fsf@zemdatav.stor.no-ip.org> <17017.13673.613123.524633@farnswood.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115303816 16548 80.91.229.2 (5 May 2005 14:36:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 May 2005 14:36:56 +0000 (UTC) Cc: Magnus Henoch , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 05 16:36:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DThRW-0001az-AP for ged-emacs-devel@m.gmane.org; Thu, 05 May 2005 16:35:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DThZ2-0001IT-Pc for ged-emacs-devel@m.gmane.org; Thu, 05 May 2005 10:42:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DThVe-0008KX-2E for emacs-devel@gnu.org; Thu, 05 May 2005 10:39:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DThVc-0008K8-Cu for emacs-devel@gnu.org; Thu, 05 May 2005 10:39:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DThQg-0006SW-Rp for emacs-devel@gnu.org; Thu, 05 May 2005 10:34:18 -0400 Original-Received: from [209.226.175.184] (helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DThFE-00086u-Gv for emacs-devel@gnu.org; Thu, 05 May 2005 10:22:28 -0400 Original-Received: from alfajor ([67.71.119.169]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050505141714.TIPW21470.tomts22-srv.bellnexxia.net@alfajor>; Thu, 5 May 2005 10:17:14 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id CAC97D72F6; Thu, 5 May 2005 10:17:14 -0400 (EDT) Original-To: Nick Roberts In-Reply-To: <17017.13673.613123.524633@farnswood.snap.net.nz> (Nick Roberts's message of "Thu, 5 May 2005 08:49:45 +1200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:36702 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36702 > I've now changed the condition to: > ((memq system-type '(darwin berkeley-unix)) "gcc -E -C -") Testing system-type strikes me as wrong (as usual). Since it's the penultimate entry and the last one says "/lib/cpp" we should probably just do something more like: ((not (file-executable-p "/lib/cpp")) "gcc -E -C -") -- Stefan