From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: c-macro-expand isn't part of CC Mode [Was: cpp use in cc-mode is broken] Date: Tue, 3 May 2005 21:00:50 +0000 (GMT) Message-ID: References: Reply-To: Alan Mackenzie NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1115167999 4152 80.91.229.2 (4 May 2005 00:53:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 00:53:19 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org, emacs-pretest-bug@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Wed May 04 02:53:16 2005 Return-path: Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DT88N-0004tl-TU for sf-cc-mode-help@m.gmane.org; Wed, 04 May 2005 02:53:04 +0200 Original-Received: from projects.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam1.sourceforge.net (Postfix) with ESMTP id 9CC978833D; Tue, 3 May 2005 17:59:29 -0700 (PDT) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1DT8EE-0002c5-Pl for cc-mode-help@lists.sourceforge.net; Tue, 03 May 2005 17:59:06 -0700 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by sc8-sf-mx2.sourceforge.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41) id 1DT8EB-00004r-Da for cc-mode-help@lists.sourceforge.net; Tue, 03 May 2005 17:59:06 -0700 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DT8Dj-0004Tk-9e for bug-cc-mode@gnu.org; Tue, 03 May 2005 20:58:35 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1DT4Wp-0004pZ-Ck for bug-cc-mode@gnu.org; Tue, 03 May 2005 17:02:03 -0400 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DT4Wo-0004nd-1j; Tue, 03 May 2005 17:02:03 -0400 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id VAA00594; Tue, 3 May 2005 21:00:51 GMT X-Sender: root@acm.acm Original-To: Tim Van Holder , Nick Roberts In-Reply-To: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Score: 1.0 (+) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 1.0 FORGED_RCVD_HELO Received: contains a forged HELO Original-Sender: cc-mode-help-admin@lists.sourceforge.net Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Tue, 3 May 2005 21:00:50 +0000 (GMT) Xref: news.gmane.org gmane.emacs.cc-mode.general:2364 gmane.emacs.devel:36625 gmane.emacs.pretest.bugs:7236 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36625 Hi Tim, Hi Nick, Hi Emacs, Hi Martin! On Fri, 29 Apr 2005, Tim Van Holder wrote: >As of a few days ago, the cc-mode in cvs emacs seems to preprocess the >source file in order to determine the C macros present. Please Note: `c-macro-expand', despite its name, is _NOT_ part of CC Mode. Its name prefix "c-" is misleading here. That, and the fact that it has a binding in some of the CC Mode keymaps, is its only connection with CC Mode. (If you look carefully, you'll find it's not in the CC Mode manual. ;-) `c-macro-expand' actually lives in the file .../list/progmodes/cmacexp.el. This file was last updated 3 years 8 months ago by Eli. There seem to have been a lot of patches to cc-mode.el and friends for c-macro-expand in the last week. Would somebody please take all these changes out of the CC Mode files and put them into cmacexp.el instead. Otherwise, there's going to be confusion and significant lack of happiness when the time comes to merge the upcoming version of CC Mode (5.31) into savannah. Thanks in Advance! [ .... ] >The patches below resolve the immediate problem, just not optimally. I couldn't have put it better myself. ;-) >Index: cc-vars.el >=================================================================== >RCS file: /cvsroot/emacs/emacs/lisp/progmodes/cc-vars.el,v >retrieving revision 1.37 >diff -u -u -p -d -r1.37 cc-vars.el >--- cc-vars.el 31 Dec 2004 14:52:17 -0000 1.37 >+++ cc-vars.el 29 Apr 2005 14:11:11 -0000 [ .... ] >Index: cc-mode.el >=================================================================== >RCS file: /cvsroot/emacs/emacs/lisp/progmodes/cc-mode.el,v >retrieving revision 1.34 >diff -u -u -p -d -r1.34 cc-mode.el >--- cc-mode.el 27 Apr 2005 21:59:43 -0000 1.34 >+++ cc-mode.el 29 Apr 2005 14:11:39 -0000 -- Alan Mackenzie (Munich, Germany) ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20