From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?iso-8859-1?Q?Bockg=E5rd?=) Newsgroups: gmane.emacs.help Subject: Re: anybody ever write a CPP demacrofier for Emacs? Date: Tue, 26 Oct 2004 05:38:12 +0200 Organization: Chalmers University of Technology, Sweden Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1098805270 8296 80.91.229.6 (26 Oct 2004 15:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 15:41:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 26 17:40:56 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMTRP-00007z-00 for ; Tue, 26 Oct 2004 17:40:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMTZ7-0000fC-4i for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2004 11:48:53 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!News-Peer-Europe!news.stupi.se!newsfeed.sunet.se!news01.sunet.se!129.16.116.9.MISMATCH!dd.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: frealaf.dd.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (usg-unix-v) Cancel-Lock: sha1:kp9sDg2qYcGp12mxj6DZiv/3y64= Original-Xref: shelby.stanford.edu gnu.emacs.help:126063 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21442 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21442 Hattuari writes: > Does anybody know of an Emacs package the can expand CPP macros and > replace the macro with the expansion? It's part of the standard Emacs C mode. ,---- | C-c C-e runs the command c-macro-expand | which is an interactive autoloaded Lisp function in `cmacexp'. | It is bound to C-c C-e, . | (c-macro-expand START END SUBST) | | Expand C macros in the region, using the C preprocessor. | Normally display output in temp buffer, but | prefix arg means replace the region with it. | | `c-macro-preprocessor' specifies the preprocessor to use. | Prompt for arguments to the preprocessor (e.g. `-DDEBUG -I ./include') | if the user option `c-macro-prompt-flag' is non-nil. | | Noninteractive args are START, END, SUBST. | For use inside Lisp programs, see also `c-macro-expansion'. | | [back] `---- -- Johan Bockgård