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: Tue, 3 May 2005 16:05:01 +1200 Message-ID: <17014.63597.251623.642889@farnswood.snap.net.nz> 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> 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 1115145635 4068 80.91.229.2 (3 May 2005 18:40:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 May 2005 18:40:35 +0000 (UTC) Cc: "Jan D." , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 03 20:40:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DT2Jc-0005WM-FN for ged-emacs-devel@m.gmane.org; Tue, 03 May 2005 20:40:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DT2Pu-0006tu-Ex for ged-emacs-devel@m.gmane.org; Tue, 03 May 2005 14:46:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DSofb-0000kg-2f for emacs-devel@gnu.org; Tue, 03 May 2005 00:06:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DSofY-0000ii-9b for emacs-devel@gnu.org; Tue, 03 May 2005 00:06:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSofW-0000d7-UR for emacs-devel@gnu.org; Tue, 03 May 2005 00:05:59 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DSoj5-0007rS-CJ for emacs-devel@gnu.org; Tue, 03 May 2005 00:09:39 -0400 Original-Received: from farnswood.snap.net.nz (p117-tnt2.snap.net.nz [202.124.108.117]) by viper.snap.net.nz (Postfix) with ESMTP id A7BA34B0789; Tue, 3 May 2005 16:04:56 +1200 (NZST) Original-Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 1A4EF62A99; Tue, 3 May 2005 05:05:01 +0100 (BST) Original-To: Stefan Monnier In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.32 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:36620 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36620 > 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. And since it doesn't do that, I've found > it of little use. OK. I see now. For Emacs, the source seems to have the same flags. So, in that case, I guess you could do something like: (setq c-macro-cppflags "-Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/home/nick/emacs/src -D_BSD_SOURCE -I/usr/X11R6/include") Nick