-Current maintainer : Martin Stjernholm
+Current maintainer : Alan Mackenzie
Contact address : firstname.lastname@example.org
- As of this writing (June 10, 2003), CC Mode currently works out of
- the box with XEmacs versions 19.15, 19.16, 20.3, 20.4, and 21.x,
- and with Emacs versions 19.34, 20.x, and 21.x. (It will very
- likely work with later versions too, when they become available.)
+ As of this writing (August 2011), CC Mode currently works
+ out of the box with XEmacs versions 21.4 and later, and with Emacs
+ versions 22 and later. (It might well still work with some earlier
+ versions and will very likely work with later versions too, when
+ they become available.)
Preformatted versions of the manual in DVI, PostScript, and Info,
- are all available at the CC Mode web page.
+ are all available at the CC Mode web page. The Info manual has
+ two variants, one for GNU Emacs, the other for XEmacs - the only
+ differences between them are the targets of some cross references
- To build the manual yourself, you will need a recent Texinfo
- release (as of this writing, it's known to work with Texinfo 4.3
- but somewhat older releases might be ok too). To build the Info
+ To build the manual yourself, you will need Texinfo 4.7 or later.
- % makeinfo cc-mode.texi
+ % makeinfo cc-mode.texi # For GNU Emacs
+ % makeinfo -DXEMACS cc-mode.texi # For XEmacs
- To make the DVI version,
+ To make the DVI version, type:
information on installing CC Mode, please see the CC Mode web site
+ If you're using XEmacs, make sure you've got the "advice" package
It is highly recommended that you byte-compile CC Mode for
% $(EMACS) -batch -no-site-file -q -f batch-byte-compile cc-*.el
where $(EMACS) is either emacs or xemacs depending on the flavor
- If you compile with XEmacs 19, you'll get a lot of warnings. They
+ you use. Note that the byte compiled files from one version of
+ (X)Emacs are likely not to work on a different version - compile
+ them fresh when you upgrade your (X)Emacs version.
(X)Emacs. A directory has higher precendence than all directories
after it in the load-path list.
- If you're going to be using AWK Mode, insert the following line
- into your .emacs or init.el file:
- (autoload 'awk-mode "cc-mode" nil t)
- This will cause (X)Emacs to use the new AWK Mode for AWK files,
- rather than the older mode contained in the file awk-mode.elc.
- (But see the note below under "Compatibility Issues".)
To test that you have things set up correctly, visit a C file and
CC Mode should work fine with most versions of Emacs and XEmacs
which aren't ancient (see the introduction above).
- However, in Emacs 19.34 the Custom library doesn't work with CC
- Mode, so the customizable variables support won't be compiled in
- there. You need to get a later Custom library and make sure it's
- loaded when CC Mode is compiled to enable it.
- The new AWK Mode requires a feature (syntax-table text properties)
- which first appeared in Emacs 20.1 and XEmacs 21.4. If you are
- still using an older version of (X)Emacs, CC Mode will revert to
- using the older AWK Mode which is distributed with (X)Emacs (from
- file awk-mode.elc) for AWK files, even when the autoload form (see
- above) appears in your .emacs or init.el file. Upgrading your
- (X)Emacs is strongly recommended if this is the case. You can
- check which AWK Mode you are running by displaying the mode
- documentation string with C-h m from an AWK buffer. The newer
- mode's doc string contains "to submit a problem report, enter `C-c
- C-b'" near the top of the doc string where the older mode has
- "This is much like C mode except ....".
For more details about interactions with different packages, see