emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c-macro-expand isn't part of CC Mode [Was: cpp use in cc-mode is broken]


From: Alan Mackenzie
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)

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)







reply via email to

[Prev in Thread] Current Thread [Next in Thread]