From: Eli Zaretskii <eliz@gnu.org>
To: martin rudalics <rudalics@gmx.at>, 1004@emacsbugs.donarmstrong.com
Cc: bug-gnu-emacs@gnu.org
Subject: bug#1004: 23.0.60; Error visiting C files
Date: Sat, 20 Sep 2008 13:15:24 +0300 [thread overview]
Message-ID: <uvdwrp1hf.fsf@gnu.org> (raw)
In-Reply-To: <48D3E9F6.7020802@gmx.at>
> Date: Fri, 19 Sep 2008 20:05:42 +0200
> From: martin rudalics <rudalics@gmx.at>
> Cc: Eli Zaretskii <eliz@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@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.
next prev parent reply other threads:[~2008-09-20 10:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-19 16:53 bug#1004: 23.0.60; Error visiting C files Eli Zaretskii
2008-09-19 18:05 ` martin rudalics
2008-09-20 10:15 ` Eli Zaretskii [this message]
2008-09-21 11:58 ` martin rudalics
2008-09-21 17:59 ` Eli Zaretskii
2008-09-21 19:31 ` Stefan Monnier
2008-09-22 0:26 ` Glenn Morris
2008-09-26 10:11 ` Eli Zaretskii
2008-09-26 13:13 ` martin rudalics
2008-09-26 13:42 ` Juanma Barranquero
2008-09-27 8:48 ` Eli Zaretskii
2008-09-27 8:48 ` Eli Zaretskii
2008-09-19 18:13 ` Glenn Morris
2008-09-19 18:25 ` Processed: " Emacs bug Tracking System
2008-09-20 9:14 ` Eli Zaretskii
[not found] ` <mailman.19601.1221904429.18990.bug-gnu-emacs@gnu.org>
2008-09-25 13:08 ` Alan Mackenzie
2008-09-25 15:23 ` Eli Zaretskii
2008-09-25 15:59 ` Glenn Morris
2008-09-25 18:57 ` Glenn Morris
2008-09-26 9:08 ` Eli Zaretskii
2008-09-26 9:08 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uvdwrp1hf.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=1004@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
--cc=rudalics@gmx.at \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.