From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: /lib/cpp not found in c-mode Date: Mon, 2 May 2005 13:29:49 +1200 Message-ID: <17013.33421.228027.508547@farnswood.snap.net.nz> References: <01c54e8b$Blat.v2.4$b7e84380@zahav.net.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1115066565 21695 80.91.229.2 (2 May 2005 20:42:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 May 2005 20:42:45 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 02 22:42:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DShjB-0003US-A4 for ged-emacs-devel@m.gmane.org; Mon, 02 May 2005 22:41:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DShq9-0002u6-7e for ged-emacs-devel@m.gmane.org; Mon, 02 May 2005 16:48:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DSfnp-0008D2-GF for emacs-devel@gnu.org; Mon, 02 May 2005 14:37:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DSfmy-0007lg-PF for emacs-devel@gnu.org; Mon, 02 May 2005 14:37:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSfi3-0005Be-RF for emacs-devel@gnu.org; Mon, 02 May 2005 14:31:59 -0400 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_ARCFOUR_SHA:16) (Exim 4.34) id 1DSfRO-0004Ye-K9; Mon, 02 May 2005 14:14:46 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by mx20.gnu.org with esmtp (Exim 4.34) id 1DSPnB-0007In-06; Sun, 01 May 2005 21:32:13 -0400 Original-Received: from farnswood.snap.net.nz (p106-tnt1.snap.net.nz [202.124.110.106]) by viper.snap.net.nz (Postfix) with ESMTP id 86F714B05E4; Mon, 2 May 2005 13:29:38 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 289B562A99; Mon, 2 May 2005 02:29:49 +0100 (BST) Original-To: Eli Zaretskii In-Reply-To: <01c54e8b$Blat.v2.4$b7e84380@zahav.net.il> X-Mailer: VM 7.19 under Emacs 22.0.50.30 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:36600 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36600 > Not only that, it IMHO shouldn't call "/lib/cpp" unconditionally, but > rather try several possible file commands, including "gcc -E", "cpp" > (without leading directories), etc. Hopefully, it fails gracefully now. I use "gcc -E -dM -" now to generate a define list. Have you any ideas to make it more general? Nick