unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org, emacs-pretest-bug@gnu.org
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)	[thread overview]
Message-ID: <Pine.LNX.3.96.1050503204007.426B-100000@acm.acm> (raw)
In-Reply-To: <d69e7f6a05042907184bd4842d@mail.gmail.com>

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


       reply	other threads:[~2005-05-03 21:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d69e7f6a05042907184bd4842d@mail.gmail.com>
2005-05-03 21:00 ` Alan Mackenzie [this message]
2005-05-03 22:05   ` c-macro-expand isn't part of CC Mode [Was: cpp use in cc-mode is broken] Nick Roberts
2005-05-10 21:56     ` c-macro-expand isn't part of CC Mode Martin Stjernholm
2005-05-04 20:54   ` c-macro-expand isn't part of CC Mode [Was: cpp use in cc-mode is broken] Eli Zaretskii
2005-05-05 19:44   ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.3.96.1050503204007.426B-100000@acm.acm \
    --to=acm@muc.de \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).