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: Tue, 03 May 2005 16:23:40 -0400 Message-ID: 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> <01c55014$Blat.v2.4$59df46a0@zahav.net.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115237282 10930 80.91.229.2 (4 May 2005 20:08:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 20:08:02 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 04 22:07:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTQ9S-0005Bm-3G for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 22:07:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTQGp-0001dT-5z for ged-emacs-devel@m.gmane.org; Wed, 04 May 2005 16:14:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DT9Hp-00010K-63 for emacs-devel@gnu.org; Tue, 03 May 2005 22:06:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DT9Gg-0008Uh-Rx for emacs-devel@gnu.org; Tue, 03 May 2005 22:05:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DT9Gg-0008Jm-9v for emacs-devel@gnu.org; Tue, 03 May 2005 22:05:42 -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 1DT9KL-0002AC-RS; Tue, 03 May 2005 22:09:29 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by mx20.gnu.org with esmtp (Exim 4.34) id 1DT3xE-0006pD-JS; Tue, 03 May 2005 16:25:16 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 0F4AB340010; Tue, 3 May 2005 16:23:46 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id D49284AC1E5; Tue, 3 May 2005 16:23:40 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id CBC28E6C1D; Tue, 3 May 2005 16:23:40 -0400 (EDT) Original-To: Eli Zaretskii In-Reply-To: <01c55014$Blat.v2.4$59df46a0@zahav.net.il> (Eli Zaretskii's message of "Tue, 03 May 2005 22:13:35 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.839, requis 5, autolearn=not spam, AWL 0.06, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca 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:36652 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36652 >> Don't know about others, but the reason why I don't use c-macro-expand is >> because it basically can't work right without parsing my Makefile(s) to >> know which include dirs should be used. > ??? Isn't it a simple matter of looking at the Makefile and passing > the relevant switches to the preprocessor? If the Makefile is too > complex to figure out the switches, I usually invoke "make foo.o" to > see what switches it uses, then copy them into the c-macro-expand's > prompt for arguments. Seems like much too much trouble compared to the functionality offered, Stefan