GNU bug report logs - #1004
23.0.60; Error visiting C files

Previous Next

Packages: emacs, cc-mode;

Reported by: Eli Zaretskii <eliz <at> fencepost.gnu.org>

Date: Fri, 19 Sep 2008 17:05:06 UTC

Severity: normal

Merged with 913, 959

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 1004 in the body.
You can then email your comments to 1004 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1004; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> fencepost.gnu.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> fencepost.gnu.org>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.0.60; Error visiting C files
Date: Fri, 19 Sep 2008 12:53:20 -0400
 emacs -Q
 C-x C-f foo.c

This produces error messages (see near the end of this report) and
does NOT enter the C Mode.

In GNU Emacs 23.0.60.67 (x86_64-unknown-linux-gnu, X toolkit)
 of 2008-09-19 on fencepost
configured using `configure  '--with-jpeg=no' '--with-png=no' '--with-gif=no' '--with-tiff=no''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
ESC [ > 0 ; 1 3 6 ; 0 c C-x C-f e m a c s . c v TAB 
e m a c s / s r c / m s d o TAB c RET C-x b * M e s 
TAB RET ESC O A ESC O A ESC O A ESC O A ESC O A ESC 
O A C-@ C-u C-n C-n ESC w C-x b RET ESC x r e p o r 
t - e m a c s - b u TAB RET

Recent messages:
("./emacs.cvs/emacs/src/emacs" "-Q")
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading cc-langs...done
Eval error in the `c-lang-defconst' for `c-cpp-matchers' in c-mode:
Eval error in the `c-lang-defconst' for `c-matchers-1' in c-mode:
File mode specification error: (error "`c-opt-cpp-prefix' got no (prior) value in c-mode (might be a cyclic reference)")
Loading vc-cvs...done
Mark set




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1004; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #10 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: 1004 <at> debbugs.gnu.org
Cc: Eli Zaretskii <eliz <at> fencepost.gnu.org>
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Fri, 19 Sep 2008 20:05:42 +0200
>  emacs -Q
>  C-x C-f foo.c
> 
> This produces error messages (see near the end of this report) and
> does NOT enter the C Mode.
[...]
> Eval error in the `c-lang-defconst' for `c-cpp-matchers' in c-mode:
> Eval error in the `c-lang-defconst' for `c-matchers-1' in c-mode:
> File mode specification error: (error "`c-opt-cpp-prefix' got no (prior) value in c-mode (might be a cyclic reference)")

See Bug#913: 23.0.60; File mode specification error for w32.c.

What shall we do about this?

martin





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#1004; Package emacs. Full text and rfc822 format available.

Message #13 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> fencepost.gnu.org>
Cc: 1004 <at> debbugs.gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Fri, 19 Sep 2008 14:13:27 -0400
reassign 1004 emacs,cc-mode
forcemerge 913 1004
stop

Eli Zaretskii wrote:

> Eval error in the `c-lang-defconst' for `c-cpp-matchers' in c-mode:
> Eval error in the `c-lang-defconst' for `c-matchers-1' in c-mode:
> File mode specification error: (error "`c-opt-cpp-prefix' got no (prior) value in c-mode (might be a cyclic reference)")

You need to bootstrap. See "bug" 913, 959.




bug reassigned from package `emacs' to `emacs,cc-mode'. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Fri, 19 Sep 2008 18:25:07 GMT) Full text and rfc822 format available.

Forcibly Merged 913 959 1004. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. (Fri, 19 Sep 2008 18:25:07 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #22 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 1004 <at> debbugs.gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Sat, 20 Sep 2008 12:14:22 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: 1004 <at> emacsbugs.donarmstrong.com
> Date: Fri, 19 Sep 2008 14:13:27 -0400
> 
> reassign 1004 emacs,cc-mode
> forcemerge 913 1004
> stop
> 
> Eli Zaretskii wrote:
> 
> > Eval error in the `c-lang-defconst' for `c-cpp-matchers' in c-mode:
> > Eval error in the `c-lang-defconst' for `c-matchers-1' in c-mode:
> > File mode specification error: (error "`c-opt-cpp-prefix' got no (prior) value in c-mode (might be a cyclic reference)")
> 
> You need to bootstrap. See "bug" 913, 959.

I don't want to bootstrap just because a few files need to be
recompiled.

I think we should fix the dependencies in lisp/Makefile.in to do that
automatically.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #27 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>, 1004 <at> debbugs.gnu.org
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Sat, 20 Sep 2008 13:15:24 +0300
> Date: Fri, 19 Sep 2008 20:05:42 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> Cc: Eli Zaretskii <eliz <at> fencepost.gnu.org>
> 
> >  emacs -Q
> >  C-x C-f foo.c
> > 
> > This produces error messages (see near the end of this report) and
> > does NOT enter the C Mode.
> [...]
> > Eval error in the `c-lang-defconst' for `c-cpp-matchers' in c-mode:
> > Eval error in the `c-lang-defconst' for `c-matchers-1' in c-mode:
> > File mode specification error: (error "`c-opt-cpp-prefix' got no (prior) value in c-mode (might be a cyclic reference)")
> 
> See Bug#913: 23.0.60; File mode specification error for w32.c.
> 
> What shall we do about this?

IMO, we should add explicit dependencies for cc*.elc files.  The patch
below works for me; does anyone see a problem with it?

2008-09-20  Eli Zaretskii  <eliz <at> gnu.org>

	* Makefile.in ($(lisp)/progmodes/cc-mode.elc): Remove.
	($(lisp)/progmodes/cc-align.elc, $(lisp)/progmodes/cc-cmds.elc)
	($(lisp)/progmodes/cc-compat.elc, $(lisp)/progmodes/cc-defs.elc)
	($(lisp)/progmodes/cc-engine.elc)
	($(lisp)/progmodes/cc-fonts.elc, $(lisp)/progmodes/cc-langs.elc)
	($(lisp)/progmodes/cc-mode.elc, $(lisp)/progmodes/cc-styles.elc)
	($(lisp)/progmodes/cc-subword.elc)
	($(lisp)/progmodes/cc-vars.elc): New dependencies.


Index: lisp/Makefile.in
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/Makefile.in,v
retrieving revision 1.158
diff -u -r1.158 Makefile.in
--- lisp/Makefile.in	6 Sep 2008 18:22:45 -0000	1.158
+++ lisp/Makefile.in	20 Sep 2008 10:12:56 -0000
@@ -1362,15 +1362,6 @@
 recompile: doit $(LOADDEFS) $(lisp)/progmodes/cc-mode.elc
 	$(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp)
 
-# CC Mode uses a compile time macro system which causes a compile time
-# dependency in cc-mode.elc on the macros in cc-langs.el and the
-# version string in cc-defs.el.
-$(lisp)/progmodes/cc-mode.elc: \
-	$(lisp)/progmodes/cc-mode.el \
-	$(lisp)/progmodes/cc-langs.el \
-	$(lisp)/progmodes/cc-defs.el
-	$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $<
-
 # Update MH-E internal autoloads. These are not to be confused with
 # the autoloads for the MH-E entry points, which are already in loaddefs.el.
 MH_E_DIR = $(lisp)/mh-e
@@ -1460,4 +1451,51 @@
 	$(emacs) -l $(lisp)/emacs-lisp/check-declare \
 	  --eval '(check-declare-directory "$(lisp)")'
 
+# Dependencies
+
+# CC Mode uses a compile time macro system which causes a compile time
+# dependency in cc-*.elc files on the macros in other cc-*.el and the
+# version string in cc-defs.el.
+$(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-awk.elc\
+ $(lisp)/progmodes/cc-cmds.elc $(lisp)/progmodes/cc-compat.elc\
+ $(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-fonts.elc\
+ $(lisp)/progmodes/cc-langs.elc $(lisp)/progmodes/cc-menus.elc\
+ $(lisp)/progmodes/cc-mode.elc $(lisp)/progmodes/cc-styles.elc\
+ $(lisp)/progmodes/cc-subword.elc $(lisp)/progmodes/cc-vars.elc: \
+   $(lisp)/progmodes/cc-bytecomp.elc $(lisp)/progmodes/cc-defs.elc
+
+$(lisp)/progmodes/cc-align.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-cmds.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-compat.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-styles.elc \
+   $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-defs.elc: $(lisp)/progmodes/cc-bytecomp.elc \
+   $(lisp)/emacs-lisp/cl.elc $(lisp)/emacs-lisp/regexp-opt.elc
+
+$(lisp)/progmodes/cc-engine.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc
+
+$(lisp)/progmodes/cc-fonts.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
+   $(lisp)/font-lock.elc
+
+$(lisp)/progmodes/cc-langs.elc: $(lisp)/progmodes/cc-vars.elc \
+   $(lisp)/emacs-lisp/cl.elc
+
+$(lisp)/progmodes/cc-mode.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
+   $(lisp)/progmodes/cc-styles.elc $(lisp)/progmodes/cc-cmds.elc \
+   $(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-menus.elc
+
+$(lisp)/progmodes/cc-styles.elc: $(lisp)/progmodes/cc-vars.elc \
+   $(lisp)/progmodes/cc-align.elc
+
+$(lisp)/progmodes/cc-subword.elc: $(lisp)/progmodes/cc-cmds.elc
+
+$(lisp)/progmodes/cc-vars.elc: $(lisp)/custom.elc $(lisp)/widget.elc
 # Makefile ends here.





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #37 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 1004 <at> debbugs.gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Sun, 21 Sep 2008 13:58:47 +0200
> IMO, we should add explicit dependencies for cc*.elc files.  The patch
> below works for me; does anyone see a problem with it?

Please install.  I suppose we'll notice soon enough if something
goes wrong ;-)

martin





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #42 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 1004 <at> debbugs.gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Sun, 21 Sep 2008 19:59:43 +0200
> Date: Sun, 21 Sep 2008 13:58:47 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: 1004 <at> emacsbugs.donarmstrong.com
> 
> > IMO, we should add explicit dependencies for cc*.elc files.  The patch
> > below works for me; does anyone see a problem with it?
> 
> Please install.  I suppose we'll notice soon enough if something
> goes wrong ;-)

Thanks.

Stefan, Yidong, Glenn: any objections? thoughts?




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #47 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 1004 <at> debbugs.gnu.org, martin rudalics <rudalics <at> gmx.at>
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Sun, 21 Sep 2008 15:31:07 -0400
>> Please install.  I suppose we'll notice soon enough if something
>> goes wrong ;-)

> Stefan, Yidong, Glenn: any objections? thoughts?

No objection from me.  I hope at some point we can deal with those
dependencies in a more automatic way, but in the mean time, hand-made
dependencies are better than nothing.


        Stefan




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Message #50 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 1004 <at> debbugs.gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Sun, 21 Sep 2008 20:26:08 -0400
Stefan Monnier wrote:

> No objection from me.  I hope at some point we can deal with those
> dependencies in a more automatic way, but in the mean time, hand-made
> dependencies are better than nothing.

I can add nothing to that; but thanks for asking.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Alan Mackenzie <acm <at> colin2.muc.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #55 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Alan Mackenzie <acm <at> colin2.muc.de>
To: gnu-emacs-bug <at> moderators.isc.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: 25 Sep 2008 15:08:25 +0200
Hi, Eli!

I just noticed this one in a Usenet spool.  I don't seem to be
subscribed to bug-gnu-emacs (I thought I was) at the moment, and
nothing got forwarded to me.

Eli Zaretskii <eliz <at> gnu.org> wrote:
>> From: Glenn Morris <rgm <at> gnu.org>
>> Cc: 1004 <at> emacsbugs.donarmstrong.com
>> Date: Fri, 19 Sep 2008 14:13:27 -0400

>> reassign 1004 emacs,cc-mode
>> forcemerge 913 1004
>> stop

>> Eli Zaretskii wrote:

>> > Eval error in the `c-lang-defconst' for `c-cpp-matchers' in c-mode:
>> > Eval error in the `c-lang-defconst' for `c-matchers-1' in c-mode:
>> > File mode specification error: (error "`c-opt-cpp-prefix' got no (prior) value in c-mode (might be a cyclic reference)")

>> You need to bootstrap. See "bug" 913, 959.

> I don't want to bootstrap just because a few files need to be
> recompiled.

Recompile in this order:
(i) cc-defs.el (if necesaary); this file contains mostly macros.
(ii) cc-langs.el (..); this contains "language variables", those whose
  values differ between C, C++, ....., AWK.
(iii) cc-engine.el and cc-mode.el (uses macros generated in (i) and
  (ii)).

> I think we should fix the dependencies in lisp/Makefile.in to do that
> automatically.

I tried to do this some while back, but got bogged down in the
complixities of make.

-- 
Alan Mackenzie (Nuremberg, Germany).






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #60 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alan Mackenzie <acm <at> colin2.muc.de>, 1004 <at> debbugs.gnu.org
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Thu, 25 Sep 2008 18:23:36 +0300
> Date: 25 Sep 2008 15:08:25 +0200
> From: Alan Mackenzie <acm <at> colin2.muc.de>
> Date: Thu, 25 Sep 2008 13:08:24 +0000 (UTC)
> Cc: 
> 
> I just noticed this one in a Usenet spool.  I don't seem to be
> subscribed to bug-gnu-emacs (I thought I was) at the moment, and
> nothing got forwarded to me.

Well, how about subscribing?

> >> You need to bootstrap. See "bug" 913, 959.
> 
> > I don't want to bootstrap just because a few files need to be
> > recompiled.
> 
> Recompile in this order:
> (i) cc-defs.el (if necesaary); this file contains mostly macros.
> (ii) cc-langs.el (..); this contains "language variables", those whose
>   values differ between C, C++, ....., AWK.
> (iii) cc-engine.el and cc-mode.el (uses macros generated in (i) and
>   (ii)).
> 
> > I think we should fix the dependencies in lisp/Makefile.in to do that
> > automatically.
> 
> I tried to do this some while back, but got bogged down in the
> complixities of make.

I posted a patch (reproduced below), which I intend to install in a
day or two, when I have time.  If you have comments about that patch,
I'm all ears.


2008-09-20  Eli Zaretskii  <eliz <at> gnu.org>

	* Makefile.in ($(lisp)/progmodes/cc-mode.elc): Remove.
	($(lisp)/progmodes/cc-align.elc, $(lisp)/progmodes/cc-cmds.elc)
	($(lisp)/progmodes/cc-compat.elc, $(lisp)/progmodes/cc-defs.elc)
	($(lisp)/progmodes/cc-engine.elc)
	($(lisp)/progmodes/cc-fonts.elc, $(lisp)/progmodes/cc-langs.elc)
	($(lisp)/progmodes/cc-mode.elc, $(lisp)/progmodes/cc-styles.elc)
	($(lisp)/progmodes/cc-subword.elc)
	($(lisp)/progmodes/cc-vars.elc): New dependencies.


Index: lisp/Makefile.in
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/Makefile.in,v
retrieving revision 1.158
diff -u -r1.158 Makefile.in
--- lisp/Makefile.in	6 Sep 2008 18:22:45 -0000	1.158
+++ lisp/Makefile.in	20 Sep 2008 10:12:56 -0000
@@ -1362,15 +1362,6 @@
 recompile: doit $(LOADDEFS) $(lisp)/progmodes/cc-mode.elc
 	$(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp)
 
-# CC Mode uses a compile time macro system which causes a compile time
-# dependency in cc-mode.elc on the macros in cc-langs.el and the
-# version string in cc-defs.el.
-$(lisp)/progmodes/cc-mode.elc: \
-	$(lisp)/progmodes/cc-mode.el \
-	$(lisp)/progmodes/cc-langs.el \
-	$(lisp)/progmodes/cc-defs.el
-	$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $<
-
 # Update MH-E internal autoloads. These are not to be confused with
 # the autoloads for the MH-E entry points, which are already in loaddefs.el.
 MH_E_DIR = $(lisp)/mh-e
@@ -1460,4 +1451,51 @@
 	$(emacs) -l $(lisp)/emacs-lisp/check-declare \
 	  --eval '(check-declare-directory "$(lisp)")'
 
+# Dependencies
+
+# CC Mode uses a compile time macro system which causes a compile time
+# dependency in cc-*.elc files on the macros in other cc-*.el and the
+# version string in cc-defs.el.
+$(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-awk.elc\
+ $(lisp)/progmodes/cc-cmds.elc $(lisp)/progmodes/cc-compat.elc\
+ $(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-fonts.elc\
+ $(lisp)/progmodes/cc-langs.elc $(lisp)/progmodes/cc-menus.elc\
+ $(lisp)/progmodes/cc-mode.elc $(lisp)/progmodes/cc-styles.elc\
+ $(lisp)/progmodes/cc-subword.elc $(lisp)/progmodes/cc-vars.elc: \
+   $(lisp)/progmodes/cc-bytecomp.elc $(lisp)/progmodes/cc-defs.elc
+
+$(lisp)/progmodes/cc-align.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-cmds.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-compat.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-styles.elc \
+   $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-defs.elc: $(lisp)/progmodes/cc-bytecomp.elc \
+   $(lisp)/emacs-lisp/cl.elc $(lisp)/emacs-lisp/regexp-opt.elc
+
+$(lisp)/progmodes/cc-engine.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc
+
+$(lisp)/progmodes/cc-fonts.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
+   $(lisp)/font-lock.elc
+
+$(lisp)/progmodes/cc-langs.elc: $(lisp)/progmodes/cc-vars.elc \
+   $(lisp)/emacs-lisp/cl.elc
+
+$(lisp)/progmodes/cc-mode.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
+   $(lisp)/progmodes/cc-styles.elc $(lisp)/progmodes/cc-cmds.elc \
+   $(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-menus.elc
+
+$(lisp)/progmodes/cc-styles.elc: $(lisp)/progmodes/cc-vars.elc \
+   $(lisp)/progmodes/cc-align.elc
+
+$(lisp)/progmodes/cc-subword.elc: $(lisp)/progmodes/cc-cmds.elc
+
+$(lisp)/progmodes/cc-vars.elc: $(lisp)/custom.elc $(lisp)/widget.elc
 # Makefile ends here.










Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Message #68 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Alan Mackenzie <acm <at> colin2.muc.de>
Cc: 1004 <at> debbugs.gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Thu, 25 Sep 2008 11:59:10 -0400
Alan Mackenzie wrote:

> I just noticed this one in a Usenet spool.  I don't seem to be
> subscribed to bug-gnu-emacs (I thought I was) at the moment, and
> nothing got forwarded to me.

Perhaps you have missed these too:

http://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=cc-mode




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Message #71 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 1004 <at> debbugs.gnu.org
Cc: Alan Mackenzie <acm <at> colin2.muc.de>
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Thu, 25 Sep 2008 14:57:01 -0400
> Alan Mackenzie wrote:
>
>> I just noticed this one in a Usenet spool.  I don't seem to be
>> subscribed to bug-gnu-emacs (I thought I was) at the moment, and
>> nothing got forwarded to me.

My previous cc to you bounced with:

  acm <at> colin2.muc.de
    SMTP error from remote mail server after RCPT TO:<acm <at> colin2.muc.de>:
    host mx1.muc.de [193.149.48.15]: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

Perhaps your gnu-emacs-bug delivery was disabled due to bounces?




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #76 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>, Alan Mackenzie <acm <at> colin2.muc.de>
Cc: bug-gnu-emacs <at> gnu.org, emacs-devel <at> gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Fri, 26 Sep 2008 12:08:56 +0300
> Date: Thu, 25 Sep 2008 14:57:01 -0400
> Cc: Alan Mackenzie <acm <at> colin2.muc.de>
> 
> > Alan Mackenzie wrote:
> >
> >> I just noticed this one in a Usenet spool.  I don't seem to be
> >> subscribed to bug-gnu-emacs (I thought I was) at the moment, and
> >> nothing got forwarded to me.
> 
> My previous cc to you bounced with:
> 
>   acm <at> colin2.muc.de
>     SMTP error from remote mail server after RCPT TO:<acm <at> colin2.muc.de>:
>     host mx1.muc.de [193.149.48.15]: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

So did mine:

   This report relates to a message you sent with the following header fields:

     Message-id: <umyhwl05j.fsf <at> gnu.org>
     Date: Thu, 25 Sep 2008 18:23:36 +0300
     From: Eli Zaretskii <eliz <at> gnu.org>
     To: Alan Mackenzie <acm <at> colin2.muc.de>, 1004 <at> debbugs.gnu.org
     Subject: Re: bug#1004: 23.0.60; Error visiting C files

   Your message cannot be delivered to the following recipients:

     Recipient address: acm <at> colin2.muc.de
     Reason: Remote SMTP server has rejected address
     Diagnostic code: smtp;553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
     Remote system: dns;mx1.muc.de (TCP|84.95.2.1|16553|193.149.48.15|25) (mail.muc.de ESMTP)







Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #81 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 1004 <at> debbugs.gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Fri, 26 Sep 2008 13:11:09 +0300
> Date: Sun, 21 Sep 2008 13:58:47 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: 1004 <at> emacsbugs.donarmstrong.com
> 
> > IMO, we should add explicit dependencies for cc*.elc files.  The patch
> > below works for me; does anyone see a problem with it?
> 
> Please install.  I suppose we'll notice soon enough if something
> goes wrong ;-)

Done.




Message #82 received at 1004-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 1004-done <at> debbugs.gnu.org
Subject: bug#1004: 23.0.60; Error visiting C files
Date: Fri, 26 Sep 2008 13:30:39 +0300
Fixed with this patch:

2008-09-20  Eli Zaretskii  <eliz <at> gnu.org>

	* Makefile.in ($(lisp)/progmodes/cc-mode.elc): Remove.
	($(lisp)/progmodes/cc-align.elc, $(lisp)/progmodes/cc-cmds.elc)
	($(lisp)/progmodes/cc-compat.elc, $(lisp)/progmodes/cc-defs.elc)
	($(lisp)/progmodes/cc-engine.elc)
	($(lisp)/progmodes/cc-fonts.elc, $(lisp)/progmodes/cc-langs.elc)
	($(lisp)/progmodes/cc-mode.elc, $(lisp)/progmodes/cc-styles.elc)
	($(lisp)/progmodes/cc-subword.elc)
	($(lisp)/progmodes/cc-vars.elc): New dependencies.


Index: lisp/Makefile.in
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/Makefile.in,v
retrieving revision 1.158
diff -u -r1.158 Makefile.in
--- lisp/Makefile.in	6 Sep 2008 18:22:45 -0000	1.158
+++ lisp/Makefile.in	20 Sep 2008 10:12:56 -0000
@@ -1362,15 +1362,6 @@
 recompile: doit $(LOADDEFS) $(lisp)/progmodes/cc-mode.elc
 	$(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp)
 
-# CC Mode uses a compile time macro system which causes a compile time
-# dependency in cc-mode.elc on the macros in cc-langs.el and the
-# version string in cc-defs.el.
-$(lisp)/progmodes/cc-mode.elc: \
-	$(lisp)/progmodes/cc-mode.el \
-	$(lisp)/progmodes/cc-langs.el \
-	$(lisp)/progmodes/cc-defs.el
-	$(emacs) $(BYTE_COMPILE_EXTRA_FLAGS) -f batch-byte-compile $<
-
 # Update MH-E internal autoloads. These are not to be confused with
 # the autoloads for the MH-E entry points, which are already in loaddefs.el.
 MH_E_DIR = $(lisp)/mh-e
@@ -1460,4 +1451,51 @@
 	$(emacs) -l $(lisp)/emacs-lisp/check-declare \
 	  --eval '(check-declare-directory "$(lisp)")'
 
+# Dependencies
+
+# CC Mode uses a compile time macro system which causes a compile time
+# dependency in cc-*.elc files on the macros in other cc-*.el and the
+# version string in cc-defs.el.
+$(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-awk.elc\
+ $(lisp)/progmodes/cc-cmds.elc $(lisp)/progmodes/cc-compat.elc\
+ $(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-fonts.elc\
+ $(lisp)/progmodes/cc-langs.elc $(lisp)/progmodes/cc-menus.elc\
+ $(lisp)/progmodes/cc-mode.elc $(lisp)/progmodes/cc-styles.elc\
+ $(lisp)/progmodes/cc-subword.elc $(lisp)/progmodes/cc-vars.elc: \
+   $(lisp)/progmodes/cc-bytecomp.elc $(lisp)/progmodes/cc-defs.elc
+
+$(lisp)/progmodes/cc-align.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-cmds.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-compat.elc: \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-styles.elc \
+   $(lisp)/progmodes/cc-engine.elc
+
+$(lisp)/progmodes/cc-defs.elc: $(lisp)/progmodes/cc-bytecomp.elc \
+   $(lisp)/emacs-lisp/cl.elc $(lisp)/emacs-lisp/regexp-opt.elc
+
+$(lisp)/progmodes/cc-engine.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc
+
+$(lisp)/progmodes/cc-fonts.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
+   $(lisp)/font-lock.elc
+
+$(lisp)/progmodes/cc-langs.elc: $(lisp)/progmodes/cc-vars.elc \
+   $(lisp)/emacs-lisp/cl.elc
+
+$(lisp)/progmodes/cc-mode.elc: $(lisp)/progmodes/cc-langs.elc \
+   $(lisp)/progmodes/cc-vars.elc $(lisp)/progmodes/cc-engine.elc \
+   $(lisp)/progmodes/cc-styles.elc $(lisp)/progmodes/cc-cmds.elc \
+   $(lisp)/progmodes/cc-align.elc $(lisp)/progmodes/cc-menus.elc
+
+$(lisp)/progmodes/cc-styles.elc: $(lisp)/progmodes/cc-vars.elc \
+   $(lisp)/progmodes/cc-align.elc
+
+$(lisp)/progmodes/cc-subword.elc: $(lisp)/progmodes/cc-cmds.elc
+
+$(lisp)/progmodes/cc-vars.elc: $(lisp)/custom.elc $(lisp)/widget.elc
 # Makefile ends here.






Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to martin rudalics <rudalics <at> gmx.at>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #87 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 1004 <at> debbugs.gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Fri, 26 Sep 2008 15:13:39 +0200
>>> IMO, we should add explicit dependencies for cc*.elc files.  The patch
>>> below works for me; does anyone see a problem with it?
>> Please install.  I suppose we'll notice soon enough if something
>> goes wrong ;-)
> 
> Done.

So far no problems here.

Thanks, martin.





Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to "Juanma Barranquero" <lekktu <at> gmail.com>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #92 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: "Juanma Barranquero" <lekktu <at> gmail.com>
To: "martin rudalics" <rudalics <at> gmx.at>, 1004 <at> debbugs.gnu.org
Cc: "Eli Zaretskii" <eliz <at> gnu.org>
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Fri, 26 Sep 2008 15:42:55 +0200
On Fri, Sep 26, 2008 at 15:13, martin rudalics <rudalics <at> gmx.at> wrote:

> So far no problems here.

I've bootstrapped successfully, and a recompilation afterwards has
also been trouble free.

             Juanma




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #97 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: martin rudalics <rudalics <at> gmx.at>
Cc: 1004 <at> debbugs.gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Sat, 27 Sep 2008 11:48:47 +0300
> Date: Fri, 26 Sep 2008 15:13:39 +0200
> From: martin rudalics <rudalics <at> gmx.at>
> CC: 1004 <at> emacsbugs.donarmstrong.com
> 
> >>> IMO, we should add explicit dependencies for cc*.elc files.  The patch
> >>> below works for me; does anyone see a problem with it?
> >> Please install.  I suppose we'll notice soon enough if something
> >> goes wrong ;-)
> > 
> > Done.
> 
> So far no problems here.

Thanks for testing.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com:
bug#1004; Package emacs,cc-mode. Full text and rfc822 format available.

Acknowledgement sent to Eli Zaretskii <eliz <at> gnu.org>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>, don <at> donarmstrong.com. Full text and rfc822 format available.

Message #102 received at 1004 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: rudalics <at> gmx.at, 1004 <at> debbugs.gnu.org
Subject: Re: bug#1004: 23.0.60; Error visiting C files
Date: Sat, 27 Sep 2008 11:48:59 +0300
> Date: Fri, 26 Sep 2008 15:42:55 +0200
> From: "Juanma Barranquero" <lekktu <at> gmail.com>
> Cc: "Eli Zaretskii" <eliz <at> gnu.org>
> 
> On Fri, Sep 26, 2008 at 15:13, martin rudalics <rudalics <at> gmx.at> wrote:
> 
> > So far no problems here.
> 
> I've bootstrapped successfully, and a recompilation afterwards has
> also been trouble free.

Thanks.




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Sat, 25 Oct 2008 14:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 34 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.