2020-12-31  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode.  Fix AWK Mode fontification bug, remove some unused variables

	* cc-awk.el (awk-font-lock-keywords): Replace a hard use of
	c-preprocessor-face-name by an `eval' expression which evaluates it.

	* cc-engine.el (c-in-knr-argdecl, c-laomib-put-cache, c-laomib-fix-elt):
	Remove unused bound variables.

2020-12-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: correct the handling of empty strings, also in test program

	In particular, have the macro cache invalidated after its last use in
	c-before-change.

	* cc-engine.el (top level): Enclose five def-edebug-spec's in
	eval-after-load's.

	* cc-langs.el (c-get-state-before-change-functions): Remove
	c-invalidate-macro-cache from the entries it's in, moving it to....

	* cc-mode.el (c-before-change): Call c-invalidate-macro-cache directly from
	the functions, after the call to c-invalidate-state-cache.

	* 000tests.el (cc-test-record-faces): Add handling for "empty single quoted
	strings" i.e. an invalid character quote expression.

	* bracelist-11.face: Amend for the recognition of the invalid empty single
	quoted constructs.

2020-12-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Add newish AWK Mode facilities, as used in gawk-4.

	* cc-awk.el (c-awk-font-lock-invalid-namespace-separators): New function.
	(c-awk-context-expand-fl-region): New function.
	(awk-font-lock-keywords): Enhance handling of function declarations to include
	:: tokens.  Fontify new system variable names FPAT, FUNCTAB, PREC, ROUNDMODE,
	SYNTAB.  Fontify new keywords BEGINFILE and ENDFILE.  Fontify new system
	functions asorti, dcngettext, isarray, patsplit, typeof.  Fontify the new
	directives @include, @load, @namespace.  Call
	c-awk-font-lock-invalid-namespace-separators as a matcher.

	* cc-fonts.el (top level): No longer require 'cc-awk.

	* cc-langs.el (c-before-context-fontification-functions): Give AWK the value
	c-awk-context-expand-fl-region rather than nil.

	* cc-mode.el (top level): Declare awk-mode-syntax-table as a variable.

	* awk-face-1.{awk,face}: Add tests for the new attributes, for the new system
	variables, and for the new keywords.

	* funcs-5.{awk,face}: New test files for new function declarations.

	* statement-22.{awk,face,res}: Add erroneous use of the :: token into
	  statements.  The .res file has been converted to "new" style.

2020-12-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* 000tests.el (cc-test-force-font-lock-buffer): Replace

	font-lock-fontify-buffer, which didn't fontify the entire buffer when jit-lock
	was enabled, with (font-lock-fontify-region (point-min) (point-max)).

2020-12-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: introduce a new cache for brace structures.  This fixes bug #45248

	Also fix three infinite loops.  The new cache accelerates backward searches
	for struct beginnings in c-looking-at-or-maybe-in-bracelist.

	* cc-engine.el (c-beginning-of-statement-1): In the final loop over unary
	operators, add a check (> (point) lim) to avoid certain infinite loops.
	(c-beginning-of-decl-1): In the first loop add a similar check on point and
	lim.
	(c-laomib-loop): New function extracted from
	c-looking-at-or-maybe-in-bracelist.
	(c-laomib-cache): New buffer local variable.
	(c-laomib-get-cache, c-laomib-put-cache, c-laomib-fix-elt)
	(c-laomib-invalidate-cache): New functions which implement the cache.
	(c-looking-at-or-maybe-in-bracelist): Replace two invocations of
	c-go-up-list-backwards with calls to c-parse-state.  Extract the new function
	c-laomib-loop.  Insert code which calls c-laomib-loop minimally, with the help
	of the new cache.

	* cc-mode.el (c-basic-common-init): Initialise the new cache (at mode start).
	(c-before-change): Invalidate the new cache.
	(c-fl-decl-start): Add an extra check (> (point) bod-lim) to prevent looping.
	Determine the enclosing brace to pass as arguments to
	c-looking-at-or-maybe-in-bracelist.

2020-12-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Optimize for scrolling large buffers containing few braces

	This fixes bug #25706.  It particularly pertains to .h files which contain
	only macro definitions.  Many of these files are to be found, for example, in
	the driver sections of the Linux kernel.

	* cc-engine.el (c-beginning-of-statement-1, c-on-identifier)
	(c-syntactic-skip-backward, c-find-decl-prefix-search, c-find-decl-spots)
	(c-forward-name, c-back-over-list-of-member-inits)
	(c-back-over-member-initializers, c-looking-at-inexpr-block)
	(c-guess-basic-syntax): Give search limits to, or amend existing ones to
	c-backward-syntactic-ws, c-forward-syntactic-ws, c-backward-token-2,
	c-beginning-of-statement-1.
	(c-determine-limit-no-macro): New function.
	(c-determine-limit-get-base): Remove unlimted invocation of
	c-backward-syntactic-ws.
	(c-determine-limit): Exclude movement between two different macros.  Use new
	function c-determine-limit-no-macro.
	(c-back-over-list-of-member-inits): New parameter `limit'.

	* cc-mode.el (c-unfind-coalesced-tokens, c-before-change, c-fl-decl-end):
	Give search limits to, or amend existing ones to c-backward-syntactic-ws,
	c-forward-syntactic-ws, skip-chars-backward, skip-chars-forward.

2020-12-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Optimise c-font-lock-<>-arglists, particularly for buffers with few <..> pairs

	* cc-fonts.el (c-font-lock-<>-arglists): In place of a regexp search for a
	complicated and slow regexp, search simply for "<" ouside of literals together
	with add hoc testing of other requirements for a <...> match.

	* cc-langs.el (c-nonsymbol-key): New c-lang-defvar from the c-lang-const.

2020-12-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Optimise c-parse-state for large buffers with few (if any) braces.

	* cc-engine (c-get-fallback-scan-pos): Search a maximum of 50,000 characters
	back for the two BODs.  Return nil if we dont' find them.
	(c-parse-state-get-strategy): For strategy `forward', always use the position
	`good-pos' for `start-point', even when there's a change of current macro.
	Deal with a possible return value of nil from c-get-fallback-scan-pos (as
	above).
	(c-invalidate-state-cache-1): For `c-state-cache-good-pos', instead of
	sometimes using the minimum scan pos (leading to extensive scanning of the
	entire buffer) use a point close to `here'.

2020-12-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: fix small incompatibilities between Emacs and XEmacs

	* cc-engine.el (c-parse-ps-state-to-cache)

	* cc-fonts.el (c-maybe-font-lock-wrong-style-comments): When testing (nth 7
	s), where s is a parser state, check for both values 1 (Emacs) and t
	(XEmacs).

	* cc-mode.el (c-populate-abbrev-table): Do not try to run abbrev-table-p on
	XEmacs, since it doesn't exist there.

2020-12-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Handle several K&R parameters per declaration

	* cc-engine.el (c-in-knr-argdecl): Reformulate the latter part of this
	function using c-do-declarators.

	* knr-7.{c,res}: New test files.

2020-11-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix error in cache handling.  This fixes bug #43481

	* cc-engine.el (c-full-pp-to-literal): Handle correctly END being before HERE
	by using parse-partial-sexp to get the end of the literal containing HERE.

2020-11-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-<>-notable-chars-re): Fix wrong '-' in regexp

2020-11-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: fix many compiler warnings which would appear with lexical binding

	* cc-align.el, cc-awk.el, cc-bytecomp.el, cc-cmds.el, cc-defs.el, cc-engine.el
	* cc-fonts.el, cc-langs.el, cc-mode.el, cc-subword.el, cc-vars.el: In many
	places, where function parameters are not used, prefix their names with _.

	* cc-cmds.el (c-electric-brace, c-defun-name-and-limits)
	* cc-engine.el (c-cache-to-parse-ps-state, c-full-trim-near-cache)
	(c-after-change-unmark-raw-strings, c-maybe-re-mark-raw-string)
	(c-forward-decl-or-cast-1): Remove unused local variables.

	* cc-defs.el (c-will-be-unescaped): Remove unused parameter end.
	* cc-engine.el (c-looking-at-decl-block): Remove unused parameter
	containing-sexp.
	(c-looking-at-special-brace-list): Remove unused parameter lim.
	(c-add-class-syntax): Remove unused parameter paren-state.

2020-10-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Only recognize foo (*bar) as a function pointer when followed by (

	* cc-engine.el (c-forward-over-decl-or-cast-1): (after CASE 2) test variables
	got-suffix-after-parens and at-decl-end before invoking
	c-fdoc-shift-type-backward.

	* decls-54.{cc,face}: New test files.

2020-10-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Move the handling of keyword auto into type handling for C++.

	This should allow auto, const, static, ... to be in any order.

	* cc-engine.el (c-forward-type): New return value 'no-id for when auto
	precludes the parsing of a type identifier.  Adapt processing for this.
	(c-forward-decl-or-cast-1): Use the new facility from c-forward-type.

	* cc-langs.el (c-type-modifier-prefix-kwds): Insert the value of
	c-no-type-kwds into the value.
	(c-no-type-kwds, c-no-type-key): New lang consts/vars, basically "auto".
	(c-typeless-decl-kwds, c-modifier-kwds): Remove "auto" from the C++ value.

	* decls-53.{cc,face}: New test files.

2020-10-02  Stefan Monnier  <monnier@iro.umontreal.ca>

	CC Mode: Convert the handling of c-special-indent-hook to standard usage.

	* cc-styles.el (c-set-style): Use kill-local-variable rather than copying the
	hook's global value to the local binding.
	(c-make-styles-buffer-local): Remove redundant make-variable-buffer-local.

2020-09-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: Modernize the fontification of "using"

	Since "using" is now used in three distinct ways in C++, write a special
	function to handle these rather than attempting to adapt the old regular
	expressions.

	* cc-fonts.el (c-font-lock-declarators): Amend to allow the argument TYPES to
	be a face.  This face is given to the declarator being processed.
	(c-font-lock-single-decl): Make an argument to c-font-lock-declarators nil or
	t, not merely nil or non-nil.
	(c-complex-decl-matchers): Include c-font-lock-c++-using in the C++ value of
	this variable.
	(c-font-lock-c++-using): New function.

	* cc-langs.el (c-using-kwds, c-using-key): New lang consts/vars.

	* using-2.{cc,face}, using-3.{cc,face}: New test files.

2020-09-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: handle __attribute__,etc. inside constructor argument lists

	This corrects both the fontification and indentation of these things, fixing
	bug #42270.

	* cc-engine.el (c-do-declarators): Skip over "hangon keys" and noise macros
	whilst scanning a putative C++ function.
	(c-forward-decl-or-cast-1): When checking for typeless functions, skip over
	"hangon keys" and noise macros.

	* cc-mode.el (c-fl-decl-end): Deal with certain invalid "nested declarators"
	by scanning over them with a recursive call of c-fl-decl-end.

	* cc-vars.el (c-noise-macro-names, c-noise-macro-with-parens-names): State in
	the doc strings that if either of these is a regexp, it must have a submatch 1
	which matches the noise macro exactly.

	* constructor-3.{cc,res,face}: New test files.

2020-09-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix minor bugs in the string handling functions

	These sometimes gave rise to the tail of a buffer being "stringed out".

	* cc-defs.el (c-will-be-unescaped): New macro.

	* cc-mode.el (c-before-change-check-unbalanced-strings)
	(c-after-change-mark-abnormal-strings): Fix bugs in the handling of string
	fence syntax-table text properties.

2020-09-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: handle comma separated brace initializers.

	This includes both indentation and fontification.

	* cc-engine.el (c-do-declarators): Handle brace initializers without =
	correctly.
	(c-looking-at-or-maybe-in-bracelist): Use c-do-declarators with a simple
	inline function to check that after-type-id-pos points to the start of a
	declarator.

	* cc-langs.el (c-recognize-bare-brace-inits): New lang const/variable.

	* bracelist-35.{cc,res,face}: New test files.

2020-08-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix processing for when c-multiline-string-start-char is a character

	* cc-mode.el (c-pps-to-string-delim, c-multiline-string-check-final-quote):
	Replace c-clear-char-property by c-clear-syn-tab.
	(c-multiline-string-check-final-quote): Replace c-put-char-property by
	c-put-syn-tab.

2020-07-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove redundant code from c-font-lock-fontify-region

	* cc-mode.el (c-font-lock-fontify-region): Remove variables string-fence-beg
	  and lim, and the code used to calculate them.

2020-07-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove long obsolete c-looking-at-bos.  Make c-at-expression-start-p obsolete

	Fixes bug #12263.

	* cc-engine.el (c-looking-at-bos): Remove.
	(c-at-expression-start-p): Make obsolete, with no alternative function.

2020-07-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix wrong value of comment-start-skip, fixing half of bug #41952

	Also add functions to enable correct use of CC Mode's filling functionality
	from major modes which don't initialize CC Mode fully.  These modes are
	currently js-mode and mhtml-mode.

	* cc-langs.el (comment-start-skip): Replace "\\(" by "\\(?:" so that
	(match-end 1) isn't falsely taken to be the start of the comment.

	* cc-engine.el (c-foreign-truncate-lit-pos-cache)
	(c-foreign-init-lit-pos-cache): New functions.

2020-07-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-or-c++-mode--regexp): Replace with updated regexp from Emacs

2020-06-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: optimize for repeated simple operations.

	Do this by recognising that unterminated strings in a buffer are typically
	going to be few and close together.  Also optimize code for C++ attributes.

	* cc-defs.el (c-previous-single-property-change): New macro.
	(c-put-syn-tab, c-clear-syn-tab): Turned from macros into functions, and moved
	to cc-mode.el.
	(c-clear-syn-tab-properties): Amended to use c-min/max-syn-tab-mkr.
	(c-with-extended-string-fences): Removed.

	* cc-engine-el (c-enclosing-c++-attribute): Rewritten for speed.
	(c-slow-enclosing-c++-attribute): Removed.
	(c-semi-pp-to-literal): Remove a superfluous call to
	c-with-extended-string-fences.

	* cc-mode.el (c-min-syn-tab-mkr, c-max-syn-tab-mkr): two new marker variables
	which bound the region occupied by positions with c-fl-syn-tab text
	properties.
	(c-basic-common-init): Initialize these two variables.
	(c-fl-syn-tab-region): Removed.
	(c-put-syn-tab, c-clear-syn-tab): Functions moved from cc-defs.el.
	(c-clear-string-fences): Amended to use the new scheme.
	(c-restore-string-fences): Now takes no arguments; amended to use the new
	scheme.
	(c-font-lock-fontify-region): Amended to use the new scheme.

2020-06-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode.  Fix an off by one error.  Fixes bug #41809.

	* cc-engine.el (c-full-pp-to-literal): Change > to >= (twice).

2020-06-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make switch work in AWK Mode.

	* cc-langs.el (c-block-stmt-2-kwds): Insert "switch" into the AWK Mode entry.
	(c-case-kwds): Remove the special entry for AWK Mode.

2020-06-11  Michal Nazarewicz  <mina86@mina86.com>

	CC Mode: add support for Doxygen documentation style

	* cc-fonts.el (doxygen-font-lock-doc-comments, doxygen-font-lock-keywords):
	New constants defining Doxygen comment style support.

	* cc-vars.el (c-doc-comment-style): Updated docstring to mention now supported
	Doxygen mode.

	* cc-mode.texi (Documentation Comments): mention Doxygen markup.

2020-06-01  Michal Nazarewicz  <mina86@mina86.com>

	CC Mode: add `c-lineup-ternary-bodies'  (bug#41061)

	Introduce `c-lineup-ternary-bodies' function which, when used as a c lineup
	function, aligns question mark and colon of a ternary operator.  For example:

	    return arg % 2 == 0 ? arg / 2
	                        : (3 * arg + 1);

	* cc-align.el (c-lineup-ternary-bodies): New function.
	* cc-mode.texi (Operator Line-Up Functions): Document the new function.

2020-05-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Introduce some Objective-C 2.0 keywords.  This fixes bug #5953

	* cc-langs.el (c-other-decl-kwds): New keywords @property, @dynamic,
	@synthesize, @compatibility_alias.
	(c-protection-kwds): New keywords @package, @required, @optional.
	(c-block-stmt-1-kwds): New keywords @finally, @try, @autoreleasepool.
	(c-constant-kwds): New keywords IBAction, IBOutlet.

2020-05-24  Carl Lei  <me@xecycle.info>

	Add three C++20 coroutine keywords, co_await, co_yield, and co_return

	* cc-langs.el (c-operators): Add co_await and co_yield to the C++ value of
	"Exception" keywords.
	(c-return-kwds): Create a C++ value containing co_return.
	(c-simple-stmt-kwds): Add co_return to the C++ value.

	Copyright-paperwork-exempt: yes.

2020-05-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix bug #39972, by fixing c-display-defun-name for nested defuns

	* cc-mode (c-common-init): Build add-log-current-defun-function out of
	c-defun-name-and-limits instead of the former c-defun-name.

2020-05-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Allow "static" etc. to be placed after a declaration's type name

	Fixes bug #41284.

	* cc-langs.el (c-type-decl-prefix-key): include additionally c-modifier-kwds
	in the set of keywords at the base of this lang-const.

	* decls-52.{c,face}.  A new pair of test files.

2020-05-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix bug #40052, where a very large macro was too slow in scrolling

	* cc-engine.el (c-end-of-macro): Fix faulty cache handling, where the upper
	bound of c-macro-cache was never being set.
	(c-forward-comment-minus-1): New macro which terminates unwanted indefinite
	backward searching with lots of escaped newlines in c-backward-single-comment.
	(c-backward-single-comment, c-backward-comments): Use the new macro above.

	* cc-mode.el (c-before-change-check-unbalanced-strings)
	(c-after-change-mark-abnormal-strings, c-after-change-escape-NL-in-string):
	Optimize three regexps by using shy groups, thus preventing regexp stack
	overflow while handling the large C Macro.

2020-04-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: recognize brace blocks without the hitherto required = sign

	* cc-engine.el (c-looking-at-or-maybe-in-bracelist): Add code to recognize a
	literal brace expression following an array declaration for C++.
	(c-looking-at-inexpr-block): Replace c-symbol-chars with c-symbol-char-key,
	fixing a coding error.

	* braceblock-34.{cc,res}: New test files.

2020-03-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: allow specified directives (e.g. pragma) to be indented as statements

	* cc-cmds.el (c-align-cpp-indent-to-body, c-cpp-indent-to-body-flag,
	c-electric-pragma, c-add-indent-to-body-to-abbrev-table,
	c-clear-stale-indent-to-body-abbrevs, c-toggle-cpp-indent-to-body): New
	functions and variables.

	* cc-langs.el (c-std-abbrev-keywords): New lang const/var.

	* cc-mode.el (c-populate-abbrev-table): New function
	(c-basic-common-init): call the c-populate-abbrev-table.
	(c-mode, c++-mode, objc-mode, java-mode, idl-mode, pike-mode, awk-mode):
	Remove the setting of MODE-abbrev-table.

	* cc-vars.el (c-cpp-indent-to-body-directives): New defcustom.

	* cc-mode.texi (Custom Macros): Introduce and refer to ....
	(Indenting Directives): New page documenting the new mechanism.

2020-03-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix the handling of two adjacent after-change-functionses.

	The bug involved failing to set c-new-END correctly, which lead to an
	args-out-of-range error when after-change-functions was invoked twice without
	an intervening invocation of before-change-functions.

	* cc-mode.el (c-after-change): Correct a coding error in the handling of
	c-just-done-before-change.

2020-02-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Protect against consecutive calls to before-change-functions ...

	without an intervening call to after-change-functions.  This would have been a
	workaround to bug #38691 had the causes of that bug not been removed.

	* cc-mode.el (c-just-done-before-change): Add an extra value to this variable,
	'whole-buffer, this being set by c-before-change as a signal to c-after-change
	that although c-before-change has run, it has assumed the entire buffer as the
	change region.
	(c-before-change, c-after-change): Adapt to the new meaning of the above.

2020-02-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Java Mode: Fix fontification of variable decl inside `for'

	* cc-engine.el (c-forward-declarator): In place of a test for C++ Mode, test
	for either C++ Mode or Java Mode.

	* forloop-8.{java,face}: New test files.

2020-02-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-search-backward-char-property): Fix missing \ in a regexp \n

2020-02-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fontify foo in "const auto foo :" correctly

	* cc-engine.el (c-forward-decl-or-cast-1): While attempting to find a
	declaration's identifier, recast the latest found id. as that identifier when
	there is no other type identifier and the result of the most recent
	c-forward-type call is 'maybe or 'found.  In the latter case, remove the
	id. from the found types list, too.

	* decls-51.{cc,face}: New test files.

2020-02-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Amend c-backward-sws better to handle multiline block comments

	In particular, multiline comments lacking escaped newlines.

	* cc-engine.el (c-backward-sws): Whilst searching backward for a putative
	beginning of macro, move back over block comments whose innards lack escaped
	newlines.

	* macro-33.{c,res,face}: Update to reflect this bug fix.

2020-02-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Reformulate c-end-of-macro, handling multiline block comments better

	* cc-langs.el (c-last-open-c-comment-start-on-line-re): Comment out.
	(c-open-c-comment-on-logical-line-re): Remove.

	* cc-engine.el (c-end-of-macro): Handle multiline block comments lacking
	escaped newlines using parse-partial-sexp rather than the former variables
	removed from cc-langs.el.

2020-02-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	c-end-of-macro: Handle block coment lines with unescaped NLs correctly

	* cc-langs.el (c-last-open-c-comment-start-on-line-re): Make obsolete, and
	supersede by ...
	(c-open-c-comment-on-logical-line-re): New language variable.

	* cc-engine.el (c-end-of-macro): Inside macros, handle multiline block
	comments whose line ends are not escaped correctly.

	* macro-33.{c,res,face}: New set of test files.

2020-01-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Finish the documentation for c-noise-macro-{,with-parens-}names.

	The doc strings and pertinent CC Mode manual page failed to mention that these
	variables could also be regular expressions.  Amend them.

	* cc-vars.el (c-noise-macro-names, c-noise-macro-with-parens-names): Amend the
	doc strings.

	* cc-mode.texi (Noise Macros): Amend the descriptions of the two variables.

2020-01-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Objective C Mode: Make c-forward-type work with "unsigned long", etc.

	This allows the correct fontification of and correct functioning of C-c C-z
	(c-display-defun-name) in ns_get_pixel in Emacs's src/nsimage.m.

	* cc-langs.el (c-primitive-type-prefix-kwds): For objc, use the same value as
	for c and c++ rather than the default nil.

2020-01-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Add ability to find ObjC method names.

	* cc-cmds.el (c-defun-name-1): Add Objective C method name ability.

2020-01-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Objective C Mode imenu: cease recognizing "functions" within comments, etc.

	This fixes bug #38749.

	Also cease inserting nils at the top level of the generated imenu list for
	Objc, since this caused imenu to throw an error when called from the keyboard.

	* cc-menus.el (cc-imenu-objc-function): Put a c-literal-limits test around the
	innards of the main re-search-backward loop.  Remove the consing of top-level
	nils into the list being generated.

2019-12-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Allow most functions on post-self-insert-hook to be called

	This contrasts with the previous state where no such functions got called.
	This fixes bug #38406.

	* cc-cmds.el (c--unsafe-post-self-insert-hook-functions): new variable.
	(c--call-post-self-insert-hook-more-safely-1): New function.
	(c--call-post-self-insert-hook-more-safely): New macro.
	(c-electric-pound, c-electric-brace, c-electric-slash, c-electric-star)
	(c-electric-semi&comma, c-electric-colon, c-electric-lt-gt, c-electric-paren):
	Invoke c--call-post-self-insert-hook-more-safely (which calls most of the hook
	post-self-insert-hook) at the end of each of the commands.

2019-11-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode.  Fix fontification bug with unterminated quotes on adjacent lines

	In particular, with these unterminated quotes on each of two adjacent lines,
	the following text was spuriously fontified with string face.

	* cc-defs.el (c-search-backward-char-property-with-value-on-char): New macro.

	* cc-mode.el (c-clear-string-fences): Check whether there is an unmatched
	quote at a lower buffer position which should match the current quote, rather
	than wrongly assuming the latter is unmatched and marking it with a
	punctuation syntax.
	(c-font-lock-fontify-region): Ensure all pertinent parts of the buffer have
	string fence properties applied before performing any syntactic operations on
	it; in particular, this applies to a quote at an earlier buffer position which
	"matches" one inside the region about to be fontified.

2019-11-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix two bugs in the "state cache".

	This (along with a suggestion to the OP to set
	open-paren-in-column-0-is-defun-start to nil) fixes bug #37910.  It may also
	have fixed bug #5490 and bug #18072.

	* cc-engine.el (c-state-cache-non-literal-place): Remove this non-sensical
	function, replacing it with ....
	(c-state-cache-lower-good-pos): New function.
	(c-renarrow-state-cache, c-append-lower-brace-pair-to-state-cache)
	(c-remove-stale-state-cache, c-remove-stale-state-cache-backwards): Instead of
	altering the state-cache list structure with setcar and setcdr, use setq and
	consing.
	(c-parse-state-1): Call c-state-cache-lower-good-pos rather than
	c-state-cache-non-literal-place.

2019-11-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-vars.el (c-mark-wrong-style-of-comment): Change the :version to a string

2019-11-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Widen around c-font-lock-fontify-region.  This fixes bug #38049.

	* cc-mode (c-font-lock-fontify-region): Widen in this function, to ensure that
	the CC Mode font locking mechanism can examine characters outside the given
	region.

2019-11-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode.  Allow fontification of "wrong" style comments with warning face.

	This fixes bug #4192.

	* cc-defs.el (c-font-lock-flush): New macro.

	* cc-cmds.el (c-toggle-comment-style): On toggling the comment style, invoke
	c-font-lock-flush when c-mark-wrong-style-of-comment is non-nil, to cause that
	marking to be done instead on the other style of comment.

	* cc-fonts.el (c-maybe-font-lock-wrong-style-comments): New function.
	(c-cpp-matchers): Call c-maybe-font-lock-wrong-style-comments when
	appropriate.

	* cc-vars.el (c-mark-wrong-style-of-comment): New customizable option.

	* cc-mode.texi (top level, Indentation Commands, Guessing the Style, Custom
	Macros): For some opening quote marks, correct '' to ``.
	(Minor Modes): Add an xref to the new page "Wrong Comment Style" in a
	footnote.
	(Wrong Comment Style): New page.

	* comments-8.{cc,face}, comments-9.{cc,face}, comments-10.{awk,face}: New test
	files.

2019-11-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode.  Fix slow scrolling by adding a search limit.

	This fixes bug #10149.

	* cc-fonts.el (c-font-lock-single-decl) Limit the search by
	c-go-up-list-backwards to 500 non-literal characters.

2019-10-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix positioning of point whilst inserting comments without non-ws

	* cc-cmds.el (c-guess-fill-prefix): When determining a new block comment
	prefix (i.e. there isn't one already there to copy), and that prefix is hard
	up against a comment closer, ensure there are at least two spaces before the
	closer.
	(c-indent-new-comment-line): Amend the strategy for ensuring that point isn't
	left hard up against the comment closer after M-j.

2019-10-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Optimize c-crosses-statement-barrier-p for large blocks of comment.

	This fixes bug #18134.

	* cc-engine.el (c-crosses-statement-barrier-p): Give a limit to the
	c-backward-syntactic-ws which is searching for a virtual semicolon.  In the
	main loop, Use c-forward-syntactic-ws to skip blocks of comments.

2019-10-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove unneeded backslashes from doc strings and regular expressions

	Also make miscellaneous amendments.

	* cc-align.el, cc-cmds.el, cc-defs.el, cc-engine.el, cc-fonts.el,  cc-langs.el
	* cc-vars.el: Remove lots of unneeded backslashes.

	* cc-awk.el (c-lineup-gnu-DEFUN-intro-cont)
	* cc-langs.el (c-string-innards-re-alist)
	* cc-mode.el (c-<>-multichar-token-regexp)
	(c-stmt-boundary-skip-chars-with-comma, c-auto-ops-re): Remove redundant
	"\\|\r"s from regular expressions.

	* cc-mode.el (c-make-mode-syntax-table): Correct the name of the hook
	normal-erase-is-backspace-MODE-hook from a non-existant hook name.

2019-10-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: Correctly handle <:, <::, <::>, etc, according to the C++ standard

	* cc-engine.el (c-before-change-check-<>-operators): Perform checking now on
	an insertion, should point be inside a critical token.
	(c-forward-<>-arglist-recur, c-guess-continued-construct): Check for <::, etc.

	* cc-langs.el (c-<-pseudo-digraph-cont-regexp, c-<-pseudo-digraph-cont-len):
	New lang variables/constants.

2019-10-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: Correct the fontification of const auto foo

	* cc-engine.el (c-forward-decl-or-cast-1): Correct a coding error involving
	`and' and `or'.

	* decls-37.{cc,face}: Insert two extra lines to test the current scenario.

2019-10-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: Fontify correctly declarators with identifier preceded by &

	The problem was bar in the following being spuriously recognised as a
	function, and foo as a type, as though the & were a *: Foo foo (&bar);.

	* cc-engine.el (c-forward-decl-or-cast-1): New variable
	got-function-name-prefix, which is set when an operator like * (but not &)
	precedes the putative identifer in parentheses.  Test this variable when
	deciding whether or not to "move the type backwards" to the previous
	identifier.

	* cc-langs.el (c-type-decl-operator-prefix-key): New lang const and var.

	* decls-50.{cc,face}: New test files.

2019-09-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix wrong fontification of FOO in ASSERT (FOO && !BAR)

	* cc-engine.el (c-forward-decl-or-cast-1): Don't recognize the construct in
	CASE 18, unless additionally at-decl-end is set.

	* statement-29.{cc,face}: New test case.

2019-08-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: Prevent End of statement being found after {} in "count << vec{} <<"

	* cc-engine.el (c-beginning-of-statement-1): Check for operators which cannot
	start a statement, which may follow a closing brace.  Don't recognise an end
	of statement in such a case.

	* cc-langs.el (c-operator-re, c-bin-tern-operators, c-unary-operators)
	(c-non-after-{}-operators, c-non-after-{}-ops-re): New lang consts and vars.

	* stream-3.{cc,res}: New test files.

2019-08-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix error in macro cache.  This fixes bug #36802

	* cc-engine.el (c-invalidate-macro-cache): Add in a cond arm to handle the
	change position being less than the recorded CPP contruct end.

2019-08-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix spurious recognition of operators beginning with, e.g. "or"

	This fixes bug #36801.

	* cc-langs.el (c-pre-lambda-tokens-re): Use c-make-keywords-re rather than
	regexp-opt to make an optimised regexp out of a list of tokens.

2019-08-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix the timing of application and removal of string fence properties

	This fixes bug #36897.

	* cc-mode.el (c-before-change-check-unbalanced-strings): Check string fence
	text properties are actually present on string delimiters before trying to
	remove them.
	(c-before-change): Amend the nesting of unwind-protect, widen,
	c-restore-string-fences, and c-clear-string-fences.  Move
	invalidate-state-cache to outside of the widening.
	(c-after-change): Amend the nesting of unwind-protect, widen,
	c-restore-string-fences, and c-clear-string-fences.

2019-07-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode.  Fix (c-beginning-of-statement -1) getting stuck with structs.

	In particular, with an initialization such as struct foo {..} bar = {...};

	* cc-cmds.el (c-forward-to-nth-EOF-{): Rename to c-forward-to-nth-EOF-\;-or-},
	and when the starting (or ending) position is in the "variable" part of a
	struct/class/union/enum/etc., move to after the terminating semicolon.  Adjust
	the counting such that N only gets decremented on a successful movement over
	{..}.
	(c-beginning-of-defun, c-end-of-defun): Rename the calls to
	c-forward-to-nth-EOF-}, as above.

2019-07-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Java Mode: Fix handling of nested generics ending in >>>.

	This fixes bug #24671.

	* cc-langs.el (c-multichar->-op-not->>-regexp): remove, transforming into ...
	(c-multichar->-op-not->>->>>-regexp) New lang const/var.

	* cc-engine.el (c-forward-<>-arglist-recur): use the new
	c-multichar->-op-not->>->>>-regexp in place of the old
	c-multichar->-op-not->>-regexp.

	* generics-2.{java,face}: New test files.

2019-07-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Stop /**/ spuriously fontifying as a doc comment under gtkdoc

	Also fix infinite loops by correcting two regexps.

	* cc-langs.el (c-last-c-comment-end-on-line-re)
	(c-last-open-c-comment-start-on-line-re): Correct the regexp fragments
	"\\*+[^/]" to "\\*+\\([^*/]\\|$\\)".

	* cc-fonts.el (gtkdoc-font-lock-keywords): Disallow /**/ for doc comment
	fontification.

2019-07-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode.  Create lang vars for certain skipping expressions at compile time

	This saves repeated calculations at run time.

	* cc-langs.el (c-stmt-boundary-skip-chars, c-stmt-boundary-skip-list)
	(c-stmt-boundary-skip-chars-with-comma, c-stmt-boundary-skip-list-with-comma):
	New lang constants/variables.

	* cc-engine.el (c-commas-bound-stmts): New variable
	(c-beginning-of-statement-1): Set c-commas-bound-stmts rather than
	c-stmt-delim-chars.
	(c-crosses-statement-barrier-p): Remove the now unneeded calculations of
	c-stmt-delim-chars.  Set skip chars to one of the new lang variables, and
	later to a substring of it.
	(c-at-statement-start-p): Set c-syntactic-skip-backward from the new
	variables.
	(c-at-expression-start-p): Bind c-commas-bound-stmts.  Use
	c-stmt-delim-chars-with-comma rather than c-stmt-delim-chars in a backward
	scan.
	(c-guess-basic-syntax): Bind c-commas-bound-stmts rather than
	c-stmt-delim-chars to itself.  Bind c-commas-bound-stmts to t at another place
	rather than setting c-stmt-delim-chars to c-stmt-delim-chars-with-comma.

2019-07-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-awk.el (c-awk-var-num-ket-re): Remove /x80-/xff from it.

	Emacs isn't using ISO8859-1 by default any more.  Also remove \ from \( and \)
	in c-awk-non-arith-op-bra-re.

2019-07-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix problems in CC Mode with " being entered into a comment at EOB.

	* cc-engine.el (c-full-lit-near-cache): Amend the definition such that an
	element's END element will be nil if the pertinent literal is open at EOB.
	(c-full-pp-to-literal): Before setting the aforementioned END element, check
	that we're no longer in a literal.  (c-literal-limits): When
	c-full-pp-to-literal returns a list with a nil END element, replace this by
	(point-max) to keep the interface of c-literal-limits unchanged.

	* cc-mode.el (c-after-change-mark-abnormal-strings): Having found a string
	quote, check it is not inside an unterminated comment (i.e. one at EOB).

2019-07-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Implement C++ Mode attributes.  This fixes bug #36650.

	* cc-engine.el (c-looking-at-c++-attribute, c-enclosing-c++-attribute)
	(c-slow-enclosing-c++-attribute): New macro and functions.
	(c-crosses-statement-barrier-p): Add [ into skip-chars for C++ Mode, and use
	it to detect and skip over an attribute whilst scanning forward.
	(c-sws-lit-type): Use the new value 'attribute.
	(c-invalidate-sws-region-before): Put a save-match-data around this function.
	Detect and handle an enclosing attribute at either END or BEG.
	(c-invalidate-sws-region-after): Handle C++ attributes.
	(c-forward-sws, c-backward-sws): Handle C++ attributes.

	* cc-mode.el (c-fl-decl-end): Detect and handle point being inside a C++
	attribute.

	* attribute-1.{cc,res,face}: New test files.

2019-07-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fonts.el (gtkdoc-font-lock-keywords): Fix faulty regexp

2019-07-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: allow bogously "adjacent" double quote marks to pair up syntactically

	For this introduce the text property c-fl-syn-tab to "mirror" syntax-table.

	* cc-defs.el (c-is-escaped, c-will-be-escaped, c-put-syn-tab, c-clear-syn-tab)
	(c-clear-syn-tab-properties, c-with-extended-string-fences): new macros.
	(c-point): Use c-is-escaped
	(c-search-forward-char-property, c-search-backward-char-property)
	(c-search-forward-char-property-with-value-on-char)
	(c-search-forward-char-property-without-value-on-char): Fix regexp error
	involving \n.

	* cc-engine.el (c-semi-pp-to-literal): Use c-with-extended-string-fences
	around a parse-partial-sexp.
	(c-full-get-near-cache-entry): Fix an off-by-one error.
	(c-full-pp-to-literal): Avoid writing duplicate entries into a cache.
	(c-after-change-unmark-raw-strings): Use c-clear-syn-tab-properties.

	* cc-mode.el (c-leave-cc-mode-mode): Clear the c-fl-syn-tab properties, too.
	(c-basic-common-init): Mark c-fl-syn-tab as a non-sticky text property.
	(c-depropertize-new-text): Also handle c-fl-syn-tab.
	(c-multiline-string-check-final-quote, c-parse-quotes-after-change): Use
	c-is-escaped.
	(c-fl-syn-tab-region): New variable.
	(c-clear-string-fences, c-restore-string-fences, c-remove-string-fences): New
	functions.
	(c-before-change-check-unbalanced-strings)
	(c-after-change-mark-abnormal-strings, c-after-change-escape-NL-in-string):
	Use the new functions and macros.
	(c-before-change, c-after-change, c-font-lock-fontify-region): Restore the
	syntax-table text properties from c-fl-syn-tab text properties for these
	functions.
	(c-electric-pair-inhibit-predicate): Test the c-fl-syn-tab property rather
	than syntax-table.

2019-07-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix coding error in c-forward-decl-or-cast-1.  This fixes bug #36492.

	* cc-engine.el (c-forward-decl-or-cast-1): While testing for, e.g., foo(),
	check we've found the ( before trying to go to its position.

	* decls-49.{c,face}: New test files.

2019-07-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix bug #36474, such that CC Mode quotes work properly in electric-pair-mode

	Also finishes the fix for bug #36423.

	* cc-mode.el (c-initialize-cc-mode): Add an `eval-after-load' to set
	electric-pair-inhibit-predicate for existing CC Mode buffers when
	elec-pair.elc gets loaded.
	(c-basic-common-init): Set electric-pair-inhibit-predicate when a CC Mode mode
	gets initialized.
	(c-electric-pair-inhibit-predicate): New function.

2019-07-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix an infinite loop in c-end-of-macro.  Should fix bug #36484

	Also fix two faulty regexps, save-match-data, and check c-major-mode-is
	'c++-mode where needed.

	* cc-langs.el (c-last-c-comment-end-on-line-re)
	(c-last-open-c-comment-start-on-line-re): Handle repeated *s in regexp
	correctly.

	* cc-engine.el (c-beginning-of-macro, c-end-of-macro): Protect the match-data
	with save-match-data around regexp operations.
	(c-end-of-macro): In the loop handling multiline block comments, check a
	comment actually is multiline.

	* cc-mode.el (c-depropertize-CPP): Only call
	c-depropertize-raw-strings-in-region in C++ Mode.

2019-07-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Improve handling of unbalanced strings

	* cc-fonts.el (c-before-font-lock-functions): Add function
	c-after-change-escape-NL-in-string into value for most languages.

	* cc-mode.el (c-after-change-escape-NL-in-string): New function.
	(c-before-change-check-unbalanced-strings): Handle the making and breaking of
	escaped newlines, by removal or addition of text.

2019-06-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: change the default doc comment style from nothing to gtkdoc

	Also amend a pertinent regular expression.  This fixes bug #11865.

	* cc-vars.el (c-doc-comment-style): Insert an entry for c++-mode, namely
	gtkdoc.

	* cc-fonts.el (gtkdoc-font-lock-keywords): Amend the regexp recognizing the
	introductory "/**" to allow subsequent characters on that line.

2019-06-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Update the repository for the release of CC Mode 5.34.

	* ANNOUNCEMENT: Update to release 5.34.

	* ChangeLog: Prefix the entries for changes since 5.33.

	* MANIFEST: Remove reference to cc-fix.el, which no longer exists.

	* NEWS: Prefix user visible changes in 5.34 to the file.

	* README: Update the note of tested Emacsen for CC Mode 5.34.  Change the
	recommended version of makeinfo to the newer perl versions.

	* changelinks: Add a link for changes-534.php.

	* changes-534.php: New file.

	* compat.php: Update to 5.34, and mention the (X)Emacs releases it was tested
	on.  Remove the reference to cc-fix.el, which no longer exists.

	* contrib.php: This file has been deleted, since it was very out of date.

	* filladapt.el, filladapt.el.diff: Convert the old style backquote form to
	modern style.

	* filladapt.php: Note also the backquote modification in filladapt.el.

	* hgaccess.php: Update to 5.34.  Remove the link to http://hginit.com, which
	no longer exists.

	* index.php: Update to 5.34.  Remove the link to contrib.php.

	* links.h: Replace link to changes-533.php with one to changes-534.php.

	* release.php: Update to 5.34.

	* cc-align.el, cc-awk.el, cc-bytecomp.el, cc-cmds.el, cc-defs.el,
	* cc-engine.el, cc-fonts.el, cc-guess.el, cc-langs.el, cc-menus.el, cc-mode.el,
	* cc-styles.el, cc-subword.el, cc-vars.el: Update the copyright notices.

	* cc-mode.texi: Update for release 5.34, update the copyright notice.

2019-06-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Move defvars of c-doc-line-join-re + two others from cc-fonts.el to cc-mode.el

	This is because these variables are needed at runtime even when cc-fonts.el
	hasn't been loaded, as in XEmacs when font locking hasn't been enabled.

	* cc-fonts.el (c-doc-line-join-re, c-doc-bright-comment-start-re)
	(c-doc-line-join-end-ch): Move definitions to cc-mode.el.

2019-06-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove the now unneeded c-font-lock-flush from CC Mode.

	* cc-defs.el (c-font-lock-flush): Delete this macro.

	* cc-engine.el (c-propertize-raw-string-opener): Delete the call to the macro.

2019-06-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: remedy recent loss in performance.

	* cc-engine.el (c-back-over-member-initializers): call c-parse-state outside
	of the narrowing operation.

	* cc-fonts.el (c-get-fontification-context, c-font-lock-cut-off-declarators):
	Replace calls to c-determine-limit with crude position calculations for
	speed.

2019-06-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Move defvar of c-syntax-table-hwm from cc-mode.el to cc-defs.el.

	* cc-defs.el (c-syntax-table-hwm): Move defvar here, so that the variable is
	declared for its uses in the definition of c-emacs-features.

	* cc-engine.el, cc-mode.el: Remove the now superfluous declarations.

2019-06-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Maintain c-syntax-table-hwm when changing syntax-table text properties

	* cc-defs.el (c-min-property-position): New macro
	(c-put-char-property, c-clear-char-property, c-clear-char-properties)
	(c-clear-char-property-with-value-function)
	(c-clear-char-property-with-value-on-char-function)
	(c-put-char-properties-on-char): Adjust c-syntax-table-hwm appropriately when
	syntax-table text properties are changed.

	* cc-engine.el (c-truncate-lit-pos-cache): Remove the now unneeded setting of
	c-syntax-table-hwm.

2019-06-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-opt-op-identitier-prefix): Remove this obsolete alias

2019-06-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Depessimize bits of CC Mode for long C macros.

	* cc-engine.el (c-end-of-macro): Check for being in a degenerate zero length
	"macro", when setting the macro cache.
	(c-determine-+ve-limit): Add in a missing goto-char form for when start-pos is
	non-nil.
	(c-back-over-member-initializers): Add a search limit parameter.

	* cc-fonts.el (c-get-fontification-context): Add a search limit to
	c-go-up-list-backward.
	(c-font-lock-cut-off-declarators): Add a search limit to
	c-back-over-member-initializers.

	* cc-mode.el (c-before-change-check-unbalanced-strings): Don't set c-new-END
	to the end of logical line (which might be a long macro).
	(c-after-change-mark-abnormal-strings): Calculate end-hwm in place of the
	setting of c-new-END (above).  Use this as a search limit rather than
	c-new-END.

2019-06-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: replace an erroneous re-search-forward with search-forward

	Move two declarations to a more suitable point in the cc-engine.el.

	* cc-engine.el (c-after-change-unmark-raw-strings): Change an
	re-search-forward to search-forward.
	(c-semi-lit-near-cache, c-semi-near-cache-limit): Move the declarations.

2019-06-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Move declaration of c-syntax-table-hwm to avoid compiler warnings.

	This variable was declared after an invocation of a defsubst which used it,
	the defsubst being in another file.

	* cc-mode (c-syntax-table-hwm): Move the declaration to earlier in the file.

2019-06-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el: sytax-ppss-after-change-function -> syntax-ppss-flush-cache

2019-06-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Add a workaround for syntax-ppss ignoring syntax-table prop changes

	* cc-engine.el (c-truncate-lit-pos-cache): Maintain the new variable
	c-syntax-table-hwm after buffer changes.

	* cc-mode.el (c-syntax-table-hwm): New variable.
	(c-before-change): Set c-syntax-table-hwm to "infinity".
	(c-after-change): Call syntax-ppss-after-change-function, just before a font
	locking is due to take place.

2019-06-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Change the literal regexp which never matches from "a\\`" to "\\`a\\`".

	This matches the regexp now used in the Emacs master (under the name
	`regexp-unmatchable') and is slightly faster.

	* cc-defs.el (c-make-keywords-re)
	* cc-langs.el (c-cpp-include-key, c-assignment-op-regexp)
	(c-block-comment-ender-regexp, c-font-lock-comment-end-skip)
	(c-block-comment-start-regexp, c-line-comment-start-regexp)
	(c-doc-comment-start-regexp, c-decl-start-colon-kwd-re)
	(c-type-decl-prefix-key, c-type-decl-operator-prefix-key)
	(c-pre-id-bracelist-key, c-enum-clause-introduction-re)
	(c-nonlabel-token-2-key)
	* cc-engine.el (c-beginning-of-statement-1, c-forward-decl-or-cast-1)
	(c-looking-at-decl-block)
	* cc-fonts.el (c-doc-line-join-re, c-doc-bright-comment-start-re)
	* cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end)
	* cc-vars.el (c-noise-macro-with-parens-name-re, c-noise-macro-name-re)
	(c-make-noise-macro-regexps): Make the above mentioned subtitution.

2019-06-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Automatically detect whether .h file is C or C++

	* lisp/progmodes/cc-mode.el (c-or-c++-mode): A new function which analyses
	contents of the buffer to determine whether it looks like C++ source code and
	based on that enables c-mode or c++-mode.
	(c-or-c++-mode--regexp): Regular expression which, when it matches a buffer,
	signals file is C++.

2019-06-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-vars.el, cc-mode.texi: Remove unwanted developer comments

2019-06-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Change default offset of CC Mode syntactic symbol inlambda to 0

	It's previous default was c-lineup-inexpr-block.  This change is mainly to
	prevent excessive indentation of the innards of C++ lambda functions.

	* cc-vars.el (c-offsets-alist): Amend the offset for inlambda to 0.

	* cc-mode.texi (FAQ): Amend the answer to the question about this matter.

	* 000tests.el (cc-test-teststyle): Amend the offset for inlambda.

	* lambda-1.{pike,res}, arglist-21.{pike,res}.  Add Local Variables sections
	with the old setting for inlambda, and regenerate the resfiles.

	* lambda-3.{cc,res,face}, lambda-4.{cc,res,face}, decls-5.{pike,res}.
	Reindent the .cc files, and (re)generate the .res and .face files.
	lambda-4.res is a new file.

2019-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Debug and disentangle the literal cacheing in CC Mode

	(Final Commit)

	* cc-engine.el (c-semi-trim-near-cache): Correct a comparison with the wrong
	...-limit variable.
	(c-semi-pp-to-literal): Remove a wrong setting of c-lit-pos-cache-limit.
	(c-full-get-near-cache-entry): Eliminate extravagant and unneeded coding.
	(c-state-cache-init, c-record-parse-state-state): No longer manipulate
	c-lit-pos-cache, which is no longer regarded as part of c-parse-state.

	* cc-mode.el (c-basic-common-init): Call c-truncate-lit-pos-cache to initialize
	the literal cache.

2019-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Permute certain literal cacheing functions in cc-engine.el; amend comments

2019-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Tidy up the literal cacheing in CC Mode, optimizing c-full-pp-to-literal

	(Intermediate commit)

	* cc-engine.el, cc-fonts.el, cc-mode.el, : Rename:
	c-state-semi-nonlit-pos-cache -> c-lit-pos-cache,
	c-state-semi-nonlit-pos-cache-limit -> c-lit-pos-cache-limit,
	c-state-semi-nonlit-near-cache -> c-semi-lit-near-cache,
	c-truncate-semi-nonlit-pos-cache -> c-truncate-lit-pos-cache,
	c-state-semi-trim-near-cache -> c-semi-trim-near-cache,
	c-state-semi-get-near-cache-entry -> c-semi-get-near-cache-entry,
	c-state-semi-put-near-cache-entry -> c-semi-put-near-cache-entry,
	c-state-semi-pp-to-literal -> c-semi-pp-to-literal,
	c-state-full-pp-to-literal -> c-full-pp-to-literal,
	c-state-semi-trim-cache -> c-trim-lit-pos-cache.

	* cc-engine.el (c-semi-near-cache-limit): New variable.
	(c-truncate-lit-pos-cache): This now truncates the cache variables for all
	three lit- sub-caches.
	(c-semi-put-near-cache-entry): Increase c-semi-near-cache-limit to the
	position of the new entry.
	(c-full-near-cache-limit, c-full-lit-near-cache): New variables.
	(c-full-trim-near-cache, c-full-get-near-cache-entry)
	(c-full-put-near-cache-entry): New functions.
	(c-full-pp-to-literal): Amend to use the new functions, and to optimize the
	use of the available caches, similarly to c-semi-pp-to-literal.

2019-05-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Optimize one of CC Mode's syntax caches for long comments and strings.

	* cc-langs.el (c-block-comment-awkward-chars): New lang constant and variable.

	* cc-engine.el (c-state-semi-nonlit-pos-cache): Enhance the doc comment.
	(c-state-semi-get-near-cache-entry, c-state-semi-pp-to-literal): Reuse entry
	if the sought position is in a literal, and lies between the literal start and
	the entry's position.
	(c-cache-to-parse-ps-state, c-parse-ps-state-below): Amend such that instead
	of cacheing a state for a position after a backslash or first character of a
	2-character comment delimiter, this is done for the previous character
	position.

2019-05-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C Mode: Fix indentation of DEFUN's function's argument list.

	Formally, when DEFUNs still used knr argument lists, these were indented by
	the syntactic context knr-argdecl-intro (5 columns).  Since this is no longer
	the case, we now just use c-basic-offset (2 columns in "gnu" style).

	* cc-align.el (c-indent-gnu-DEFUN-intro-cont): Modernize the indentation.
	Amend the doc string accordingly.

2019-05-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Remove unused code from c-maybe-re-mark-raw-string

	Acknowledge that when the function is called, it is always at the start of a
	string, never in the middle or at the end of one.

	* cc-engine.el (c-maybe-re-mark-raw-string): Reformulate the cond form into a
	`when' form, with all but the first arm of the cond discarded.

2019-05-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle several consecutive noise macros in declaration contexts.

	In the bug scenario, the second and subsequent noise macros with parentheses
	were getting font-lock-type-face.

	* cc-engine.el (c-end-of-token, c-forward-noise-clause-not-macro-decl): New
	functions.
	(c-find-decl-prefix-search): Handle noise macros by skipping over them.
	(c-forward-decl-or-cast-1): In the loop checking for types, skip over all
	consecutive noise macros with parens, not just one.

	* macro-32.{c,face}: New test files.

2019-05-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: fix indentation in switch statement after "case a(1):".

	* cc-engine.el (c-beginning-of-statement-1): Enhance the analysis of case
	labels to handle parenthesised expressions (e.g. macros).

	* cc-langs.el (c-nonlabel-nonparen-token-key): New lang const and lang var.

	* switch-18.{cc,res}: New test files.

2019-05-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Optimize CC Mode a bit for repetitive insertion and replace-regexp

	This is mainly by enhancing a parse-partial-sexp cache to retain recently
	calculated values.  Also, there are several miscellaneous optimizations and
	bug fixes.

	* cc-engine.el (c-state-semi-nonlit-near-cache): New buffer local variable.
	(c-state-semi-trim-near-cache, c-state-semi-get-near-cache-entry)
	(c-state-semi-put-near-cache-entry, c-state-semi-trim-cache): New functions.
	(c-state-semi-pp-to-literal, c-state-full-pp-to-literal): Use the new "near"
	cache.
	(c-parse-ps-state-below): Use the new function c-state-semi-trim-cache.
	(c-before-change-check-<>-operators): Check simply for < or > in the
	neighbourhood before doing more expensive processing.
	(c-maybe-re-mark-raw-string): Give a backward search limit to an operation
	which was needlessly lacking one.

	* cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end): Check a certain regexp
	is valid before performing the (somewhat expensive) actions of these
	functions.
	(c-fl-decl-start): In the search for a C++ lambda capture list, replace (slow)
	calculation of c-parse-state by a (less slow) c-go-up-list-backward.

2019-05-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	c-beginning-of-statement-1: Handle syntactic WS macros properly.

	* cc-engine.el (c-beginning-of-statement-1): The variable before-sws-pos
	should record the position of a closing paren/brace/bracket before moving
	backwards over a sexp.  When there is a syntactic WS macro between the
	starting point and the closing p/b/b, setq before-sws-pos again after moving
	backward over the macro.

2019-05-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix fontification of first item in CC Mode macro without parentheses

	* cc-engine.el (c-find-decl-prefix-search): Handle the new matching
	possibility (of a #define construct) in the new c-decl-prefix-or-start-re.
	(c-find-decl-spots): Allow the initial search for an in-macro starting point
	settle on the # of #define, to facilitate the regexp matching in
	c-find-decl-prefix-search.

	* cc-langs.el (c-anchored-hash-define-no-parens): New lang const.
	(c-literal-start-regexp): Correct what was always supposed to be a "generic
	string" regexp element.
	(c-decl-prefix-or-start-re): Enhance also to match "#define <identifier>".
	(c-dposr-cpp-macro-depth): New lang variable and lang constant

	* macro-27.face: Regenerated following correction of fontification.

	* macro-31.{c,face}: New test file containing a multiline comment in a macro,
	and a struct-like macro without argument parentheses.

2019-05-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix multiline block comments in macros.

	In particulr, handle multiline block comments whose newlines are not escaped.
	There is an example of this in #define EXTRA_CONTEXT_FIELDS in editfns.c.

	* cc-engine.el (c-beginning-of-macro, c-end-of-macro): Enclose the loops
	scanning escaped newlines with outer loops which check heuristically for,
	respectively, a block comment ender and a block comment starter on the lines
	we end up on.  (A rigorous syntactic check would be too slow, here.)

	* cc-langs.el (c-last-c-comment-end-on-line-re)
	(c-last-open-c-comment-start-on-line-re): New language constants/variables.

2019-04-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: in certain font lock loops, check point is not beyond limit.

	* cc-fonts.el (c-font-lock-enum-body, autodoc-font-lock-line-markup): As part
	of the `while' condition, check that the previous iteration of the loop hasn't
	moved point past `limit', thus obviating "wrong side of point" errors in
	re-search-forward, etc.

2019-04-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix slow scrolling in C++ buffers with lots of template delimiters.

	* cc-engine.el (c-update-brace-stack): bind c-parse-and-markup-<>-arglists and
	c-restricted-<>-arglists to t around the call to c-forward-<>-arglist, to
	force the marking of template delimiters with syntax-table text properties.

2019-04-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix the formatting of '\' (including apostrophes) in CC Mode.

	In particular, the second apostrophe must also get font-lock-warning-face.

	* cc-mode.el (c-parse-quotes-before-change, c-parse-quotes-after-change): Add
	cond arms to recognize and handle the anomalous construct '\'.  Correct the
	handling of c-new-BEG in c-parse-quotes-before-change.

	* constants-4.{c,face}: Add some new valid and invalid character constants.
	Regenerate the face file.

2019-04-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Restore fontification of delimiters of multiline CC Mode strings.

	E.g., on typing the closing delimiter of a string continued onto a second
	line, the opening delimiter retained its font-lock-warning-face.

	* cc-defs.el (c-c++-raw-string-opener-re, c-c++-raw-string-opener-1-re): New
	constants.
	(c-sub-at-c++-raw-string-opener, c-at-c++-raw-string-opener): New macros.

	* cc-engine.el (c-raw-string-pos, c-depropertize-raw-strings-in-region)
	(c-after-change-unmark-raw-strings): Replace uses of open-coded raw string
	regexps by the new constants and macros in cc-defs.el.

	* cc-fonts.el (c-font-lock-raw-strings): Ditto

	* cc-mode.el (c-before-change-check-unbalanced-strings): Set c-new-BEG to the
	beginning of the string when we encounter its closing ".  When not in a raw
	string, but in a string, clear syntax-table properties from its delimiters and
	set c-new-BEG/END to its limits.
	(c-after-change-mark-abnormal-strings): When applying syntax-table properties
	to string delimiters, also set c-new-BEG/END to ensure subsequent
	fontification.

2019-04-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix some corner cases in the recognition of C++ raw strings.

	These are where changing the identifier in a raw string delimiter causes
	different delimiters to match eachother.

	* cc-engine.el (c-raw-string-end-delim-disrupted): New variable.
	(c-before-change-check-raw-strings): Use new variable.
	(c-after-change-unmark-raw-strings): When typing into an opening delimiter or
	altering its close delimiter causes the opening delimiter to match a later
	closing delimiter, clear all syntax-table char properties from the opening
	delimiter onwards, and set c-new-END to point max.  Also, when changing a
	closing delimiter, check whether its new value matches a previously open
	opening delimiter earlier in the buffer, and amend the syntax-table text
	properties appropriately.

2019-04-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Optimize for typing characters into long C++ raw strings.

	* cc-fonts.el (c-font-lock-complex-decl-prepare, c-font-lock-objc-methods)
	(c-font-lock-declarations, c-font-lock-enum-tail)
	(c-font-lock-cut-off-declarators, c-font-lock-enclosing-decls): If the chunk
	been fontified consists entirely of comments and strings, don't attempt to
	perform the function's action.

	* cc-mode.el (c-before-change-check-unbalanced-strings): Don't expand
	(c-new-BEG c-new-END) unnecessarily to the entire raw string being fontified.
	(c-fl-decl-start, c-fl-decl-end): When in a (raw or otherwise) string, don't
	return a position outside of the string (which used to cause unneeded
	fontification).

2019-04-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix Pike Mode's autodoc doc comments style's continued lines.

	* cc-engine.el (c-forward-sws, c-backward-sws): Recognize matches of
	c-doc-line-join-re as syntactic whitespace.
	(c-find-decl-prefix-search): Recognize and move over matches of
	c-doc-line-join-re as whitespace.
	(c-find-decl-spots): Before moving backward a char, check (bobp).  Before
	moving forward over a comment, check it isn't possibly a "bright" comment.

	* cc-fonts.el (c-get-doc-comment-style): New function, extracted from
	c-compose-keywords-list.
	(c-compose-keywords-list): Call the above new function.
	(pike-font-lock-keywords, pike-font-lock-keywords-2)
	(pike-font-lock-keywords-3): Call c-set-doc-comment-res.
	(c-doc-line-join-re, c-doc-bright-comment-start-re, c-doc-line-join-end-ch):
	New variables.
	(c-set-doc-comment-re-element, c-set-doc-comment-char-list): New macros.
	(c-set-doc-comment-res): New function.
	(c-font-lock-doc-comments): For consistency and repeatability, in a sequence
	of C++ style doc comments, don't fontify the region between BOL and the
	comment marker.
	(autodoc-line-join-re, autodoc-bright-comment-start-re)
	(autodoc-line-join-end-ch): New variables.

	* cc-mode.el (c-doc-fl-decl-start, c-doc-fl-decl-end): New functions.
	(c-change-expand-fl-region, c-context-expand-fl-region): Call the above two
	new functions for extra possibilities for the start and end of a construct.

	* cc-mode.texi (Doc Comments): Add a sentence drawing attention to the
	possibility of fontifying constructs within a doc comment.

	* docs-2.{pike,face}: Amend two "FIXME" comments.  Regenerate the face file.

2019-04-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-class-id-suffix-ws-ids-kwds): Correct a spelling mistake

2019-04-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Implement "final" before C++ class inheritance lists.

	* cc-langs.el (c-class-id-suffix-ws-ids-kwds, c-class-id-suffix-ws-ids-key):
	New lang const/var.

	* cc-engine.el (c-guess-basic-syntax CASE 5D.4): Check for and skip over any
	matches for c-class-id-suffix-ws-ids-key (i.e. "final") before ":".

	* decls-48.{cc,res}: New test files.

2019-04-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Analyze C++ method with & or && ref-qualifier as defun, not brace list

	Also firm up detection of beginning of brace list in
	c-looking-at-or-maybe-in-bracelist.

	* cc-engine.el (c-looking-at-or-maybe-in-bracelist): On detection of such a
	ref-qualifier, set braceassignp to nil.  When this variable has a nil value,
	return nil as the value of the function.  On encountering a } when scanning
	backwards, recognise this as the end of a previous construct and stop the
	scan.

	* decls-47.{cc,res}: New test files.

2019-03-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Allow a CC Mode derived mode to have strings delimited by single quotes.

	Also fix the bug where the delimiters of '\033', etc. got the error face.

	* cc-langs.el (c-single-quotes-quote-strings): Enhance the doc string.
	(c-string-delims): Change doc string to doc comment.

	* cc-mode.el (c-before-change-check-unbalanced-strings): In searches and
	comparisons, take account of the string delimiters possibly being '.  Fix
	argument in call of c-before-change-check-unbalanced-strings.
	(c-parse-quotes-before-change, c-parse-quotes-after-change): Bind
	case-fold-search to nil.  Analyze escape constructs inside character constants
	more accurately, in particular accepting as valid more than one character
	after /[0-7], /x, /u, and /U.  Amend calculations to account for this extra
	length.

	* constants-4.{c,face}: New test files.

2019-03-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix (again) regexp bug in CC Mode.

	* cc-mode.el (c-after-change-mark-abnormal-strings): "|\\\r" -> "\\|\r".

2019-03-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Improve C++ raw string fontification.

	Integrate the handling of raw string and ordinary string fontification.

	* cc-defs.el (c-font-lock-flush)
	(c-search-forward-char-property-without-value-on-char): new macros.
	(c-point): In the 'eoll arm, check for eobp.
	(c-search-forward-char-property-with-value-on-char): Handle the &optional
	limit argument being nil.
	(c-clear-char-property-with-value-on-char-function)
	(c-clear-char-property-with-value-on-char): Return the position of the first
	cleared property.

	* cc-engine.el (c-find-decl-prefix-search): Don't spuriously recognize the
	change of face at a ) as the start of a string (a "pseudo match").
	(c-old-beg-rs c-old-end-rs): New variables.
	(c-raw-string-pos): Analyze raw string delimiters more carefully.
	(c-raw-string-in-end-delim): New function.
	(c-depropertize-raw-string): Largely rewritten.
	(c-before-change-check-raw-strings): New functionality: only remove the
	syntax-table text properties from raw strings whose delimiters are about to
	change.
	(c-propertize-raw-string-id): New function.
	(c-after-change-re-mark-raw-strings): Remove, incorporating functionality into
	other functions.
	(c-propertize-raw-string-opener): Largely rewritten.
	(c-after-change-re-mark-raw-strings): Removed.
	(c-after-change-unmark-raw-strings, c-after-change-unmark-raw-strings): New
	functions.

	* cc-fonts.el (c-font-lock-raw-strings): Largely rewritten.

	* cc-langs.el (c-before-font-lock-functions): Replace
	c-after-change-re-mark-unbalanced-strings by
	c-after-change-mark-abnormal-strings in the t, c+objc, c++ and java sections.
	Add c-after-change-unmark-raw-strings and remove
	c-after-change-re-mark-raw-strings from the c++ section.

	* cc-mode.el (c-old-BEG c-old-END): Remove.
	(c-old-END-literality): New variable.
	(c-depropertize-CPP): Remove syntax-table properties from raw strings within
	macros.
	(c-before-change-check-unbalanced-strings): Call
	c-truncate-semi-nonlit-pos-cache to preserve the integrity of the cache.
	(c-before-change-check-unbalanced-strings): Call
	c-truncate-semi-nonlit-pos-cache, largely rewritten.
	(c-after-change-re-mark-unbalanced-strings): Renamed to
	c-after-change-mark-abnormal-strings.  Call c-maybe-re-mark-raw-string.

	* string-4.{cc,face,res}: New test files.

2019-03-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* doc/misc/cc-mode.texi (Config Basics): in @itemize, @asis -> @w{}

2019-03-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-fl-decl-start): Remove some developer comments.

2019-03-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct the indentation of CC Mode brace lists

	while preserving the indentation of nested C++ uniform initialization.

	* cc-align.el (c-lineup-2nd-brace-entry-in-arglist)
	(c-lineup-class-decl-init-+, c-lineup-class-decl-init-after-brace): New
	indentation functions.

	* cc-engine.el (c-forward-class-decl): New function.
	(c-do-declarators): New function, partially extracted from
	c-font-lock-declarators, which now calls the new function.
	(c-inside-bracelist-p): Amend the introductory comment.
	(c-add-stmt-syntax): Add code to prevent the spurious recognition of a
	'defun-block-intro when a brace pair is used as an initializer.
	(c-evaluate-offset): No longer ignore vectors of length >= 2.
	(c-calc-offset): Refactor clumsily nested `if'/`or' into a cond form.

	* cc-fonts.el (c-font-lock-declarators): Replace the bulk of this function by
	a call to the new c-forward-class-decl.

	* cc-langs.el (c-type-decl-prefix-key): Recognize "~" as a type decl operator.

	* cc-mode.el (c-fl-decl-start): While searching backward for a "}" at an EOD,
	deal with actually finding the end of a brace list.

	* cc-mode.texi (List Line-Up): document c-lineup-2nd-brace-entry-in-arglist,
	c-lineup-class-decl-init-+, and c-lineup-class-decl-init-after-brace.

	* cc-styles.el (c-style-alist): In styles "gnu", "bsd", "stroustrup",
	"python", and "java", change the offset for brace-list-intro from the default
	value or c-lineup-arglist-intro-after-paren to a list beginning with the
	symbol first, followed by two of the new alignment functions, followed by +.

	* cc-vars.el (c-offset-alist): Change the default value of brace-list-entry
	from c-lineup-under-anchor back to 0.

	* 000-tests.el (cc-test-teststyle): Set the entry in c-offsets-alist for
	brace-list-intro to the same as in c-style-alist, above.

	* bracelist-2.pike: Reindent.

	* bracelist-25.{cc,res,face}: Reindent the .cc, then regenerate the .res and
	.face

	* bracelist-31.{c,res}: Reindent the .c, then regenerate the .res.

	* bracelist-33.{cc,res}: New test files.

	* bracelist-9.c: Reindent.

	* class-21.c: Reindent.

2019-03-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Correct some incorrect regular expressions:

	* cc-awk.el (c-awk-regexp-char-list-re): "^" -> "\\^".  R*x?R* -> \(R*x\)?R*.

	* cc-mode.el (c-after-change-re-mark-unbalanced-strings): "|" -> "\\|".

2019-03-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Work around makeinfo alignment bug.  Fix problem with ss index

	* cc-mode.texi (top level): Using txicommandconditionals to differentiate
	between the C and perl versions of Texinfo, create an "ss index" unless we are
	both using the C Texinfo and are building the .dvi output format.
	(Config Basics): Work around a perl Texinfo alignment bug by writing a
	separate version of an item list structure for this version, simplifying it
	considerably.

2019-03-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct some slightly incorrect regular expressions:

	* cc-awk.el (c-awk-harmless-char-re, c-awk-harmless-line-char-re)
	(c-awk-_-harmless-nonws-char-re): [...\\\\...] -> [...\\...].

	* cc-engine.el (c-literal-limits): "*/" -> "\\*/".

	* cc-mode.el (c-after-change-re-mark-unbalanced-strings): "\\\r" -> "\r".

2019-02-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fontify C function identifiers in parentheses correctly (e.g. in lisp.h)

	Fix handling of CC Mode's syntactic WS cache.  Make noise-macro option
	variables buffer local.

	* cc-engine.el (c-put-is-sws, c-put-in-sws, c-remove-is-sws, c-remove-in-sws)
	(c-remove-is-and-in-sws): Add edebug specs.
	(c-invalidate-sws-region-before): Add a `beg' parameter.  Handle noise
	macros like other literals.
	(c-invalidate-sws-region-after-del): Move the adjustment of (cdr
	c-sws-lit-limits) due to buffer change to c-invalidate-sws-region-after.
	(c-invalidate-sws-region-after-ins): Move (goto-char end) to the correct
	place.
	(c-invalidate-sws-region-after): Adjust (cdr c-sws-lit-limits) due to buffer
	change.  Handle noise macros.
	(c-backward-sws): Set simple-ws-beg appropriately when the start point is in
	the middle of a noise macro.
	(c-forward-decl-or-cast-1): Recognize a function identifier being declared in
	parentheses.

	* cc-mode.el (c-before-change): Supply a `beg' argument to
	c-invalidate-sws-region-before.

	* cc-vars.el (c-noise-macro-with-parens-name-re, c-noise-macro-name-re)
	(c-noise-macro-names, c-noise-macro-with-parens-names): Make these buffer
	local variables.

	* decls-46.{c,face}: New test files.

2019-01-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix c-beginning-of-statement-1 wrongly returning `previous', not `same'

	This was happening when the start position was already at a beginning of
	statement, and LIM was also this position.

	* cc-engine.el (c-beginning-of-statement-1): Make (setq ret 'previous) depend
	on (>= (point) lim) at the pertinent place in the source.

2019-01-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Distinguish better between nil and `same' in c-beginning-of-statement-1

	This corrects a slight flaw in today's previous commits for this function.

	* cc-mode (c-bos-pop-state, c-bos-pop-state-and-retry): set pre-stmt-found to
	t when throwing nil to the catch form in c-beginning-of-statement-1 to
	terminate its loop.
	(c-beginning-of-statement-1): New local variable pre-stmt-found, which gets
	set to t to indicate some backward stop to further scanning has been found.
	This contrasts with the case where the search limit is passed.  Use this
	variable in deciding whether or not the result of the function should be nil.

2019-01-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove developer comments accidentally left in previous commit

2019-01-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Detect when we hit limit in backward search in c-just-after-func-arglist-p

	This is a correction of the faulty patch made on 2019-01-03.

	This fixes a bug reported by Yasushi SHOJI <yasushi.shoji@gmail.com> to
	emacs-devel on 2018-11-26.

	* cc-engine.el (c-beginning-of-statement-1): Add new parameter HIT-LIM which,
	if non-nil causes the function to return nil rather than 'same when we reach
	the backward search limit without finding the beginning of statement.
	(c-just-after-func-arglist-p): Supply argument t to this new parameter in call
	to c-beginning-of-statement-1.

2019-01-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix a loop in c-fl-decl-start.  This fixes bug #34186.

	* cc-mode.el (c-fl-decl-start) In the pair of operations
	c-syntactic-skip-backward and c-forward-syntactic-ws, ensure the latter
	doesn't come back to the position before the former, and break out of the
	enclosing loop if it does.

2019-01-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Extend electric-pair-mode actions to < and >, and also to ( and ) in literals

	* cc-cmds.el (c-electric-lt-gt): Actuate electric-pair-mode if a < or > is
	typed in a context where this is meaningful (#include, or template).
	(c-electric-paren): Allow electric-pair-mode activity in a comment or string.

	* cc-defs.el (c-make-keywords-re): Fix a bug where lists of source symbols
	could get overwritten when parameter adorn is set to 'appendable.

	* cc-langs.el (c-cpp-include-key): New lang const and var.

2019-01-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make CC Mode and electric-pair-mode work together.  This fixes bug #33794

	* cc-cmds.el (c-electric-pound, c-electric-slash, c-electric-star)
	(c-electric-semi&comma, c-electric-colon, c-electric-lt-gt): Bind
	post-self-insert-hook to nil around calls to self-insert-command to protect
	against arbitrary functionality confusing CC Mode.
	(c-do-brace-electrics): New function, extracted from c-electric-brace and
	enhanced.
	(c-electric-brace): Bind post-self-insert-hook to nil around the call to
	self-insert-command.  When electric-pair-mode is configured, call
	electric-pair-post-self-insert-function.  Handle any deletion done by this
	function.  Call c-do-brace-electrics for the inserted brace, and perhaps for a
	brace inserted by electric-pair-self-insert-function.
	(c-electric-paren): Bind post-self-insert-hook to nil around the call to
	self-insert-command.  When electric-pair-mode is configured, call
	electric-pair-post-self-insert-function.

2019-01-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Detect when we hit limit in backward search in c-just-after-func-arglist-p

	This fixes a bug reported by Yasushi SHOJI <yasushi.shoji@gmail.com> to
	emacs-devel on 2018-11-26, where wrong analysis and fontification occurred.

	* cc-engine.el (c-beginning-of-statement-1): Add new parameter HIT-LIM which,
	if non-nil causes the function to return nil rather than 'same when we reach
	the backward search limit without finding the beginning of statement.
	(c-just-after-func-arglist-p): Supply argument t to this new parameter in call
	to c-beginning-of-statement-1.

2018-12-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode - use font-lock-comment-delimiter-face on block comment end delimiters

	In particular when the default comment type is currently line comments.  Do
	this by setting font-lock-comment-end-skip.

	* cc-cmds.el (c-font-lock-comment-end-skip): New lang const.
	(font-lock-comment-end-skip): New c-lang-setvar.

2018-12-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Check result from c-backward-token-2 to avoid infinite loop

	This fixes bug #33784.

	* cc-fonts.el (c-get-fontification-context): While moving back over enclosing
	parentheses, check that c-backward-token-2 actually moves.

2018-12-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: stop extra parens on expression causing false fontification as type

	* cc-fonts.el (c-get-fontification-context): recognize arithmetic operator
	followed by several open parentheses, not just one, as not being an argument
	list.

	* statement-27.{cc,face}: New test files

2018-12-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: stop wrongly recognizing "func(a * 9)" as "pointer to type a"

	* cc-engine.el (c-forward-decl-or-cast-1): When testing for an identifier
	after "a *", on failure additionally check for a digit, setting a new flag
	variable got-number if one is found.  In the test for CASE 18, check this
	flag.

	* statement-28.{cc,face}: New test files.

2018-12-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Compensate for backward-sexp ignoring trailing commas after {...}

	This fixes bug #32808.

	* cc-engine.el (c-beginning-of-statement-1): New variable comma-delimited, set
	when we're about to scan backward over a comma.  Do not reckon a brace block
	as bounding a statement when it is followed or preceded by a comma (except
	when argument comma-delim is non-nil).
	(c-guess-basic-syntax, CASE 9C): Call c-beginning-of-statement-1 with argument
	comma-delim changed to non-nil.

2018-11-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix bug #33416, where typing a ) in a comment at EOB caused a loop (CC Mode).

	* cc-mode.el (c-fl-decl-start): A c-forward-syntactic-ws leaves point inside
	whitespace when moving over a comment at EOB which has no terminating LF.
	Check this possibility and correct for it.

2018-10-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix C++ Mode dynamic error with string delimiters.

	Fixes bug #33163

	* cc-mode.el (c-before-change-check-unbalanced-strings): Use the correct
	variable `end' in place of the wrong `c-new-END'.
	(c-after-change-re-mark-unbalanced-strings): Correct a logic error whilst
	skipping over comments.

2018-10-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Add ~44 edebug specs to CC Mode.

	* cc-cmds.el, cc-defs.el, cc-engine.el, cc-fonts.el, cc-langs.el: Add lots of
	edebug specs.

	* cc-engine.el (c-state-maybe-marker): Tidy up so as to evaluate an argument
	only once at runtime.

2018-09-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: consider tails of compound identifiers when seeking found types.

	* cc-engine.el (c-forward-over-token): New function, extracted from ...
	(c-forward-over-token-and-ws): Refactor to use the above.
	(c-forward-type): Use c-check-qualified-type in place of c-check-type
	(twice).
	(c-forward-over-compound-identifier): New function.
	(c-check-qualified-type): New function.

	* decls-45.{cc,face}: New test files.

2018-08-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix syntactic context of BOD sometimes being 'topmost-intro-cont

	This happened when the type of the previous function was a struct, etc.,
	declaration.

	* cc-mode (c-guess-basic-syntax CASE 5N): Check here (for 'topmost-intro-cont)
	that the first opening brace after BOD is the opening brace preceding the
	starting point.

	* decls-44.{c,res}: New test files.

2018-08-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	c-where-wrt-brace-construct: deal with point following a struct's semicolon.

	More precisely, when point is right after the terminating semicolon of a
	construct like "struct foo { .... } bar;", the function must return
	'at-function-end.

	* cc-cmds.el (c-where-wrt-brace-construct): Surround an existing test for
	'at-function-end with an `or' form, the other arm testing for being after the
	semicolon above.

2018-08-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: make c-display-defun-name work with a pointer return type.

	Fixes bug #32403.

	* cc-cmds.el (c-in-function-trailer-p): No longer insist on
	c-beginning-of-decl-1 returning 'same.
	(c-where-wrt-brace-construct): Tighten up the test for looking at a symbol by
	excluding keywords.  When point is after a }, do not return 'at-function-end
	for a struct/union/class/...
	(c-defun-name-1): Considerably simplify, by amalgamating the two cond arms
	which find structs etc., and by using functions like c-forward-declarator
	rather than the faulty analysis of the source by hand.

2018-07-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correctly indent C++ brace lists in member init lists.

	* cc-engine.el (c-guess-basic-syntax; CASE 9B, CASE 9C): Set a limit for a
	backward search to the ":" introducing the member init list, when there is
	one, rather than the enclosing "{" or nil.

	* bracelist-32.{cc,res}: New test files.

2018-06-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Implement the C++11 "using" type definition.

	Cease using the long obsolete c++-template-syntax-table.

	* cc-align.el (c-lineup-template-args): Cease using c++-template-syntax-table.

	* cc-engine.el (c-beginning-of-inheritance-list, c-search-decl-header-end)
	(c-beginning-of-decl-1, c-end-of-decl-1, c-guess-continued-construct)
	(c-guess-basic-syntax): Cease using c++-template-syntax-table.
	(c-guess-basic-syntax): Add CASE 5D.6 to handle C++11's "using" type
	definition.

	* cc-langs.el (c++-make-template-syntax-table, c++-template-syntax-table):
	Remove.
	(c-equals-type-clause-kwds, c-equals-type-clause-key): New language
	constants/variables.

2018-06-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: In brace lists, anchor an elt on its predecessor, not on first elt

	* cc-engine.el (c-beginning-of-statement-1): At the end, accept "." as a unary
	operator (which it now is in brace lists in, e.g., C Mode).
	(c-guess-basic-syntax): Just before CASE 9C, move back to the previous brace
	list entry in the block, rather than to the first one.

	* bracelist-1.res, bracelist-11.res, bracelist-19.res, bracelist-2.res,
	bracelist-25.res, bracelist-26.res, bracelist-27.res, bracelist-3.res,
	bracelist-31.res, bracelist-4.res, bracelist-8.res, class-5.res, enum-2.res,
	enum-3.res, enum-6.res, enum-8.res, nested-1.res, whitesmith-1.res:
	Regenerate.

2018-06-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fontify unbalanced quotes in unconstrained multiline strings, etc.

	("Unconstrained" meaning that every string is multiline, without needing such
	special marking as used by Pike Mode.)

	* cc-mode.el (c-pps-to-string-delim): Don't process the char before BOB.
	(c-multiline-string-check-final-quote): New function.
	(c-bc-changed-stringiness): New variable.
	(c-before-change-check-unbalanced-strings): Add handling for unconstrained
	multiline strings.
	(c-after-change-re-mark-unbalanced-strings): Add handling for unconstrained
	multiline strings.  Handle escaped double quotes more accurately.

2018-05-31  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix some bugs in c-before-change-check-unbalanced-strings.

	E.g. handle the last line having three quotes and no \n.

	* cc-mode.el (c-before-change-check-unbalanced-strings): Should we encounter a
	double quote marked with a string-fence syntax-table text property at the end
	of the last line, remove that property.

2018-05-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Amend c-before-change-check-unbalanced-strings to handle a quote at EOB.

	* cc-mode.el (c-before-change-check-unbalanced-strings): Before going back a
	sexp from the \n marked with a string-fence syntax-table text property, check
	that it is indeed a \n.  If not, simply delete that text property from the
	isolated quote, not the quote and the \n which otherwise delimit an
	unterminated string.

2018-05-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Enhance CC Mode's fontification, etc., of unterminated strings.

	String delimiters, including escaped new lines, of correctly terminated
	strings are left in font-lock-string-face.  All others get
	font-lock-warning-face.  The latter get syntax-table text properties on the
	opening string delim and the "terminating EOL".

	Correct two miscellaneous bugs: the handling of text properties on Java Mode's
	generic delimiters; the handling of c-just-done-before-change.

	* cc-defs.el (c-point): New position 'eoll "end of logical line".
	(c-characterp): New macro.

	* cc-fonts.el (c-font-lock-invalid-string): Removed.
	(c-basic-matchers-before): Use a simple matcher in place of the form around
	c-font-lock-invalid-string.

	* cc-langs.el (c-get-state-before-change-functions): Add
	c-before-change-check-unbalanced-strings to the value for all modes except AWK
	Mode.  Also add c-before-change-check-<>-operators to Java Mode, correcting an
	error in that mode's handling of generic delimiters.
	(c-before-font-lock-functions): Add c-after-change-re-mark-unbalanced-strings
	to the value for all modes except AWK Mode.
	(c-single-quotes-quote-strings, c-string-delims): New lang variables for
	future enhancements.
	(c-string-innards-re-alist): New lang variable.

	* cc-mode.el (c-just-done-before-change): Do not set this variable when a
	change is the alteration of text properties.
	(c-basic-common-init): Set parse-sexp-lookup-properties (and the XEmacs
	equivalent) also for Pike Mode.
	(c-neutralize-CPP-line): No longer neutralize unbalanced quotes here.
	(c-unescaped-nls-in-string-p, c-multiline-string-start-is-being-detached)
	(c-pps-to-string-delim, c-before-change-check-unbalanced-strings)
	(c-after-change-re-mark-unbalanced-strings): New functions.
	(c-after-change): Fix a bug with the handling of c-just-done-before-change.

	* string-2.{c,face}: Enhance to cover a new error situation.  Recalculate the
	.face file.

	* string-1.face, string-3.face: Recalculate these files.

2018-04-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Amend c-colon-type-list-re also to handle compound identifiers

	* cc-langs.el (c-colong-type-list-re): Amend to recognize and skip over "::"
	in C++ and "." in Java.

	* inher-11.{cc,face}: New test files.

2018-04-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Purge obsolete file and tidy up Makefile.

	* cc-fix.el: Remove
	* cc-defs.el: Remove page which tested for various former conditions which
	used to need cc-fix to fix them.
	* Makefile: Remove all references to cc-compat.el, cc-lobotomy.el and
	cc-fix.el.

2018-04-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: comment the use of "a\\`" as a regexp which will never match

2018-04-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Optimize c-syntactic-skip-backward, c-determine-limit for large comment blocks

	* cc-engine.el (c-ssb-lit-begin): Remove.
	(c-syntactic-skip-backward): Remove the surrounding c-self-bind-state-cache.
	Use the standard function c-literal-start in place of the special purpose
	c-ssb-lit-begin.  With a suitable skip-chars argument (the usual case),
	optimize by invoking c-backward-syntactic-ws to move back over comment
	blocks.
	(c-determine-limit-get-base): Inovke an early c-backward-syntactic-ws.
	(c-determine-limit): Use c-forward-comment whilst moving forward.  Cope with
	an empty position stack whilst looking for non-literals (bug fix).  In the
	recursive call, double try-size to prevent Lisp stack overflow.

2018-03-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle C++17's constexpr keyword in if statements

	* cc-engine.el (c-after-conditional): Test for matches to
	  c-block-stmt-hangon-key.

	* cc-langs.el (c-block-stmt-hangon-kwds): New lang const.
	(c-block-stmt-hangon-key): New lang const/var matching any element of the
	above.

	* if-10.{cc,res,face}: New test files.

2018-03-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Replace faulty non-matching regexp "\\<\\>" with "a\\`"

	The regexp "\\<\\>", which is supposed never to match, actually matches, for
	instance, where a Chinese character is directly followed by an ASCII letter.
	So, replace it with "a\\`".

	* cc-defs.el (cc-fix, c-make-keywords-re)
	* cc-engine.el (c-beginning-of-statement-1, c-forward-<>-arglist-recur)
	(c-forward-decl-or-cast-1, c-looking-at-decl-block)
	* cc-fix.el (top-level)
	* cc-langs.el (c-assignment-op-regexp, c-block-comment-ender-regexp)
	(c-block-comment-start-regexp, c-line-comment-start-regexp)
	(c-doc-comment-start-regexp, c-decl-start-colon-kwd-re)
	(c-type-decl-prefix-key, c-type-decl-operator-prefix-key)
	(c-pre-id-bracelist-key, c-enum-clause-introduction-re)
	(c-nonlabel-token-2-key)
	* cc-vars.el (c-noise-macro-with-parens-name-re, c-make-noise-macro-regexps):
	Replace "\\<\\>" by "a\\`".

2018-03-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-looking-at-or-maybe-in-bracelist): Remove pessimization

2018-02-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix an enum intro being parsed as defun-block-intro

	* cc-engine.el (c-inside-bracelist-p): Return a bufpos rather than t for the
	enum case.
	(c-add-stmt-syntax, c-guess-continued-construct): Replace
	c-looking-at-or-maybe-in-bracelist by c-inside-bracelist-p, since the former
	does not recognize enum brace lists, but the latter does.

	* cc-fonts.el (c-get-fontification-context): Replace
	c-looking-at-or-maybe-in-bracelist by c-inside-bracelist-p.

	* bracelist-31.{c,res}: New test files.

2018-01-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix @examples in cc-mode.info, where lines were getting glued together.

	This happened because of false @c's in macro lines.

	* cc-mode.texi (Line-up Functions): Remove the unneeded @c from macros
	sssTBasicOffset, sssTsssTBasicOffset, and hereFn.

2018-01-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix some errors in c-display-defun-name when the type is "struct {..}", etc.

	Also fix some errors with c-display-defun-name when there are nested classes.

	* cc-cmds.el (c-in-function-trailer-p): Deal with a struct {..} being merely
	the type of a function.
	(c-where-wrt-brace-construct): Deal with a struct {..} being merely the type
	of a function.  Rearrange the order of some Lisp forms.  Insert a check for
	c-protection-key ("private", etc.) alongside the checking for a label.
	(c-defun-name-1): New function extracted form c-defun-name, which works within
	the existing restriction.  Don't regard 'at-function-end as being within the
	defun any more.  Recognize "struct", etc., with the new
	c-defun-type-name-decl-key rather than c-type-prefix-key.  Make the
	recognition of a normal function more accurate.
	(c-defun-name): Part left after extracting the above function.  It now just
	widens and calls c-defun-name-1.
	(c-declaration-limits-1): New function extracted from c-declaration-limits,
	which works within the existing restriction.  Move LIM back one block to
	account for the possibility of struct {..} as a function type.  Check we're
	not inside a declaration without braces.
	(c-declaration-limits): Part left after extracting the above function.  It now
	just narrows to an enclosing decl block and calls c-declaration-limits-1.
	(c-defun-name-and-limits): New function which identifies the name and limits
	of the most nested enclosing declaration or macro.
	(c-display-defun-name): Use c-defun-name-and-limits rather than two separate
	functions (which didn't always agree on which function).

	* cc-engine.el (c-beginning-of-statement-1): If we have struct {..} as the
	type of a function, go back over this, too.

	* cc-langs.el (c-defun-type-name-decl-kwds, c-defun-type-name-decl-key): New
	lang const/var.

2018-01-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle C99 Compound Literals in return statements and argument lists.

	* cc-engine.el (c-looking-at-or-maybe-in-bracelist): Recognize a brace list
	when preceded by "return" or inside parentheses, either immediately after the
	"(" or following a comma.
	(c-looking-at-inexpr-block): Test c-has-compound-literals rather than hard
	coded C++ Mode.
	(c-guess-basic-syntax, CASE 7B): Test additionally for not being just inside a
	parenthesis or being at a Java "new" keyword.  CASE 9: Remove the simple
	minded test on the contents of a block to determine a brace list.

	* cc-langs.el (c-has-compound-literals): New lang const and lang var.

	* bracelist-30.{c,res}: New test files.

2018-01-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: Fontify correctly uniform initialisation with inner parentheses.

	E.g.: someStruct x ( (nullptr != y) ? 3 : 4 )
	Also fontify declarations of function pointers correctly.

	* cc-engine.el (c-forward-decl-or-cast-1): While testing for a typeless
	declaration, additionally test the variable `got-prefix' to recognize a
	function pointer in parentheses.  Allow c-fdoc-shift-type-backward to be
	invoked when we have nested parens.

	* decls-43.{cc,face}, knr-6.face: New test files.

2017-12-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fontify a CPP construct correctly when a comment follows without spaces

	Do this by removing a broken optimization in the state cache which put
	category text properties on a character between the end of the CPP construct
	and the beginning of the comment.  This can't work when there's no such
	character.

	* cc-defs.el (c-cpp-delimiter, c-set-cpp-delimiters, c-clear-cpp-delimiters)
	(c-comment-out-cpps, c-with-cpps-commented-out)
	(c-with-all-but-one-cpps-commented-out): Remove.

	* cc-engine.el (c-no-comment-end-of-macro): Return the comment start position
	rather than one character before it.
	(c-invalidate-state-cache, c-parse-state): Remove the invocations of
	c-with-all-but-one-cpps-commented-out and c-with-cpps-commented-out.

	* cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): Rename to
	c-neutralize-syntax-in-CPP and remove the bits which applied category
	properties.

	* cc-langs.el (c-before-font-lock-functions): Incorporate the new name of the
	function c-neutralize-syntax-in-CPP.

	* macro-30.{cc,face}: New test files.

2017-12-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix loss of documentation face in certain CC Mode doc comment situations

	* cc-fonts.el (c-font-lock-doc-comments): Take into account the possibility of
	font-lock-comment-delimiter-face.  Test rigorously for "/**" (etc.) being
	itself inside a literal, rather than just depending on the face of the
	previous character.

2017-12-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix fontification of first declaration within a C++ lambda form.

	* cc-engine.el (c-looking-at-or-maybe-in-bracelist): Cease spuriously
	recognizing the braces of a lambda form as a brace list when there is an "="
	preceding the introductory brackets.

	* lambda-4.{cc,face}: New test files.

2017-12-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix misfontification of C++ member initialization list after "throw"

	* cc-engine.el (c-forward-type): Stop recognizing a "type" starting with
	"throw", by using c-opt-type-modifier-prefix-key.

	* cc-langs.el (c-type-modifier-prefix-kwds): New lang const which, in C++,
	doesn't contain "throw", otherwise like c-type-modifier-kwds.
	(c-opt-type-modifier-prefix-key): New lang const and var, a regexp matching
	any keyword in the previous lang const.

	* constructor-2.{cc,face}: New test files.

2017-12-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Don't misfontify "foo ()" inside C++ initialization parentheses as a type

	Also recognize and handle function names introduced by "extern" inside a
	function.

	* cc-engine.el (c-forward-decl-or-cast-1): Add a new element to the result
	list which is t when our declaration is, or is to be treated as, being at top
	level.

	* cc-fonts.el (c-get-fontification-context): Detect being inside a C++ uniform
	initialization and return (not-decl nil) for this case.
	(c-font-lock-declarations): Use the new element 4 of the result of
	c-forward-decl-or-cast-1.

	* cc-langs.el (c-make-top-level-kwds, c-make-top-level-key): New lang
	consts/vars.

	* statement-26.{cc,face}: New test files.

	* templates-12.face: Recalculate this face file.

2017-11-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make c-defun-name analyze more thoroughly a function type which is a struct

	This fixes bug #29293.

	* cc-cmds.el (c-defun-name): When a struct (etc.) type is encountered, check
	whether it is the return type of a function rather than a declaration of the
	struct itself.  Similarly adapt the cond arm which deals with functions
	properly to recognize struct return types.

2017-11-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix defun-open being recognized as brace-list-open at EOB.

	* cc-engine.el (c-looking-at-statement-block): Add handling for an open brace
	at EOB and nested braces inside an unclosed brace block.

	* bracelist-29.{c,res}: New test files.

2017-11-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct the indentation of C99's compound literals.

	* cc-engine.el (c-looking-at-statement-block): Amend so that if there is only
	syntactic whitespace in a brace block, it is regarded as a statement block.
	Also, if there is no semicolon or comma delimiter, treat as a statement block
	when there is a keyword.
	(c-guess-basic-syntax): CASE 9 test: Regard a brace as starting a brace block
	when its contents indicate a brace block.

	* bracelist-28.{c,res}: New test files.
	* constants-3.face: Correct this facefile after amendments unrelated to the
	above.

2017-11-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correctly indent C++14 brace lists which are a second argument to a function.

	In particular, don't indent contained brace lists in "staircase" fashion.
	This fixes bug #28623.

	* cc-engine.el (c-looking-at-or-maybe-in-bracelist): When testing for being
	enclosed in parens, recognise also a brace directly following a comma, as well
	as a brace being the first thing inside the paren.  Enhance the return value,
	by indicating when we're directly inside an open paren.
	(c-inside-bracelist-p): Add an extra argument ACCEPT-IN-PARAM which indicates
	whether we will accept a bracelist directly inside an open parenthesis.
	Simplify the manipulation of PAREN-STATE by dispensing with variable LIM and
	using c-pull-open-brace.  Enhance the return value, respecting the new
	argument.
	(c-guess-basic-syntax): Save a copy of the initial parse-state in the new
	variable STATE-CACHE.  Use this variable in place of C-STATE-CACHE throughout
	the function.  At CASE 7B, call c-inside-bracelist-p with extra argument nil.
	At CASE 9, call that function with extra argument t.

	* bracelist-2.res.  Reflect the now more accurate parsing available.
	* bracelist-25.{cc,res,face}.  Re-indent a brace list, and recalculate the
	.res and .face files.
	* bracelist-26.{cc,res}.  New test files.
	* bracelist-27.{cc,res}.  New test files.

2017-11-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Introduce a function to CC Mode which displays the current function name

	Remove an erroneous interactive specification from two functions.

	* cc-cmds.el (c-display-defun-name): New command.
	(c-defun-name, c-cpp-define-name): Remove interactive specification.

	* cc-mode.el (c-mode-base-map): Add binding C-c C-z for the new command.

	* cc-mode.texi (Other Commands): Add documentation for the new command.

2017-10-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix "Args out of range" error in c-determine-limit.

	* cc-engine.el (c-determine-limit-get-base): If the candidate position for
	BASE is below point-min, scan forward to the end of the current literal.
	(c-determine-limit): Add an extra arm to the final cond form, testing for BASE
	being at point-min.

2017-10-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix another "wrong side of point" error in CC Mode.

	This fixes (a follow-up to) bug #28850.
	A internal generated form for scanning text to fontify had a LIMIT parameter.
	It also locally bound LIMIT to a value possibly beyond the original LIMIT,
	allowing point to move beyond the original LIMIT, and to create the wrong side
	error.  Fix it by checking point is not beyond LIMIT in the outer context
	before using it.

	* cc-fonts.el (c-make-font-lock-search-form): Add a new parameter CHECK-POINT
	which, when non-nil, directs the function to generate a check on point.
	(c-make-font-lock-context-search-function): Invoke the above function with new
	argument value t.

2017-10-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix a "wrong side of point" error in CC Mode.  Fixes bug #28850.

	The cause was a scanning over a bracket pair taking us beyond the supplied
	LIMIT parameter in c-forward-declarator.

	* cc-engine.el (c-forward-declarator): Add three checks (< (point) limit)
	whilst dealing with tokens after the declared identifier.

	* cc-fonts.el (c-font-lock-declarators): Don't supply a LIMIT argument to
	`c-forward-declarator' (twice), since we want to fontify up till the end of a
	declarator, not an arbitrary jit-lock chunk end.

2017-10-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Refactor c-forward-token-2 with new function c-forward-over-token-and-ws.

	Use the new function directly in several places where c-forward-token-2
	wouldn't move over the last token in the buffer.  This caused an infinite loop
	in c-restore-<>-properties.

	* cc-engine.el (c-forward-over-token-and-ws): New function, extracted from
	c-forward-token-2.
	(c-forward-token-2): Refactor, calling the new function.
	(c-restore-<>-properties): Fix infinite loop.
	(c-forward-<>-arglist-recur, c-in-knr-argdecl)
	(c-looking-at-or-maybe-in-bracelist): Call the new function directly in place
	of c-forward-token-2.

	* cc-cmds.el (c-defun-name) Call the new function directly in place of
	c-forward-token-2.

	* cc-fonts.el (c-font-lock-enclosing-decls): Call the new function directly in
	place of c-forward-token-2.

2017-10-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fontify untyped function declarations in C Mode correctly.

	Also correct two bugs where deleting WS at a BOL could leave an untyped
	function declaration unfontified.

	* cc-engine.el (c-find-decl-spots): Don't set the flag "top-level" when we're
	in a macro.
	(c-forward-decl-or-cast-1): Recognize top-level "foo(bar)" or "foo()" in C
	Mode as a implicitly typed function declaration.
	(c-just-after-func-arglist-p): Don't get confused by "defined (foo)" inside a
	macro.  It's not a function plus arglist.

	* cc-langs.el (c-cpp-expr-functions-key): New defconst and defvar.

	* cc-mode.el (c-fl-decl-end): After c-forward-declarator, move over any
	following parenthesis expression (i.e. parameter list).
	(c-change-expand-fl-region): When c-new-END is at a BOL, include that line in
	the returned region, to cope with deletions at column 0.

	* decls-19.{c,face}, knr-5.{c,face}: Fix for the new correct recognition of
	typeless functions.

	* macro-17.face, toplevel-label-1.face: Regenerate to cope with changed
	handling of invalid constructs.

2017-10-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix a CC Mode brace stack cache bug.

	* cc-engine.el (c-update-brace-stack): Call c-beginning-of-current-token after
	a failing search operation, to ensure we don't cache a point inside a token.

2017-09-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix irregularities with CC Mode fontification, particularly with "known types"

	* cc-fonts.el (c-font-lock-declarators): Introduce a new optional parameter,
	template-class.  In "class <X = Y>", fontify "Y" as a type.
	(c-font-lock-single-decl): New variable template-class, set to non-nil when we
	have a construct like the above.  Pass this as argument to
	c-font-lock-declarators.
	(c-font-lock-cut-off-declarators): Check more rigorously that a declaration
	being processed starts before the function's starting position.
	(c-complex-decl-matchers): Remove the redundant clause which fontified "types
	preceded by, e.g., "struct"".

	* cc-langs.el (c-template-typename-kwds, c-template-typename-key): New lang
	defconsts and defvar.

2017-09-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Cope better with C++ and Objective-C protection keywords in class declarations

	This fix fixes the fontification of method inside a class at the time it is
	typed, when there is a protection keyword clause preceding it.

	* cc-engine.el (c-forward-keyword-clause): Handle protection keywords.
	(c-looking-at-decl-block): Avoid scanning forward over protection keyword
	clauses too eagerly.

	* cc-langs.el (c-protection-key c-post-protection-token): New lang defconsts
	and defvars.

	* cc-mode.el (c-fl-decl-start): When we encounter a protection keyword
	following a semicolon or brace, move forward over it before attempting to
	parse a type.

2017-09-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Don't match C++ template delims starting within a token.  FIxes bug #28418.

	* cc-engine.el (c-restore-<>-properties): After failing an attempted match
	from the start of a token (in particular, "<<"), move to the next token rather
	than the nex character before searching for the next "<".

2017-09-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct the fontification of quote marks after buffer changes in CC Mode.

	* cc-mode.el (c-parse-quotes-before-change, c-parse-quotes-after-change):
	Rewrite the functions, simplifying considerably, and removing unnecessary
	optimisations.  Invalidate two caches after manipulating text properties.

2017-09-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix fontification of "operator~" in C++ Mode.

	* cc-langs.el (c-ambiguous-overloadable-or-identifier-prefices)
	(c-ambiguous-overloadable-or-identifier-prefix-re): New c-lang-defconsts/vars.

	* cc-engine.el (c-forward-name): Do not try to parse "~" (and two other
	symbols) as a cast without good evidence.  Prefer an overloaded operator in
	ambiguous cases.

	* operator-3.{cc,face}: New test files.

2017-08-31  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix a glitch in CC Mode's syntactic whitespace cache.

	* cc-engine.el (c-forward-sws): Deal correctly with a block comment close at
	the end of a macro.

2017-08-31  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct the fontification of C++ Mode enclosed declarations.

	* cc-fonts.el (c-font-lock-enclosing-decls): abolish the spurious check that
	the character before the start of an enclosed declaration must be ; or }.  It
	might also be {.

	* operator-3.{cc,face}: New test files.

2017-08-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Amend the CC Mode macro cache to cope with changes at the macro start

	Fixes bug #28233.

	* cc-engine.el (c-invalidate-macro-cache): Fix an off-by-1 error.

2017-08-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	When looking for the end of a declarator, prevent macros fouling up the search

	The practical implication of this bug was a random jit-lock chunk remaining
	entirely unfontified.

	* cc-mode (c-fl-decl-end): If point starts inside a macro, restrict two
	forward searches to the end of that macro.

2017-07-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix C++ class initializers not always being fontified at mode start.

	The problem here happened when an "outer list" of declarations moved beyond an
	"inner list" containing class initializers.  These weren't being checked for
	by the code.

	Also, fix places in c-get-fontification-context where point is undefined.

	* cc-fonts.el (c-get-fontification-context): when argument not-front-decl is
	set, test for class initializers.  Also, anchor point in places where it is
	moved and is otherwise undefined.

2017-07-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix variables in C++ "for" statement not always being fontified.

	The error happened when there was a comma inside template delimiters.

	* cc-fonts.el (c-get-fontification-context): In "for" statements, recognise
	template delimiters containing "," and "&".

2017-07-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix declarator being cut off from terminator by end of jit-lock chunk

	If a declarator is so cut off, extend the fontification chunk to include it.

	* cc-mode.el (c-fl-decl-end): New function.
	(c-change-expand-fl-region, c-context-expand-fl-region): Use the new function.

2017-07-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Convert CC Mode's c-found-types from an obarray to a hash table.

	* cc-engine.el (c-clear-found-types): create a hash table rather than an
	obarray.
	(c-copy-found-types): Remove.
	(c-add-type, c-unfind-type, c-check-type, c-list-found-types): Amend to use
	the new hash table.
	(c-forward-<>-arglist): Use copy-hash-table rather than c-copy-found-types.

2017-07-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode.  Fix anomaly occurring when a ">" is deleted then reinserted.

	This fontification anomaly happened because after deleting the ">",
	c-forward-<>-arglist parses the preceding identifier as a putative type but
	stores it in c-found-types before it becomes clear it is not an unambiguous
	type.  c-forward-<>-arglist fails, leaving the spurious type id in
	c-found-types.  Fix this by "binding" c-found-types "to itself" in
	c-forward-<>-arglist, and restoring the original value when that function call
	fails.

	* cc-engine.el (c-copy-found-types): New function.
	(c-forward-<>-arglist): Record the original value of c-found-types at the
	beginning of the function, and restore it at the end on failure.

	* cc-mode.el (c-unfind-coalesced-tokens): Rewrite more accurately.

2017-07-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix some bugs in c-defun-name.  This fixes bug #25623.

	* cc-cmds.el (c-defun-name): Fix some bugs to do with structs, etc.

	* cc-mode.el (c-common-init): Set `add-log-current-defun-function'.

2017-07-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make prog-mode-map the parent of c-mode-base-map.  Fixes bug #26658.

	* cc-mode.el (top level): Make prog-mode-map the parent of c-mode-base-map if
	possible.  Patch by Vasilij Schneidermann <mail@vasilij.de>.

2017-07-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: create and use c-set-keymap-parent.

	* cc-defs.el (c-set-keymap-parent): New macro.

	* cc-mode.el (top-level): Remove cc-bytecomp-defun for set-keymap-parents.
	(c-make-inherited-keymap): Use c-set-keymap-parent in place of inline code.

2017-07-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix bug in yesterday's CC Mode commit.

	* cc-mode.el (c-quoted-number-head-before-point): Check a search has succeded
	before using the match data.
	(c-quoted-number-head-before-point, c-quoted-number-head-after-point):
	Specify that the position of the extremity of the head or tail is in the match
	data.

2017-07-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make C++ digit separators work.  Amend the handling of single quotes generally

	Single quotes, even in strings and comments, are now marked with the
	"punctuation" syntax-table property, except where they are validly bounding a
	character literal.  They are font locked with font-lock-warning-face except
	where they are valid.  This is done in C, C++, ObjC, and Java Modes.

	* cc-defs.el (c-clear-char-property-with-value-on-char-function)
	(c-clear-char-property-with-value-on-char, c-put-char-properties-on-char): New
	functions/macros.

	* cc-fonts.el (c-font-lock-invalid-single-quotes): New function.
	(c-basic-matchers-before): invoke c-font-lock-invalid-single-quotes.

	* cc-langs.el (c-get-state-before-change-functions): Remove
	c-before-after-change-digit-quote from wherever it occurs.  Insert
	c-parse-quotes-before-change into the entries for the languages where it is
	needed.
	(c-before-font-lock-functions): Remove c-before-after-change-digit-quote from
	wherever it occurs.  Insert c-parse-quotes-after-change into the entries for
	the languages which need it.
	(c-has-quoted-numbers): New lang-defconst/-defvar.

	* cc-mode.el (c-before-after-change-digit-quote): Remove.
	(c-maybe-quoted-number-head, c-maybe-quoted-number-tail)
	(c-maybe-quoted-number): New defconsts.
	(c-quoted-number-head-before-point, c-quoted-number-tail-after-point)
	(c-quoted-number-straddling-point, c-parse-quotes-before-change)
	(c-parse-quotes-after-change): New functions.

2017-06-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make CC Mode load cl-lib rather than cl in Emacs 26.

	* cc-cmds.el (c-declaration-limits): Remove unused local variable.

	* cc-defs.el (c--mapcan-status): Remove.
	(c--cl-library): New variable.
	(Top level): Amend the form which requires library cl or cl-lib.
	(c--mapcan, c--set-difference, c--intersection, c--macroexpand-all)
	(c--delete-duplicate): Amend to use c--cl-library instead of
	c--mapcan-status.

	* cc-engine.el (c-syntactic-skip-backward, c-back-over-compound-identifier):
	Remove unused local variables.

	* cc-fonts.el (c-font-lock-declarations): Remove an unused local variable.

	* cc-langs.el (Top level): Amend to use c--cl-library instead of
	c--mapcan-status.

	* cc-styles.el (Top level): Add a cc-bytecomp-defun to try to silence a
	compiler warning.

	* 000tests.el (c--string-to-int): New defalias.
	(cc-test-convert-to-rel-offsets, cc-test-convert-to-abs-offsets): Use
	c--string-to-int.

	* comments-6.c: Add emacs-26 into the list of "don't test" versions.

2017-06-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Ensure C++ initializer lists don't get fontified.

	* cc-cmds.el (c-block-comment-flag): Move declaration to solve compiler
	warning.

	* cc-fonts.el (c-get-fontification-context): Add an extra clause to handle C++
	member initialization lists.
	(c-font-lock-single-decl): New function, extracted from
	c-font-lock-declarations.
	(c-font-lock-declarations): Call c-font-lock-single-decl in place of inline
	code.
	(c-font-lock-cut-off-declarators): Make more rigorous by calling
	c-get-fontification-context, c-forward-decl-or-cast-1, and
	c-font-lock-single-decl in place of rather approximate code.

	* member-14.{cc,face}: New test files.

2017-06-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix hang in CC Mode when ":" is typed after identifier at EOB.

	* cc-engine.el (c-forward-declarator): Fix coding error confusing ":" and EOB.

2017-06-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Create a toggle between block and line comments in CC Mode.

	Also (unrelated change) initialize the modes' keymaps at each loading.

	* cc-cmds.el (c-update-modeline): amend for the new information on the
	modeline.
	(c-block-comment-flag): New variable.
	(c-toggle-comment-style): New function.

	* cc-langs.el (c-block-comment-starter, c-line-comment-starter): Make them
	c-lang-defvars.
	(c-block-comment-is-default): New c-lang-defvar.
	(comment-start, comment-end): Make the default values dependent on
	c-block-comment-is-default.

	* cc-mode.el (c-mode-base-map): Define C-c C-k in this map.
	(c-basic-common-init): Initialize c-block-comment-flag.
	(c-mode-map, c++-mode-map, objc-mode-map, java-mode-map, idl-mode-map)
	(pike-mode-map, awk-mode-map): Make entries in these key maps each time the
	mode is loaded rather than just once per Emacs session.

	* cc-mode.texi (Comment Commands): Introduce the notion of comment style.
	(Minor Modes): Define comment style.  Describe how comment style influences
	the information displayed on the modeline.  Document c-toggle-comment-style.
	(FAQ): Add a question about toggling the comment style.

2017-05-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	c-defun-name: Return fully qualified method names when wanted in C++, etc.

	* cc-cmds.el (c-defun-name): Use c-back-over-compound-identifier in place of
	c-backward-token-2 near the end of the function.

2017-05-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct earlier change: insert missing `and' form in `c-forward-declarator'

	* cc-engine (c-forward-declarator): Insert missing `and' form inside a
	`save-excursion'.

2017-05-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fontify C++ for loop variable as variable, even when followed by parentheses

	In the following: "for (auto *Friend : Class->friends()) {", "Friend" was
	getting fontified as a function, due to insufficient checking of the tokens
	between it and "()".

	* cc-langs.el (c-:-op-cont-tokens, c-:-op-cont-regexp): New lang-consts/vars.

	* cc-engine.el (c-forward-declarator): After finding a putative declarator's
	identifier, check for a ":" token inside a for's parentheses, and abort the
	search for "(" if this is found.

	* forloop-7.{cc,face}: New test files.

2017-05-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode internal cache: Handle a cache pos being inside a two-char construct.

	Cache c-state-semi-nonlit-pos-cache was failing when a cache position was,
	e.g., between the two characters of an opening comment "/*", and additionally
	there were an odd number of quote marks (apostrophes) in the comment.  This
	happened in .../src/xdisp.c in the Emacs master branch around 2017-05-02 at
	buffer position 615001.

	* cc-defs.el (c-emacs-features): Repurpose symbol pps-extended-state to mean
	that there are at least 11 elements in the parser state.

	* cc-engine.el (c-cache-to-parse-ps-state, c-parse-ps-state-to-cache): Rewrite
	these to use enhanced cache element list types which indicate potentially
	being inside two-char constructs.
	(c-parse-ps-state-below): Rewrite to use the new versions of the above two
	functions.

2017-04-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix fontification of C++ declaration with type FOO::FOO.

	* cc-engine.el (c-find-decl-spots): Initialize cfd-top-level properly.
	(c-forward-decl-or-cast-1): On finding FOO::FOO, check it is followed by "("
	before deciding it is a constructor.

	* cc-fonts.el (c-font-lock-complex-decl-prepare): Negate the result of the
	c-bs-at-toplevel-p call passed to c-font-lock-declarators (simple bug fix).

2017-04-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix a loop in C Mode caused by inadequate analysis of comments.

	After M-;, and the insertion of the opening "/*", the CC Mode after-change
	function got confused, since the new comment opener matched the end of a
	subsequent comment, but moving back over that comment did not come back to the
	starting point.  Fix this.

	* cc-engine.el (c-end-of-macro): Add a limit parameter, where point is left if
	no end-of-macro is found before it.
	(c-forward-sws): Change the `safe-start' mechanism.  Now `safe-start' is
	non-nil except where we have an unclosed block comment at the end of a macro.
	This enables us to populate the cache more fully, at the cost of some run
	time.

2017-03-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix C++ fontification problems 500 bytes after typing a space, and other bugs

	Also implement the "asymmetric space" rule for fontifying otherwise ambiguous
	declarations/expressions.

	* cc-engine.el (c-before-change-check-<>-operators): Don't set c-new-BEG or
	c-new-END when there is no need.
	(c-forward-decl-or-cast-1): Add "CASE 17.5" to implement the "asymmetric
	space" rule.

	* cc-fonts.el (c-get-fontification-context): New function, extracted from
	c-font-lock-declarations.  Add to this function processing to make `context'
	'decl for lines contained within parens when these are also declarations.
	(c-font-lock-declarations): Call the newly extracted function above in place
	of inline code.

	* cc-mode.el (c-fl-decl-start): Set point before calling c-literal-start.

	* cc-vars.el (c-asymmetry-fontification-flag): New user option.

	* cc-mode.texi (Misc Font Locking): New node documenting the new "asymmetric
	fontification" rule, including the variable c-asymmetric-fontification-flag.

	* decls-10.{cc,face}, decls-13.face, decls-19.face: Edit decls-10.cc to add
	comment to otherwise puzzling fontifications.  Regenerate the three face files
	to reflect the enhanced fontification this change gives.

2017-03-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix chaotic indentation of C++ lambda.  Enhance documentation thereof

	* cc-engine.el (c-looking-at-inexpr-block): qualify an invocation of
	c-on-identifier with a check we're not at the _end_ of an identifier.

	* cc-mode.texi: (Tex title page): Remove @subtitlefont because the perl versions
	of texi2dvi haven't implemented it.
	(Syntactic Symbols): Note that `inlambda' is also used in C++ Mode, not just
	in Pike Mode.
	(Statement Block Symbols): Add a section illustrating a C++ lambda function.
	(FAQ): Add a question about "excessive" indentation of the contents of a C++
	lambda function, and how to get rid of it.

2017-02-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Allow for the :: operator in C++ "enum class" declarations.

	* cc-engine.el (c-backward-typed-enum-colon): Check for "::"

	* cc-enum-12.{cc,res}: New test files.

2017-02-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix edebug-spec on c-lang-defvar.

	This allows c-lang-defvars with the symbol 'dont-doc in the place of the
	optional documentation to be instrumented for edebug.

	* cc-langs.el (top-level): Amend the edebug-spec for c-lang-defvar.
	(c-opt-identifier-concat-key, c-decl-prefix-or-start-re): remove redundant
	'dont-doc.

2017-02-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Allow C++ nested brace-list-entries to be better indented.

	This fixes bug #24431.  The key change of this bug fix is correctly analyzing
	nested brace lists when the opening element stands on the same line as both
	its introductory brace and an enclosing parameter list parenthesis.

	* cc-align.el (c-lineup-under-anchor): New line-up function.

	* cc-engine.el (c-looking-at-or-maybe-in-bracelist): Accept the presence of
	exactly an identifier between an open parenthesis and an open brace as
	evidence of the brace starting a brace list.
	(c-looking-at-statement-block): New function, extracted from
	c-looking-at-inexpr-block.  Enhance it to analyze inner blocks recursively
	when needed.
	(c-looking-at-inexpr-block): Extract new function (see above) and call it.
	(c-add-stmt-syntax): Enhance, with new &optional parameter, to supply the
	prime syntactic symbol with a fixed anchor point.  When this is used, restrict
	all added syntactic symbols to those having an anchor point on the same line.
	Add, in addition to the current additional symbols, c-brace-list-entry when
	needed; use c-looking-at-statement-block to determine the latter.
	(c-guess-basic-syntax, CASE 9D): Use c-add-stmt-syntax rather than just
	c-add-syntax, to assemble the syntactic context of a 'brace-list-entry, thus
	getting, possibly, several accompanying syntactic entries.

	* cc-styles.el (c-style-alist, "gnu" style): New entry for 'brace-list-intro,
	namely c-lineup-arglist-intro-after-paren.

	* cc-vars.el (c-offsets-alist): Change the factory default offset for
	'brace-list-entry from 0 to c-lineup-under-anchor.

	* cc-mode.texi (Syntactic Symbols): Amend the definition of brace-list-intro.
	(Brace List Symbols): Amend the example to show the new analysis of brace
	lists when the first element comes on the same line as the opening brace.
	(Misc Line-Up): Document the new line-up function c-lineup-under-anchor.

	* 000tests.el (cc-test-teststyle): Change the offset for 'brace-list-entry
	from 0 to c-lineup-under-anchor.

	* bracelist-2.res, bracelist-25.res, bracelist-8.res, bracelist-9.res,
	class-21.res: regenerate to incorporate new analysis of brace lists.

2017-01-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix low-level handling of (big) C macros.

	In particular, ensure that a comment detected by its syntax is not a CPP
	construct marked with generic comment delimiter syntax-table text properties.

	* cc-engine.el (c-beginning-of-macro, c-end-of-macro): Set
	c-macro-cache-syntactic to nil when the cached macro changes.
	(c-syntactic-end-of-macro, c-no-comment-end-of-macro)
	(c-state-semi-pp-to-literal, c-state-full-pp-to-literal)
	(c-state-pp-to-literal, c-parse-ps-state-to-cache)
	(c-state-cache-non-literal-place, c-literal-limits, c-literal-start)
	(c-determine-limit): When checking a parse syntax for a comment, check that
	we're not in a CPP construct marked by syntax-table generic comment delimiter
	text property.
	(c-state-pp-to-literal): Change from a defsubst to a defun.

	* cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): Check a parse syntax as
	described above under cc-engine.el.

2017-01-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct c-parse-state-get-strategy for moving HERE backward into a macro.

	* cc-engine.el (c-parse-state-get-strategy): When HERE is below its previous
	value, we chose strategy 'forward, and the new HERE is in a (different) macro,
	ensure the returned START-POINT is not above the start of the macro.

2017-01-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle syntactic WS cache properties more accurately at buffer changes.

	This fixes bug #25362.

	* cc-engine.el (c-sws-lit-type, c-sws-lit-limits)
	(c-invalidate-sws-region-before, c-invalidate-sws-region-after-del)
	(c-invalidate-sws-region-after-ins): New variables and functions.
	(c-invalidate-sws-region-after): Change from a defsubst to a defun.  Also pass
	it the standard OLD-LEN argument.  Call both
	c-invalidate-sws-region-after-{ins,del} to check for "dangerous" WS cache
	properties.

	* cc-langs.el (c-block-comment-ender-regexp): New language variable.

	* cc-mode.el (c-before-change): Call c-invalidate-sws-region-before.
	(c-after-change): Pass old-len to c-invalidate-sws-region-after.

2016-12-31  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix edebug spec for cc-eval-when-compile to allow for instrumenting defuns

	* cc-defs.el: Correct the edebug spec for cc-eval-when-compile from t to
	(&rest def-form) so that it will insert an edebug-enter into the instrumented
	form, thus allowing functions containing it to be debugged without the
	instrumentation throwing errors.

2016-12-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Fix the fontification of a spuriously recognised enum member.

	The "enum" was in an argument list, but triggered the fontification of a
	following identifier in the function block as though it were in an enum
	declaration.

	* cc-fonts.el (c-font-lock-enum-body): New function.
	(c-basic-matchers-after): Replace the inline stanza for enum elements with a
	call to c-font-lock-enum-body.

	* cc-langs.el (c-enum-clause-introduction-re): New language variable.

	* enum-11.{c,face}: New test files.

2016-12-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Partially correct fontification of "(b*3)", and the like, in C++ Mode

	This problem is caused by the fundamental ambiguity in C++ between
	argument declarations and initialisation clauses.

	* cc-fonts.el (c-font-lock-declarations): If we have an open paren
	preceded by an arithmetic operator, we give this the context nil, not
	'arglist.

	* cc-langs.el (c-arithmetic-operators, c-arithmetic-op-regexp): New lang
	consts and vars.

	* decls-42.{cc,face}: New test files.

2016-10-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode manual: remove reference to former Emacs variable last-command-char

	* cc-mode.texi (Hanging Semicolons and Commas): Replace reference to variable
	last-command-char by one to macro c-last-command-char.

2016-09-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-forward-decl-or-cast-1): Fix coding error

2016-09-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C Mode: Fix mis-fontification of macro invocation as function declaration

	This happened with a macro invocation which was followed by a statement block
	in braces.

	* cc-engine.el (c-forward-decl-or-cast-1): CASE 11: distinguish between
	contexts nil and top, being less permissive in the former case.
	(c-just-after-func-arglist-p): call c-forward-decl-or-cast-1 with context top.

	* decls-41.{c,face}: New test files.

2016-09-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correctly fontify C++ direct initializations with parens inside functions

	Or, more clearly, when something looks like a function declaration and it's
	inside a function, fontify it as a direct initialization.

	For this purpose, introduce a "brace stack" for each buffer, where an entry on
	the brace stack states how deeply nested a particular position is inside
	braces inside a "top level", which includes classes and namespaces.

	Also introduce a new "context", "top", with which c-font-lock-declarations
	signals to c-forward-decl-or-cast-1 that point is at the top level.

	* cc-langs.el (c-get-state-before-change-functions): add c-truncate-bs-cache.
	(c-flat-decl-block-kwds, c-brace-stack-thing-key, c-brace-stack-no-semi-key)
	(c-type-decl-operator-prefix-key): new language constants/variables.

	* cc-engine.el (c-bs-interval, c-bs-cache, c-bs-cache-limit, c-bs-prev-pos)
	(c-bs-prev-stack): New mostly local variables for the brace stack cache.
	(c-init-bs-cache, c-truncate-bs-cache, c-truncate-bs-cache, c-brace-stack-at)
	(c-bs-at-toplevel-p): New functions which manipulate the brace stack (cache).
	(c-find-decl-prefix-search): Keep track of whether we're at top level.
	(c-find-decl-spots): New local variable cfd-top-level which records what it
	says.  On calling cfd-fun, pass cfd-top-level as an additional argument.
	(c-forward-declarator): Add new element DECORATED to the result list.  Set it
	to non-nil when a match for c-type-decl-operator-prefix-key is found.
	(c-forward-decl-or-cast-1): Handle the newly introduced context "top".
	Introduce "CASE 9.5", which recognizes direct initializations.

	* cc-fonts.el (c-font-lock-complex-decl-prepare, c-font-lock-enum-tail)
	(c-font-lock-cut-off-declarators, c-font-lock-enclosing-decls)
	(c-simple-decl-matchers, c-basic-matchers-after): Add appropriate `not-top'
	argument to calls to c-font-lock-declarators.
	(c-font-lock-declarators): Additional parameter `not-top'.  Use not-top to
	participate in the decision whether to fontify an identifier as a function or
	a variable.
	(c-font-lock-declarations): The internal lambda function takes an additional
	argument `toplev' from c-find-decl-spots, which it uses in determining the
	"context" of a declaration.  Add appropriate `not-top' argument to calls to
	c-font-lock-declarators.
	(c-font-lock-objc-methods): Add extra parameter to internal lambda function,
	like for c-font-lock-declarators.

	* cc-mode.el (c-basic-common-init): Initialize the brace stack cache.

	* decls-28.face, templates-12.face: Regenerate for changed fontification.

	* decls-38.{cc,face}, decls-39.{cc,face}, decls-40.{cc-face}: New test files.

2016-09-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-syntactic-re-search-forward): Fix coding error

2016-09-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	New options for handling of literals in c-syntactic-re-search-forward

	* cc-engine.el (c-syntactic-re-search-forward): `noerror' can be given the
	values `before-literal' and `after-literal', so that when a search fails, and
	the `bound' is inside a literal, point is left respectively before or after
	that literal.

2016-09-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix c-declaration-limits to return correct limits in all cases.

	This function is the guts of c-indent-defun and c-mark-function.

	In particular, when c-defun-tactic is nil, return a correct value rather than
	always nil, and when it's 'go-outward, go through an intricate algorithm to
	determine the requisite narrowing before the "top-level" defuns go to work.

	* cc-cmds.el (c-narrow-to-most-enclosing-decl-block): Enhance to take
	additional optional parameter LEVEL, saying how many enclosing levels of
	decl-block to narrow to.
	(c-declaration-limits): Introduce algorithm to determine narrowing.  Use
	c-where-wrt-to-brace-block to determine whether to go back to BOD to determine
	lower bound.

2016-08-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correctly analyze C++ list initialization in member init areas.

	* cc-engine.el (c-back-over-list-of-member-inits): Remove a superfluous call
	to c-backward-syntactic-ws.
	(c-looking-at-or-maybe-in-bracelist): Change calling convention, so that it
	reports encountering the Java "new" keyword.  Add, as an alternative, a check
	that we can move back over member initializations, and handle this as finding
	a brace block.
	(c-looking-at-special-brace-list, c-guess-continued-construct): Adapt to the
	new calling convention of c-looking-at-or-maybe-in-bracelist.
	(c-guess-basic-syntax, CASE 5A.3): Replace lots of inline ad-hoc code with
	calls to c-backward-over-enum-header and c-looking-at-or-maybe-in-bracelist,
	using the extra info from the value of that function to generate a
	topmost-into-cont element where needed (in Java).

	* cc-fonts.el (c-font-lock-declarations): Adapt to the new calling convention
	of c-looking-at-or-maybe-in-bracelist.

	* cc-mode.el (c-fl-decl-start): Adapt to the new calling convention of
	c-looking-at-or-maybe-in-bracelist.

	* bracelist-25.res.  Newly generated for the newly correct analysis.

	* enum-7.res.  Newly generated for the newly correct analysis.

2016-08-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle the C++ "identifiers" "final" and "override" correctly.

	This fixes bug #24319, allowing destructors affixed with these identifiers to
	be correctly fontified.

	* cc-engine.el (c-forward-type, c-forward-decl-or-cast-1): After reaching the
	"end" of a type expression, skip over any occurrences of
	c-type-decl-suffix-ws-ids-key.

	* cc-langs.el (c-type-modifier-kwds): Remove "override" and "final" from the
	C++ value.
	(c-type-decl-suffix-ws-ids-kwds, c-type-decl-suffix-ws-ids-key): New lang
	constants/variables for "final" and "override".

	* class-34.{cc,face}: New test files.

2016-08-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle template delimiters in C++ member init constructs.

	* cc-engine.el (c-back-over-list-of-member-inits): Add handling for "<....>"s.

	* class-33.{cc,res}: New test files.

2016-08-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make minor amendments after release 5.33

	* cc-mode.texi: Update version number to 5.33.

	* changes-533.php: Amend the address to download from.

	* compat.php: Amend the list of compatible versions of [X]Emacs.

	* hgaccess.php: Update version number to 5.33.

2016-08-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Release 5.33

	* cc-*.el, cc-mode.texi: Update copyright statements.

	* cc-defs.el (c-version): Update to 5.33

	* ANNOUNCEMENT, README: Update to version 5.33.

	* MANIFEST: Removal two obsolete .el files from the list.

	* NEWS: Insert a summary of new 5.33 features.

	* ChangeLog: Add entries for all changes since release 5.32.5.

	* Changelinks.h: Add a line for changes-533.php.

	* changes-533.php: New file, web version of new information in
	NEWS.

	* compat.php: Update to the [X]Emacs versions compatible with
	release 5.33.

	* index.php, release.php: Update version numbers.

	* links.h: Update version numbers.  Remove the obsolete references
	to CVS stuff.

2016-08-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix an infinite loop in C++ Mode when we have "{ .... [ .... }"

	* cc-fonts.el (c-font-lock-c++-lambda-captures): In the inner `while' form's
	condition, check for "\\s)" rather than merely "\\]", so that the loop won't
	hang at a "terminating" paren of a different type (due to the
	c-syntactic-re-search-forward at the end of the loop stopping at such
	characters).

2016-08-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Analyze and fontify correctly a C++ `enum' with colon, but lacking a tag.

	* cc-engine.el (c-backward-typed-enum-colon): Check for "enum" directly
	preceding the colon, and handle it.

	* enum-10.{cc,res,face}: New test files.

2016-08-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Adapt CC Mode for C++11 uniform initialization.

	For fontification, introduce a new "context", 'non-decl, to be used for brace
	lists; also a new value for the property 'c-type, called 'c-not-decl.

	* cc-engine.el (c-back-over-compound-identifier): Check that an ostensible
	symbol we're going to move over isn't a keyword.
	(c-forward-decl-or-cast-1): CASE 1: Where we have two consecutive identifiers
	(hence a declaration), and an unmatched open paren, perform
	c-fdoc-shift-type-backwards to recognize the partial construct correctly.
	Whilst checking a type decl expression, check for and handle C++11's "copy
	initialization", where we have <type>(<constant>).  Recognize
	<id><id>(... (where the paren is unclosed) as a declaration.
	(c-looking-at-or-maybe-in-bracelist): New function, extracted from
	c-inside-bracelist-p.  Recognize as bracelists "{"s which are preceded by
	valid tokens other than "=".  Recognize a bracelist when preceded by a
	template declaration.
	(c-inside-bracelist-p): Call c-looking-at-or-maybe-in-bracelist in place of
	much inline code.
	(c-looking-at-inexpr-block): Amend so that it won't wrongly recognise an
	initialization starting "({" as an in-expression block, by checking for
	semicolons, as opposed to commas, separating elements inside it.
	(c-guess-continued-construct): (CASE B-2): Recognize a brace-list-open by
	calling c-looking-at-or-maybe-in-bracelist rather than checking for a
	preceding "=".  (CASE B-5): New code to recognize new construct "return {
	...}".
	(c-guess-basic-syntax): (CASE 5A.3): Additionally recognize a "{" preceded by
	"return", or "{" preceded by <type><identifier> as a bracelist.

	* cc-fonts.el (c-font-lock-declarations): Recognize brace lists, giving them
	`context' 'non-decl.  Pass over elements of one by regexp search for ","
	rather than calling c-forward-decl-or-cast-1.

	* cc-langs.el (c-return-kwds, c-return-key): New lang constants/variables to
	recognize "return".
	(c-pre-id-bracelist-key): New lang constant/variable to recognize tokens
	which, when preceding an identifier followed by a brace, signify the brace as
	a bracelist.

	* cc-mode.el (c-fl-decl-start): When searching outwards for the start of a
	"local" declaration, move out from an enclosing brace when that is the start
	of a brace list.

	* bracelist-25.{cc,face,res}: New test files.

2016-08-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-safe-scan-lists): Resolve overelaborate "nil"

2016-08-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	In c-\(go-\)?-\(up-\|down-\)?list-\(forward\|backward\) check limit isn't nil

	Check the limit both at macro expansion time (for a hard coded nil) and at run
	time in the generated code.  Tidy up these macros generally.

	* cc-defs.el (c-safe-scan-lists): Check `limit' is present and not identically
	nil before generating a narrow-to-region call.  Generate code to check `limit'
	is not nil at run time.
	(c-go-list-forward, c-go-list-backward): Remove the generation of redundant
	narrow-to-region, instead calling c-safe-scan-lists directly.
	(c-go-up-list-forward, c-go-up-list-backward, c-go-down-list-forward)
	(c-go-down-list-backward): Invoke the corresponding macros without the "go-"
	to determine the destination position instead of generating a redundant
	narrow-to-region.

2016-08-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fontify constructs following "::" in C++ argument lists correctly - part 2.

	This fixes bug #24246.

	* cc-engine.el (c-find-decl-prefix-search): Put a `save-match-data' around the
	new `looking-at' introduced by the previous CC Mode patch this evening.

2016-08-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fontify constructs following "::" in C++ argument lists correctly.

	This fixes bug #24246.

	* cc-engine.el (c-find-decl-prefix-search): In the "pseudo match" loop, test a
	found string for a match with c-opt-identifier-concat-key (e.g. with "::").

	* arglist-23.{cc,face}: New test files.

2016-08-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix minor bug in c-syntactic-re-search-forward.

	Bug was: when NOERROR is neither nil nor t, BOUND is non-nil, PAREN-LEVEL is
	non-nil, and the first internal search attempt fails, point wrongly ends up at
	BOUND, rather than just before the next closing paren.

	* cc-engine.el (c-syntactic-re-search-forward): Guard against the above
	situation.

2016-08-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle C++11 lambda functions.

	* cc-engine.el (c-looking-at-inexpr-block): Enhance also to handle C++ lambda
	functions.
	(c-looking-at-c++-lambda-capture-list): New function.

	* cc-fonts.el (c-font-lock-declarations): Recognize the parameter list of a
	lambda function and set `context' and `c-restricted-<>-arglists' suitably for
	it.
	(c-font-lock-c++-lambda-captures): New function.
	(c-complex-decl-matchers): Insert c-font-lock-c++-lambda-captures into it.

	* cc-langs.el (c-pre-lambda-tokens, c-pre-lambda-tokens-re): New language
	constants/variables.
	(c-paren-nontype-kwds): Include "noexcept" in the C++ value.

	* cc-mode.el (c-fl-decl-start): Handle being in a C++ lambda function capture
	list.

	* lambda-3.{cc,res,face}: New test files.

2016-08-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: check for and fix missing call to before_change_functions.

	Fixes bug #24094 and bug #24074.

	This can happen with `revert-buffer' or sometimes `find-file', when the file
	is already in a buffer, but the file has been changed outside of Emacs.  It
	does not happen in XEmacs.

	* cc-mode (c-after-change): When we detect a missing invocation of
	c-before-change-functions, we assume the changed region is the entire
	buffer, and call c-before-change explicitly before proceding.

2016-08-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make c-deprepertize-CPP work on deletion/insertion of "s.  Fixes bug #24132.

	* cc-mode.el (c-depropertize-CPP): Rewrite function.

2016-08-05  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Widen in certain low level CC Mode functions.  This fixes bug #24148.

	* cc-engine (c-state-semi-pp-to-literal, c-state-full-pp-to-literal): Widen
	around the functionality.
	(c-parse-ps-state-below): Correct the order of save-excursion and
	save-restriction.

2016-07-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fontify C++ parameter packs.

	This fixes debbugs #23610.

	* cc-langs.el (c-pack-ops, c-pack-key): New c-lang-defconsts/defvars.
	(c-type-decl-prefix-key): Add "..." and "&&" into the C++ version.

	* cc-engine.el (c-forward-type): Handle matches of c-pack-key.

	* templates-21.{cc,face}: New test files.

2016-07-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Java Mode: Handle strings as case labels correctly.

	This fixes debbugs #23901.

	* cc-langs.el (c-nonlabel-token-key): Remove "\"" from the Java value.

	* switch-17.{java,res}: New test files.

2016-07-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: correct incorrect invocation of parse-partial-sexp.

	* cc-engine.el (c-literal-limits): make the sixth argument of an invocation of
	parse-partial-sexp 'syntax-table, not the fourth.

2016-07-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Amend CC Mode to handle big C++ raw strings correctly.

	Problems were caused by such a string spanning jit-lock chunks, and by a flaw
	in the +-500 bytes boundaries imposed for macros.

	* cc-mode.el (c-extend-region-for-CPP): Check the +-500 byte macro boundaries
	here.
	(c-extend-font-lock-region-for-macros): Remove the check on the +-500 byte
	lower boundary.  Fix the check on the upper boundary.

	* cc-fonts.el (c-font-lock-raw-strings): Handle the starting point already
	being within a raw string.

2016-07-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove redundant forms from CC Mode for faster fontification

	* cc-fonts.el (c-font-lock-declarations): Remove four arms of the "main" cond
	form in the function, which have been redundant since the extraction of
	c-font-lock-cut-off-declarators from the function on 2016-06-15/16.

2016-07-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Speed up CC Mode fontification with less accurate functions extending region

	* cc-fonts.el (c-font-lock-cut-off-declarators, c-font-lock-enclosing-decls)
	* cc-mode.el (c-fl-decl-start): Replace invocations of c-beginning-of-decl-1
	with less accurate invocations of c-syntactic-skip-backwards to speed up
	fontification.

2016-06-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: truncate the semi-nonlit cache when applying syntax-table to a quote

	This applies to applying or removing syntax-table text properties in raw
	strings which affect the stringiness of a piece of text.  This fixes the bug
	reported in
	http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00695.html.

	* cc-engine.el (c-truncate-semi-nonlit-pos-cache): new defsubst.
	(c-invalidate-state-cache-1): Call new function in place of inline
	manipulation.
	(c-depropertize-raw-string, c-propertize-raw-string-opener): truncate the
	semi-nonlit cache when pertinent syntax-table text properties get applied to
	the text.

2016-06-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix C-M-a in a C function finding the start of a macro preceding it.

	Also amend some pertinent documentation.  This fixes bug #23818.

	* cc-engine.el (c-beginning-of-decl-1): Also check for a virtual semicolon at
	a place where we check for other types of statement ends.

	* cc-vars.el (c-macro-nacmes-with-semicolon): Remove from the doc string the
	bit saying that the variable is a prototype and liable to change.

	* cc-mode.texi (Macros with ;): Enhance, stating that configuring macros with
	semicolon can prevent C-M-a missing the beginning of defun.

2016-06-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Amend a cache so that typing into C++ raw strings has no undue delay.

	Also amend the code so that low-level searches to the end of literals are done
	only when these positions get used.

	* cc-engine.el (c-crosses-statement-barrier-p): Use the new c-literal-start
	instead of c-literal-limit.
	(c-state-semi-nonlit-pos-cache): Change the structure of this cache, such that
	it stores details of the literal at a point, rather than merely points outside
	of literals.
	(c-state-semi-pp-to-literal, c-state-full-pp-to-literal)
	(c-cache-to-parse-ps-state, c-parse-ps-state-to-cache, c-ps-state-cache-pos)
	(c-parse-ps-state-below, c-literal-start): New functions.
	(c-state-semi-safe-place): Removed.
	(c-in-literal): Use c-state-semi-pp-to-literal, so as not to scan to its end.
	(c-literal-limits, c-determine-limit-get-base): consequential amendments.
	(c-find-decl-spots, c-before-change-check-<>-operators, c-raw-string-pos)
	(c-guess-basic-syntax (CASE 2)): Avoid needless scans to end of literals.

	* cc-fonts.el (c-font-lock-doc-comments): Avoid needless scans to end of
	literals.

	* cc-mode.el (c-fl-decl-start): Avoid needless scans to end of literals.

	* cc-cmds.el (c-beginning-of-defun, c-end-of-defun, c-defun-name)
	(c-declaration-limits): Avoid needless scans to end of literals.

2016-06-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Implement ' separators in C++ integer literals.

	* cc-langs.el (c-get-state-before-change-functions): insert
	c-before-after-change-digit-quote into the C++ value.
	(c-before-font-lock-functions): Insert c-depropertize-new-text into the values
	for all languages.  Insert c-before-after-change-digit-quote into the C++
	value.

	* cc-mode.el (c-depropertize-CPP): Wrap the function in c-save-buffer-state.
	(c-depropertize-new-text, c-before-after-change-digit-quote): New functions.

	* constants-3.{cc,face}: A new pair of test files.

2016-06-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make typing into incomplete C++ raw strings work, and make it work fast enough

	* cc-engine.el (c-beginning-of-macro, c-state-pp-to-literal): Put
	`save-match-data' around calls to `looking-at' to enable the use of the
	match data in higher level functions.

	* cc-fonts.el (c-font-lock-declarations, c-font-lock-cut-off-declarators): Use
	`limit' rather than `(point-max)' as a limit to speed up handling of C++ raw
	strings.

2016-06-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix CC Mode fontification problem apparent in test file decls-6.cc.

	* cc-engine.el (c-forward-decl-or-cast-1): Recognize "bar (gnu);" as a
	declarator only when the construct is directly inside a class (etc.) called
	"bar".
	(c-directly-in-class-called-p): New function.

	* templates-4.face.  Regenerate to cover an improvement from an earlier
	commit.

2016-06-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	c-renarrow-state-cache: take care when new point is inside old brace pair.

	Also add display of point-min to the c-parse-state debugging output.

	* cc-engine.el (c-renarrow-state-cache): When the new poit is inside an old
	recorded brace pair, clear the cache.
	(c-debug-parse-state): Output the value of point-min.

2016-06-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	In the test suite, prevent an unnecessary run time warning.

	The warning is "Making font-lock-maximum-decoration local to *cc-test* while
	let-bound!".

	000tests.el (do-one-test): Set the global binding of
	`font-lock-maximum-decoration' to t, rather than creating a let binding for
	it.

2016-06-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Speed up CC Mode's font locking by taking some code out of a hot loop.

	* cc-fonts.el (c-font-lock-declarations): Remove code which tests for
	bare declarators.
	(c-font-lock-cut-off-declarators): New function.
	(c-complex-decl-matchers): insert c-font-lock-cut-off-declarators.

2016-06-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Parse compound identifiers in C++ member initialization lists.

	* cc-engine.el (c-back-over-compound-identifier): New function.
	(c-back-over-member-initializer-braces, c-back-over-list-of-member-inits)
	(c-back-over-member-initializers): Call c-back-over-compound-identifier rather
	than c-simple-skip-symbol-backward.

2016-06-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove cc-compat.el and cc-lobotomy from the repository.

2016-06-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Merge the c++11-0-1 branch into the default branch.

	In the process, fix some outstanding anomalies in the test suite.  Amend the
	software to run also in XEmacs.  Remove some unused variables flagged by the
	XEmacs byte compiler.

	* cc-cmds.el (c-beginning-of-defun, c-end-of-defun): Remove unused variable
	`start'.

	* cc-defs.el (c-sc-scan-lists-no-category+1+1)
	(c-sc-scan-lists-no-category+1-1, c-sc-scan-lists-no-category-1+1)
	(c-sc-scan-lists-no-category-1-1): Remove unused generated variable `here'.

	* cc-engine.el (c-beginning-of-statement-1): Remove `c-in-literal-cache'.
	(c-state-semi-safe-place): Remove `macro-beg' and `macro-end'.
	(c-append-to-state-cache): Remove `bra+1s'.
	(c-remove-stale-state-cache): Remove `pps-point-state'.
	(c-invalidate-state-cache-1): Remove `pa'.
	(c-literal-limits): Remove `state'.
	(c-raw-string-pos, c-depropertize-raw-strings-in-region)
	(c-after-change-re-mark-raw-strings): Replace "\{,16\}" by "\{0,16\}" in
	regexps for the benefit of XEmacs's regexp engine.
	(c-forward-decl-or-cast-1): Remove `backup-kwd-sym'.
	(c-backward-over-enum-header): Remove `up-sexp-pos'.
	(c-guess-basic-syntax): Remove `c-in-literal-cache'.

	* cc-fonts.el (c-font-lock-declarators): Remove `id-end', `paren-depth',
	`brackets-after-id'.
	(c-font-lock-enclosing-decls): Remove `decl-context'.
	(c-font-lock-raw-strings): Replace "\{,16\}" by "\{0,16\}".

	* cc-mode.el (c-extend-after-change-region): Test that
	`font-lock-support-mode' exists before using it.

	* arglist-22.face: Regenerate.

	* comments-6.c: Add emacs-25 to list of skipped (X)Emacs versions.

	* decls-15.face: Regenerate.

	* nontemplate-exprs-1.face: Regenerate.

	* switch-8.res: Regenerate.

	* top-7.face: Regenerate.

	* toplevel-label-2.res: Regenerate.

2016-06-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle C++ raw strings.

	* cc-engine.el (c-raw-string-pos, c-depropertize-raw-string)
	(c-depropertize-raw-strings-in-region, c-before-change-check-raw-strings)
	(c-propertize-raw-string-opener, c-after-change-re-mark-raw-strings): New
	functions.

	* cc-fonts.el (c-basic-matchers-before): Insert a clause for
	c-font-lock-raw-strings.
	(c-font-lock-raw-strings): New function.

	* cc-langs.el (c-get-state-before-change-functions): Insert
	c-before-change-check-raw-strings into the C++ value, and c-depropertize-CPP
	into the values for C, C++, and Objective C.
	(c-before-font-lock-functions): Insert c-after-change-re-mark-raw-strings into
	the C++ value.

	* cc-mode.el (c-old-BEG, c-old-END): New variables.
	(c-depropertize-CPP): New function, extracted from
	c-neutralize-syntax-in-and-mark-CPP.
	(c-neutralize-syntax-in-and-mark-CPP): Remove the call to
	c-clear-char-property-with-value for 'syntax-table value '(1) at the beginning
	of the function.
	(c-after-change): Set c-old-BEG and c-old-END to the current values of
	c-new-BEG and c-new-END.

2016-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Add new C++ (and Java) keywords to cc-langs.el

	* cc-langs.el (c-operators): Add "alignof" to C++ value.
	(c-primitive-type-kwds): Add "char16_t" and "char32_t" to C++ value.
	(c-type-modifier-kwds): Add "noexcept" to C++ value.
	(c-modifier-kwds): Add "constexpr" and "thread_local" to C++ value.
	(c-constant-kwds): Add "nullptr" to C++ value.  Add "true", "false", and
	"null" to Java value.

2016-05-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Rationalize the use of c-new-BEG and c-new-END in CC Mode.

	Remove the now redundant c-old-BOM and c-old-EOM.

	* cc-engine.el (c-macro-cache-syntactic): Change and simplify meaning.
	(c-macro-cache-no-comment): New variable.
	(c-invalidate-macro-cache, c-beginning-of-macro, c-end-of-macro): incorporate
	the new c-macro-cache-no-comment.
	(c-syntactic-end-of-macro): Make better use of c-macro-cache-syntactic.
	(c-no-comment-end-of-macro): New function.

	* cc-langs.el (c-before-font-lock-functions): Add
	c-extend-font-lock-region-for-macros to C/C++/ObjC value.

	* cc-mode.el (c-old-BOM, c-old-EOM): Remove.
	(c-extend-region-for-CPP): Put results in c-new-BEG/END rather than
	c-old-BOM/EOM.
	(c-extend-font-lock-region-for-macros): Simplify meaning, no longer returning
	a cons for the new region, since the function is now called as an after-change
	function.  No longer adjust c-new-END for the length of inserted/deleted
	text.  Move the size restrictions on macros to here from
	c-neutralize-syntax-in-and-mark-CPP.
	(c-neutralize-syntax-in-and-mark-CPP): No longer adjust c-new-BEG/END here.
	Use c-no-comment-end-of-macro rather than c-syntactic-end-of-macro to find the
	upper boundary to "neutralize" syntactically obtrusive characters.
	(c-change-expand-fl-region): Don't set c-new-END to next BOL when already at
	one.

2016-05-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++ Mode: attribute in class declaration fouls up indentation.  Fix!

	* cc-engine.el (c-looking-at-decl-block): Add code to skip back over noise
	clauses and attribute clauses.

	* cc-langs.el (c-paren-nontype-key): New language variable.

2016-05-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Run functions for setting internal variables after mode hooks.

	Also declare the configuration variables for noise macros and macros with
	semicolons as safe variables (when given suitable arguments).

	* cc-mode.el (c-basic-common-init): Remove the call to
	c-make-noise-macro-regexps.
	(c-mode, c++-mode, objc-mode): Move c-make-noise-macro-regexps and
	c-make-macro-with-semi-re to after the invocation of the mode hook.

	* cc-vars.el: (c-string-list-p, c-string-or-string-list-p): New functions.
	(c-noise-macro-names, c-noise-macro-with-parens-names): give the
	safe-local-variable property c-string-list-p.
	(c-macro-names-with-semicolon): give the safe-local-variable property
	c-string-or-string-list-p.

	* cc-mode.texi (Macros with ;, Noise Macros): Note that it's not necessary to
	call the regexp generating functions after setting the pertinent configuration
	values in a mode hook.

2016-05-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix spurious fontification of "for (; a * b;)" in CC Mode.

	This fixes bug #7918 (again).

	* cc-engine.el (c-delq-from-dotted-list): New function.
	(c-forward-decl-or-cast-1): Return a 4 element list in place of the previous
	cons cell - additionally, return a flag indicating whether the declaration
	parsed might have been an expression, and the position of the type identifier
	in the said declaration.

	* cc-fonts.el (c-font-lock-declarations): Remove the code high up in the main
	loop that checked every possible declaration position for being a spurious
	declaration in a "for" statement.  Replace it by similar code run only when
	c-forward-decl-or-cast-1 has indicated it might have parsed an expression.

2016-05-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	From hack-local-variables, make the style given to c-set-style work.

	[N.B. this change was committed to Emacs, as part of something else, on
	2011-06-30 20:45:12 +0000.]

	* cc-mode.el (c-before-hack-hook): In the call to c-set-style, change the
	second argument DONT-OVERRIDE from t to a symbol, so that the style settings
	given will actually get set (except when they have a non-null default).

2016-04-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Recognize a noise macro with parens after a declarator's identifier

	* cc-engine (c-forward-decl-or-cast-1): In the while loop following comment
	"Skip over type decl suffix operators." insert code also to check for noise
	macros with parentheses.

	* tests/declspec-3.{c,face}: Add a test case of the above.

2016-04-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Revert unneeded change which harms syntactic parsing.  This fixes bug #23308.

	* cc-engine.el (c-invalidate-state-cache): Use c-state-old-cpp-end as an
	argument to c-with-all-but-one-cpps-commented-out regardless of the value of
	`here'.

2016-04-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct indentation of ids in a C++ enum after a protection keyword.

	Also correct the misfontification of the last enum identifier.

	* cc-engine.el (c-forward-keyword-prefixed-id): setq c-last-identifier-range
	to nil to ensure that only types recognized by this macro are set for
	fontification as types.
	(c-backward-typed-enum-colon): Function renamed from
	c-backward-colon-prefixed-type.  On finding a colon in the backward search,
	check it is preceded by an identifier rather than a keyword.

	* tests/enum-9.{cc,res}: New test files.

2016-04-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix spurious fontification of "for (; a * b;)" in CC Mode.

	* cc-fonts.el (c-font-lock-declarations): Check for being inside the parens of
	a for statement and after a semicolon near the beginning of the lambda form.

	* tests/forloop-6.{c,face}: New test files.

2016-04-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Add fontification for a C declaration which looks like a function call.

	For example, "t1 *fn (t2 *b);".

	* cc-engine.el (c-forward-decl-or-cast-1): Add new variable at-decl-start,
	setting it to whether the putative decl starts immediately after ; or { or }.
	Accept such a construct as a decl when at-decl-start is non-nil.

	* cc-langs.el (c-pre-start-tokens): New language variable.

	* tests/decls-10.face, tests/decls-13.{c,face}: Adapt for the new
	fontification.

2016-04-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	c-forward-<>-arglist no longer directly applies face properties in Java Mode.

	This allows the calling of c-restore-<>-properties from c-common-init without
	the test suite giving spurious errors.

	* cc-engine.el (c-forward-<>-arglist): Remove the form that sets face
	properties.
	(c-forward-<>-arglist-recur): Reformulate the bit that handles types inside
	template brackets using c-inside-<>-type-key.  Don't bind
	c-record-type-identifiers or c-record-found-types around the recursive call,
	allowing positions of found types to flow back to the caller.

	* cc-langs.el (c-inside-<>-type-kwds, c-inside-<>-type-key): new lang
	consts/var.

	* cc-mode.el (c-common-init): Don't remove c-restore-<>-properties from the
	list of functions called at mode initialization.

	* tests/arglist-22.{res,face}: New files, introducing a new testcase.

2016-04-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Prevent C++ Mode wrongly fontifying some identifiers near templates as types

	This fixes debbugs #7917.

	* cc-engine.el (c-forward-keyword-prefixed-id): Accept 'maybe (from
	c-forward-type) as sufficient to record an id.  Record type id as well as ref
	ids.
	(c-forward-name): Bind c-last-identifier-range around the call to
	c-forward-<>-arglist to prevent it getting corrupted.  Don't automatically
	assume an identifier is a type when a template ">" is followed by a "(".
	(c-forward-type): Don't automatically assume an identifier is a type when a
	template ">" is followed by a "(".

	* cc-fonts.el (c-font-lock-<>-arglists): Don't fontify an identifier as a type
	when its associated ">" is followed by a "(".

2016-03-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Finish fixing a cacheing bug in CC Mode (see 2016-03-09)

	* cc-cmds.el: (c-beginning-of-defun, c-end-of-defun): Remove superfluous
	invocations of c-self-bind-state-cache.

	* cc-defs.el: (c-self-bind-state-cache): Copy and terminate markers
	correctly.

	* cc-engine.el (c-record-parse-state-state): Terminate stale markers.

2016-03-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix absence of c-noise-macro-name-re, etc., in languages which don't use it

	* cc-engine.el (c-forward-keyword-prefixed-id, c-forward-type)
	(c-forward-declarator, c-forward-decl-or-cast-1, c-backward-over-enum-header)
	(c-guess-basic-syntax): Check c-opt-cpp-prefix before `looking-at'
	c-noise-macro-with-parens-name-re.

	* cc-fonts.el (c-complex-decl-matchers): The same as for cc-engine.el.

	* cc-mode.el (c-basic-common-init): Add call to `c-make-noise-macro-regexps'.
	(c-mode, c++-mode, objc-mode): Remove calls to `c-make-noise-macro-regexps'.

	* cc-vars.el (c-noise-macro-with-parens-name-re, c-noise-macro-with-re):
	initialize to "\\<\\>" rather than nil.

2016-03-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix a cacheing bug, which led to inordinately slow c-beginning-of-defun.

	* cc-defs.el (c-self-bind-state-cache): New macro.

	* cc-engine.el (c-ssb-lit-begin): Always call c-parse-state rather than just
	using the cache variable c-state-cache.
	(c-syntactic-skip-backward): Invoke c-self-bind-state-cache to isolate calls
	to c-parse-state from other uses of the parse state cache.

	* cc-cmds.el (c-beginning-of-defun, c-end-of-defun): Invoke
	c-self-bind-state-cache around the processing, replacing flawed bindings of
	c-state-cache.

2016-03-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Document c-guess-basic-syntax in the CC Mode manual.

	* cc-mode.texi (Syntactic Analysis): Document the function, adding pxrefs to
	Custom Line-Up and Other Indentation.
	(Custom Line-Up): Add a note on using c-guess-basic-syntax with a pxref to
	Syntactic Analysis.

2016-02-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct problem with a defsubst being used before being defined.

	* cc-engine.el (c-backward-sws): Replace a call to
	c-simple-skip-symbol-backward by a simple `skip-syntax-backward'.

2016-02-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle "noise" macros and compiler directives.

	* cc-langs.el (c-symbol-char-key): New language variable.

	* cc-vars.el (c-noise-macro-names, c-noise-macro-with-parens-names): New
	customizable variables.
	(c-noise-macro-name-re, c-noise-macro-with-parens-name-re): New variables.
	(c-make-noise-macro-regexps): New function.

	* cc-engine.el (c-forward-sws, c-backward-sws): Adapt to treat members of
	c-noise-macro-names as whitespace.
	(c-forward-noise-clause): New function.
	(c-forward-keyword-prefixed-id, c-forward-type, c-forward-declarator,
	c-forward-decl-or-cast-1, c-backward-over-enum-header, c-guess-basic-syntax
	CASE 5A.3, CASE 5A.5, CASE 9A):
	Handle "noise clauses" in parallel with, e.g., "hangon key clauses".

	* cc-fonts.el (c-complex-decl-matchers): Handle "noise clauses" in parallel
	with "prefix-spec keywords".

	* cc-mode.el (c-mode, c++-mode, objc-mode): call c-make-noise-macro-regexps to
	initialize the internal variables.

	* cc-mode.texi ("Noise Macros"): New section documenting the new facilities.

	* tests/declspec-3.{c,face}: New test file for the new facilities.

2016-02-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct c-parse-state cache manipulation error.

	* cc-engine.el (c-invalidate-state-cache-1): Correct a comparison bound.
	Amend comments.

2016-02-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Allow arithmetic operators inside C++ template constructs.

	Fixes debbugs #22486.

	* cc-langs.el (c-multichar->-op-not->>-regexp): New language variable.
	(c-<>-notable-chars-re): New language variable.

	* cc-engine.el (c-forward-<>-arglist-recur): Use c-<>-notable-chars-re in
	place of the former fixed string in searching for places to stop and examine.
	Use c-multichar->-op-not->>-regexp to check that a found ">" is not part of a
	multichar operator in place of the former c->-op-without->-cont-regexp.
	Add code to skip forwards over a balanced parenthesized expression.

	* tests/templates-20.cc: New test file, currently deactivated in the test
	suite by the absence of the .res and the .face file.

2016-02-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	On final removal of text properties, don't mark buffer as modified.

	* cc-mode.el (c-leave-cc-mode-mode): Surround text property/extent removal by
	c-save-buffer-state.  This corrects the previous commit.

2016-02-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	On leaving CC Mode, clean up by removing character properties.

	* cc-mode.el (c-leave-cc-mode-mode): Remove from the buffer all instances of the
	text properties/extents category, syntax-table, c-is-sws, c-in-sws, c-type,
	and c-awk-NL-prop.

2016-02-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correctly fontify C++ initializations which "look like" functions.

	Fixes bug#7579.

	* cc-engine.el (c-forward-declarator): Add extra optional parameter to enable
	handling of "anonymous" declarators in declarations.

	* cc-fonts.el (c-font-lock-declarators): Check more rigorously whether a "("
	opens a parameter list of a function, or an initialization of a variable.

	tests/class-21.face: recalculate for the now correct fontification of two
	constructs.

	tests/decls-10.{cc,face}: Add an extra construct to test a boundary case in
	the code.  Recalculate the face file for the now correct fontification.

2016-01-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Distinguish the two meanings of Java's keyword "default".  Fixes bug #22358.

	* cc-engine.el (c-guess-basic-syntax CASE 14): Check the context of case
	labels (including "default") more rigorously.
	(c-guess-basic-syntax CASE 15): Consequential amendment.

	* cc-langs.el (c-modifier-kwds): Add "default" to Java's value.

2016-01-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Prevent spurious recognition of K&R argument declarations.  Fixes bug #2203

	* cc-engine.el (c-forward-declarator): New function.
	(c-in-knr-argdecl): Before recognizing a K&R argument declaration, check it is
	contained in the preceding arg list.

	* cc-fonts.el (c-font-lock-declarators): Use the new function
	`c-forward-declarator' in place of inline code.

	* tests/enum2.{c,res}: Correct a faulty declaration, rebuild the .res file.

	* tests/knr-1.{c,res}: Correct a declaration, introduce a "failure" case,
	rebuild the .res file.

	* tests/knr-6.{c,res}: New files with more elaborate type declarations.

2016-01-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Don't confuse "::" with ":" when trying to parse member initializers.

	* cc-engine.el (c-back-over-member-initializers): Check more robustly for ":"
	token when searching backwards for it.

	* cc-langs (c-:$-multichar-token-regexp): New language variable.

	* tests/top-7.{cc,res,face}: New testfiles.

2015-11-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	De-pessimize detection of C++ member initialization lists.

	* cc-engine.el (c-back-over-list-of-member-inits): New macro.
	(c-back-over-member-initializers): Reformulate such that c-at-toplevel-p is
	only called when a construct "looks right" rather than continually.
	(c-guess-basic-syntax, CASE 5R): Add a check for the mode being C++ Mode.

2016-01-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Amend the anchor point for Java's annotation-top-cont syntactic symbol.

	* cc-engine.el (c-guess-basic-syntax CASE 5S): Rename from CASE 5N.  Amend the
	anchor position of annotation-top-cont to BO indentation of the line
	containing the beginning of the last annotation before point.

	* tests/annotations-2.{java,res,face}: New test file for the above.

2016-01-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Java Mode: Fontify identifiers in the presence of annotations.

	* cc-engine.el (c-forward-annotation): Tidy up the coding: Don't move point
	when the defun fails.
	(c-forward-decl-or-cast-1): Correct a usage of match data.

	* cc-fonts.el (c-font-lock-maybe-decl-faces): Remove.
	(c-font-lock-declarations): Use the new c-maybe-decl-faces in place of the
	removed variable.

	* cc-langs.el (c-maybe-decl-faces): New language variable.

	* tests/annotations-1.face: Rebuild after the other changes.

2016-01-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Allow the use of `font-lock-extend-region-multiline' in CC Mode.

	* cc-mode.el (c-font-lock-init): Remove `font-lock-extend-regions-wholelines'
	from `font-lock-extend-region-functions' rather than setting the latter to
	nil.

2016-01-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correctly analyze brace arguments in templated C++ function declarations.

	* cc-defs.el (c-go-list-forward, c-go-list-backward): add POS and LIMIT
	parameters, like the other c-go-list-* functions have.

	* cc-engine.el (c-restore-<>-properties): Check backwards for a ?\( rather
	than a ?<.
	(c-looking-at-inexpr-block): Handle names followed by template specifiers.

	* tests/arglist-22.cc: New test file (without the matching .face and .res
	files, for now, since the test doesn't yet work.)

2016-01-05  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove function wrongly on AWK Mode value of context fontification hook.

	Also fix bugs in test suite related to AWK.

	* cc-langs.el (c-before-context-fontification-functions): swap order of
	entries so that awk's entry isn't superseded by the default.

	* cc-mode.el (c-before-context-fl-expand-region): Correct to handle nil value
	of c-before-context-fontification-functions.

	* tests/000tests.el (do-one-test): When consing up expectedindent, handle the
	case where there is no NL at EOB.

	* tests/statement-25.awk: Correct the indentation of one line.

2016-01-05  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make C++ buffers writeable when writing their initial text properties.

	This is a correction to yesterday's CC Mode patch.

	* cc-engine.el (c-before-change-check-<>-operators): Put c-save-buffer-state
	around the function rather than a mere `let'.

2016-01-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Apply text properties for <, > in new after-change function (C++ Java Modes).

	These are category/syntax-table properties to give < and > paren syntax.
	Also apply certain `c-type' text properties to the insides of <..> constructs
	to ensure that identifiers contained by them get fontified.  This patch fixes
	bug #681.

	* cc-cmds.el (c-electric-lt-gt): Reformulate due to new after-change action.

	* cc-engine.el (c-before-change-check-<>-operators): Expand change region to
	include <s and >s which might not be already marked as parens, rather than
	just when paren text properties are removed.
	(c-restore-<>-properties): New after-change function, which applies text
	properties marking < and > with paren syntax.

	* cc-fonts.el (c-font-lock-declarations): Ensure `c-type' properties are
	applied to the interiors of <...> constructs, to ensure fontification of
	identifiers there.

	* cc-langs.el (c-before-font-lock-functions): Add c-restore-<>-properties to
	this list for C++ and Java.

	* cc-mode.el (c-common-init): When invoking c-before-font-lock-functions,
	exclude c-restore-<>-properties from the functions invoked.
	(c-before-change): Initialize c-new-BEG/END here (rather than c-after-change)
	to allow modification by before-change functions.
	(c-after-change): Amend c-new-END here, rather than initializing it and
	c-new-BEG.

2015-12-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi (c-offset-alist): Fix misspellings of `c-set-offset'.

2015-12-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	On Emacs 25.1+, allow comments to be continued with escaped EOL.

	* cc-langs.el: New c-lang-setvar `comment-end-can-be-escaped'.

2015-12-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix a coding error in c-forward-<>-arglist-recur.

	* cc-engine.el (c-forward-<>-arglist-recur): Remove unused variable `tmp'.
	After a failed search for a matching ">", restore point before continuing.

2015-12-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: eliminate some byte compilation warnings

	* cc-bytecomp.el (cc-bytecomp-load): Create a dummy declaration of this before
	the real (interpreted) one, to satisfy the byte compiler.
	(cc-conditional-require, cc-conditional-require-after-load): New macros.

	* cc-defs.el (top level): Reformulate code which loaded cc-fix.el using the
	new macros in cc-bytecomp.el.
	Insert "(defvar c-use-extents)" and "(defvar c-emacs-features)" early on.

	* cc-engine.el (top level): Insert declarations of c-new-BEG and c-new-END.

	* cc-langs.el (c++-template-syntax-table, c-no-parens-syntax-table): Add extra
	"(eval ..)"s around "'(lambda ..)" forms to remove the superflous quotes.

	* cc-mode.el (top level): remove compile time declaration of
	`font-lock-syntactic-keywords' (which CC Mode doesn't use).
	Move the definitions of c-new-BEG and c-new-END to before c-common-init.

	* cc-awk.el (awk-mode-syntax-table, c-awk-set-syntax-table-properties):
	Clarify comments about `font-lock-syntactic-keywords'.

2015-11-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	De-pessimize detection of C++ member initialization lists.

	* cc-engine.el (c-back-over-list-of-member-inits): New macro.
	(c-back-over-member-initializers): Reformulate such that c-at-toplevel-p is
	only called when a construct "looks right" rather than continually.
	(c-guess-basic-syntax, CASE 5R): Add a check for the mode being C++ Mode.

2015-11-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Respect users' settings of open-paren-in-column-0-is-defun-start.

	* cc-engine.el (c-backward-single-comment, c-backward-comments)
	(c-invalidate-state-cache-1, c-parse-state-1, c-guess-basic-syntax):
	remove bindings of open-paren-in-column-0-is-defun-start to nil.
	(c-get-fallback-scan-pos): "New" function (existed several years ago).
	(c-parse-state-get-strategy): Reintroduce the 'BOD strategy, using
	c-get-fallback-scan-pos.
	(c-parse-state-1): Handle 'BOD strategy.

	* cc-mode.el (c-before-change, c-after-change, c-font-lock-fontify-region):
	remove bindings of open-paren-in-column-0-is-defun-start to nil.

	* cc-mode.texi (Performance Issues, Limitations and Known Bugs): Fix mix up
	between @chapter and @appendix.

2015-09-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Replace `cadar' with `cadr/car', since `cadar' is problematic on Emacs.

	(c-make-init-lang-vars-fun): Replace two occurrences of `cadar' with
	`cadr/car'.

2015-08-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handling of `c-parse-state'.  Fix low level bug.

	* cc-engine.el (c-remove-stale-state-cache-backwards): Add "CASE 3.5" to
	handle `cache-pos' being only slightly before `here'.

2015-08-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make electric-pair-mode, delete-selection-mode and CC Mode cooperate.

	In GNU Emacs >= 25, let electric-pair-mode take precedence over
	delete-selection-mode.

	* cc-cmds.el (top-level): Give the `delete-selection' property for
	c-electric-\(brace\|paren\) the value `delete-selection-uses-region-p'
	when the latter function exists.

2015-08-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Introduce new macros to cover Emacs's new names in cl-lib.el.

	This also eliminates `mapcan' warnings in XEmacs.

	* cc-defs.el (c--mapcan-status): new variable to characterise [X]Emacs
	versions.
	(top-level): Require either 'cl or 'cl-lib, depending on c--mapcan-status.
	Change this back to cc-external-require from an eval-when-compile require.
	(c--mapcan, c--set-difference, c--intersection, c--macroexpand-all)
	(c--delete-duplicates): New macros which expand into either old or new
	names.
	(c-make-keywords-re, c-lang-defconst, c-lang-const) Use the new macros
	rather than the old names.

	* cc-engine.el (c-declare-lang-variables): Use c--mapcan rather than mapcan.

	* cc-fonts.el (c-compose-keywords-list): Use c--mapcan.

	* cc-langs.el (top-level): Require either 'cl or 'cl-lib, depending on
	c--mapcan-status.
	(c-filter-ops, c-all-op-syntax-tokens, c-assignment-op-regexp)
	(c-type-start-kwds, c-prefix-spec-kwds, c-specifier-key)
	(c-not-decl-init-keywords, c-not-primitive-type-keywords)
	(c-paren-any-kwds, c-<>-sexp-kwds, c-block-stmt-kwds, c-expr-kwds)
	(c-decl-block-key, c-keywords, c-keywords-obarray)
	(c-regular-keywords-regexp, c-primary-expr-regexp, c-primary-expr-regexp)
	(c-block-prefix-disallowed-chars, c-known-type-key, c-nonlabel-token-key)
	(c-make-init-lang-vars-fun): Use the new macros rather than the old
	names.

2015-08-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix "Invalid search bound (wrong side of point)" in fontification.

	* cc-fonts.el (c-font-lock-declarators): After skipping an initialization
	expression, check point is not beyond the fontification limit.

2015-05-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove partly implemented indentation fixer from c-electric-semi&comma

	* cc-cmds.el (c-electric-semi&comma): Remove offending code.

2015-04-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Don't do anything in before/after-change-functions for text property changes

	* cc-mode.el (c-basic-common-init): Make yank-handled-properties buffer
	local, and remove 'category from it.
	(c-called-from-text-property-change-p): New function.
	(c-before-change): Don't do anything if a call of the new function
	returns non-nil.
	(c-after-change): Don't do much if a call of the new function returns
	non-nil.
	(c-extend-after-change-region): Put changes to text property 'fontified
	inside c-save-buffer-state.

2015-04-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Always mark "<" and ">" in #include directives with text properties

	* c-fonts.el (c-cpp-matchers): Replace a font-lock "anchored matcher" with an
	invocation of c-make-font-lock-search-function to allow fontification when
	there's no trailing space on an "#include <..>" line.

2015-04-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix miscellaneous glitches in cc-mode.el.  Fixes debbugs#20245.

	* cc-mode.el (c-common-init): bind \(before\|after\)-change-functions to
	nil around invocations of c-get-state-before-change-functions and
	c-before-font-lock-functions to prevent recursive invocations.
	(c-neutralize-syntax-in-and-mark-CPP): On c-beginning-of-macro, check
	that point has actually moved back.
	(c-fl-decl-start): Check whether c-beginning-of-decl-1 has actually found
	a boundary (as contrasted with hitting a search limit).

2015-04-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix the CC Mode fixes from 2015-03-30.  Fixes debbugs#20240.

	* cc-mode.el (c-extend-after-change-region): Widen before applying text
	properties.

	* cc-langs.el (c-before-font-lock-functions): Update an entry to a new
	function name.

2015-03-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct calculation of CC Mode's font-lock region.

	* cc-mode.el (c-fl-decl-start): Renamed from c-set-fl-decl-start.  Change
	signature such that nil is returned when no declaration is found.
	(c-change-expand-fl-region): Renamed from c-change-set-fl-decl-start.
	This now also handles expanding the font lock region to whole lines.
	(c-context-expand-fl-region): Renamed from c-context-set-fl-decl-start.
	This now also handles expanding the font lock region to whole lines.
	(c-font-lock-fontify-region): When a change font lock region is
	spuriously enlarged to the beginning-of-line by jit-lock, fontify the
	extra bit separately from the region calculated by CC Mode.
	(c-extend-after-change-region): Explicitly apply 'fontified properties to
	the extended bits of the font lock region.

	* cc-langs.el (c-before-font-lock-functions)
	(c-before-context-fontification-functions): Use new names for existing
	functions (see above).

2015-02-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	CC Mode: Stop Font Lock forcing fontification from BOL.  Fixes debbugs#19669.

	* cc-mode.el (c-font-lock-init): Setq font-lock-extend-region-functions to
	nil.

2015-01-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle "#" operator properly inside macro.  Fix coding bug.

	* cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): On finding a "#" which
	looks like the start of a macro, check it isn't already inside a macro.

	* cc-engine.el (c-state-safe-place): Don't record a new "safe" position
	into the list of them when this is beyond our current position.

2015-01-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Allow compilation during loading of Modes derived from a CC Mode mode.

	* cc-bytecomp.el (cc-bytecomp-compiling-or-loading): new function which
	walks the stack to discover whether we're compiling or loading.
	(cc-bytecomp-is-compiling): Reformulate, and move towards beginning.
	(cc-bytecomp-is-loading): New defsubst.
	(cc-bytecomp-setup-environment, cc-bytecomp-restore-environment): Use the
	above defsubsts.
	(cc-require-when-compile, cc-bytecomp-defvar)
	(cc-bytecomp-defun): Simplify conditionals.

	* cc-defs.el (cc-bytecomp-compiling-or-loading): "Borrow" this function
	from cc-bytecomp.el.
	(c-get-current-file): Reformulate using the above.
	(c-lang-defconst): Prevent duplicate entries of file names in a symbol's
	'source property.
	(c-lang-const): Use cc-bytecomp-is-compiling.

	* cc-langs.el (c-make-init-lang-vars-fun): Use cc-bytecomp-is-compiling.

2014-12-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make C++11 uniform init syntax work.  New keywords "final" and "override"

	* cc-engine.el (c-back-over-member-initializer-braces): New function.
	(c-guess-basic-syntax): Set `containing-sexp' and `lim' using the new
	function.

	* cc-fonts.el (c-font-lock-declarations): Check more carefully for "are we
	at a declarator?" using c-back-over-member-initializers.

	* cc-langs.el (c-type-modifier-kwds): include "final" and "override" in the
	C++ value.

	enum-8.{cc,res,face}: Correct it (unconnected with the rest of the patch).
	class-32.{cc,res,face}: New test file for new facilities.

2014-11-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	c-clear->-pair-props: clear properties at both positions.

	* cc-engine.el (c-clear->-pair-props): Change "(point)" to "pos".

2014-11-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Resolve some whitespace anomalies in lines' indentation.

2014-11-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Rationalise whitespace and spelling in Emacs lisp sources.

	Replace <tab>s or <tab-space>s which expand to two visible spaces inside
	strings and comments by <space space>.
	Replace indenting <tab>s inside multiline strings by spaces.
	Replace sequences of 8 <space>s indentation by <tab>s outside of strings.
	Incorporate spelling and usage fixes from Emacs.
	Insert local variables for canonical indentation in each source file.

2014-11-05  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix wrong bound to c-font-lock-declarators.  Fixes bug #18948.

	* cc-fonts.el (c-font-lock-declarations): Pass "(point-max)" as bound to
	c-font-lock-declarators, not "limit", as the buffer is sometimes narrowed
	to less than "limit" (e.g., in the presence of macros).

2014-11-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make blink-parens work with a closing template delimiter.

	* cc-cmds.el (c-electric-lt-gt): Cause a redisplay before calling
	blink-paren-function, so as to apply syntax-table properties to the ">".

2014-10-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Add "enum classs" support to C++ mode.

	* cc-langs.el (c-after-brace-list-decl-kwds, c-after-brace-list-key): New
	language consts/variables.

	* cc-engine.el (c-looking-at-decl-block): Exclude spurious match of
	"enum struct" from decl-block recognition.
	(c-backward-colon-prefixed-type): New function.
	(c-backward-over-enum-header): Call above function to extend recognition
	of enum structure.
	enum-8.{cc,face,res}: New test files.

2014-10-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Check that a "macro" found near point-min isn't a ## operator.

	Fixes Emacs bug #18749.

	* cc-engine.el (c-macro-is-genuine-p): New function.
	(c-beginning-of-macro): Use the above new function.

2014-10-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix Emacs bug #17463 (cc-langs.elc gets loaded at run-time).

	* cc-langs.el (c-no-parens-syntax-table): Rename the c-lang-const to
	c-make-no-parens-syntax-table and correct the logic.
	(c-no-parens-syntax-table): Correct the logic of the c-lang-defvar.

2014-08-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix infinite loop.

	* cc-fonts.el (c-font-lock-declarators): Amend patch from 2014-08-02.

2014-08-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix confusion in C++ file caused by comma in "= {1,2},".

	* cc-engine.el (c-beginning-of-statement-1): In checking for a statement
	boundary marked by "}", check there's no "=" before the "{".
	(c-guess-basic-syntax CASE 9B): Call c-beginning-of-statement with
	non-nil `comma-delim' argument.

	* cc-fonts.el (c-font-lock-declarators): Parse an initializer expression
	more accurately.
	bracelist-24.{c,res,face}: New test case for the test suite.

2014-08-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct loop termination condition in c-syntactic-skip-backward.

	* cc-engine.el (c-syntactic-skip-backward): Correct for the situation
	  where, after moving back out of a literal, skip-chars-backward doesn't
	  move further, yet checks have still to be done.
	comments-7.{cc,res}: New test case for the test suite.

2014-06-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Don't call c-parse-state when c++-template-syntax-table is active.

	* cc-engine.el (c-guess-continued-construct CASE G)
	(c-guess-basic-syntax CASE 5D.3): Rearrange so that
	c-syntactic-skip-backwards isn't called with the pertinent syntax table.

2014-05-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Guard (looking-at "\\s!") from XEmacs.

	* cc-engine.el (c-state-pp-to-literal): add guard form.

2014-04-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle C++11's "auto" and "decltype" constructions.

	* cc-engine.el (c-forward-type): Enhance to recognise and return 'decltype.
	(c-forward-decl-or-cast-1): New let variables backup-kwd-sym,
	prev-kwd-sym, new-style-auto.  Enhance to handle the new "auto" keyword.

	* cc-fonts.el (c-font-lock-declarations): Handle the "decltype" keyword.
	(c-font-lock-c++-new): Handle "decltype" constructions.

	* cc-langs.el (c-auto-ops, c-auto-ops-re): New c-lang-defconsts/defvars.
	(c-haskell-op, c-haskell-op-re): New c-lang-defconsts/defvars.
	(c-typeof-kwds, c-typeof-key): New c-lang-defconsts/defvars.
	(c-typeless-decl-kwds): Append "auto" onto the C++ value.
	(c-not-decl-init-keywords): Also exclude c-typeof-kwds from value.

	decls-37.{cc,face}: New test files.

2014-02-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix c-invalidate-state-cache on narrowed buffers.

	* cc-defs.el (c-with-all-but-one-cpps-commented-out): Widen when setting
	and clearing the CPP delimiter properties.

2014-02-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	c-parse-state.  Don't "append-lower-brace-pair" in certain circumstances.

	Also fix an obscure bug where "\\s!" shouldn't be recognised as a comment.

	* cc-engine.el (c-state-pp-to-literal): Check for "\\s!" as well as normal
	comment starter.
	(c-parse-state-get-strategy): Extra return possibility 'back-and-forward.
	(c-remove-stale-state-cache): Extra element CONS-SEPARATED in return
	value list to indicate replacement of a brace-pair cons with its car.
	(c-parse-state-1): With 'back-and-forward, only call
	c-append-lower-brace-pair-to state-cache when cons-separated.

2014-01-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Bind open-paren-in-column-0-is-defun-start to nil at some entry points.

	* cc-engine.el (c-invalidate-state-cache-1, c-parse-state-1)
	(c-guess-basic-syntax):  Bind it here.

	* cc-mode.el (c-before-change, c-after-change, c-font-lock-fontify-region):
	Bind it here.

2013-10-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Indent statements in macros following "##" correctly.

	* cc-engine.el (c-crosses-statement-barrier-p): Modify the "#" arm of a
	cond form to handle "#" and "##" operators.
	macro-29.{c,res}: New test files.

2013-10-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Allow comma separated lists after Java "implements".

	* cc-engine.el (c-backward-over-enum-header): parse commas.

	* cc-fonts.el (c-basic-matchers-after): Remove comma from a "disallowed"
	list in enum fontification.
	enum-7.{java,res,face}: Add an extra case with comma separated list.

2013-10-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix fontification bugs with constructors and const.

	* cc-engine.el (c-forward-decl-or-cast-1): (Just after CASE 2) Remove the
	check for the absence of a suffix construct after a function declaration
	with only types (no identifiers) in the parentheses.  Also, accept a
	function declaration with just a type inside the parentheses, if this
	type can be positively recognised as such, or if a prefix keyword like
	"explicit" nails down the construct as a declaration.

2013-10-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix indentation/fontification of Java enum with "implements"/generic.

	* cc-engine.el (c-backward-over-enum-header): Extracted from the three
	other places and enhanced to handle generics.
	(c-inside-bracelist-p): Uses new function above.

	* cc-fonts.el (c-font-lock-declarations): Uses new function above.
	(c-font-lock-enum-tail): Uses new function above.
	enum-7.{java,res,face}: Add in a test case with a generic.

2013-09-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix indentation/fontification of Java enum with "implements".

	* cc-langs.el (c-postfix-decl-spec-key): New variable, a regexp which
	  matches "implements", etc., in Java.

	* cc-engine.el (c-inside-bracelist-p): Check for extra specifier clauses
	  coming after "enum".

	* cc-fonts.el (c-font-lock-declarations, c-font-lock-enum-tail): Check for
	  extra specifier clauses coming after "enum".
	enum-7.{java,res,face}: New test case.

2013-09-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	C++: fontify identifier in declaration following "public:" correctly.

	* cc-langs.el (c-decl-start-colon-kwd-re): New lang var to match "public",
	etc.
	(c-decl-prefix-re): Add ":" into the C++ value.

	* cc-engine.el (c-find-decl-prefix-search): Refactor a bit.  Add a check
	for a ":" preceded by "public", etc.

	comments-6.c: Add Emacs-24 to the list of excluded versions.
	except-7.{java,res}: Correct the indentation of a "}".
	macro-27.face: Amend for the now correct fontification of an identifier.

2013-09-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix fontification of type when followed by "const".

	* cc-engine.el (c-forward-decl-or-cast-1): Don't exclude "known" types from
	fontification.

2013-09-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correctly fontify Java class constructors.

	* cc-langs.el (c-type-decl-suffix-key): Now matches ")" in Java Mode.
	(c-recognize-typeless-decls): Set the Java value to t.

	* cc-engine.el (c-forward-decl-or-cast-1): While handling a "(", add a
	check for, effectively, Java, and handle a "typeless" declaration there.

2013-08-31  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-pull-open-brace): Move definition before first use.

2013-08-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Update changed CC Mode website URLs in hgaccess.php and links.h.

2013-08-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Improve indentation of bracelists defined by macros (without "=").

	* cc-engine.el (c-inside-bracelist-p): When a macro expansion begins with
	"{", regard it as  bracelist when it doesn't contain a ";".
	tests/macro-28.{c,res}: New test case.

2013-08-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Parse C++ inher-intro when there's a template split over 2 lines.

	* cc-engine.el (c-guess-basic-syntax CASE 5C): Code more rigorously the
	search for "class" etc. followed by ":".

	* cc-langs.el (c-opt-<>-sexp-key): Make the value for random languages a
	regexp which never matches rather than nil.
	tests/inher-10.{cc,res}: New test case.

2013-08-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle "/"s more accurately in test for virtual semicolons (AWK Mode).

	* cc-awk.el (c-awk-one-line-possibly-open-string-re)
	(c-awk-regexp-one-line-possibly-open-char-list-re)
	(c-awk-one-line-possibly-open-regexp-re, c-awk-one-line-non-syn-ws*-re):
	Remove.
	(c-awk-possibly-open-string-re, c-awk-non-/-syn-ws*-re)
	(c-awk-space*-/-re, c-awk-space*-regexp-/-re)
	(c-awk-space*-unclosed-regexp-/-re): New constants.
	(c-awk-at-vsemi-p): Reformulate better to recognize "/"s which aren't
	regexp delimiters.

	* cc-engine.el (c-crosses-statement-barrier-p): Add in handling for a rare
	situation in AWK Mode involving unterminated strings/regexps.

2013-07-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make Java try-with-resources statement parse properly.

	* cc-langs.el (c-block-stmt-1-2-kwds, c-block-stmt-1-2-key): New language
	constants/variables.

	* cc-engine.el (c-beginning-of-statement-1, c-after-conditional): Adapt to
	deal with c-block-stmt-1-2-key.

	* cc-fonts.el (c-font-lock-declarations): Adapt to deal with
	c-block-stmt-1-2-key.
	tests/except-7.{java,res,face}: New test files.

2013-06-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove faulty optimisation from indentation calculation.

	* cc-engine.el (c-guess-basic-syntax): Don't calculate search limit
	based on 2000 characters back from indent-point.

2013-05-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle "capitalised keywords" correctly.

	* cc-mode.el (c-after-change): bind case-fold-search to nil.

2013-05-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Remove spurious syntax-table text properties inserted by C-y.

	* cc-mode.el (c-after-change): Also clear hard syntax-table property
	with value nil.

2012-03-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make ">>" act as double template ender in C++ Mode.

	* cc-langs.el (c->-op-cont-tokens): New lang-const split off from
	c->-op-cont-re.
	(c->-op-cont-tokens): Change to use the above.
	(c->-op-without->-cont-regexp): New lang-const.

	* cc-engine.el (c-forward-<>-arglist-recur): Use
	c->-op-without->-cont-regexp in place of c->-op-cont-tokens.

2016-06-21  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.99 released.

2016-06-21  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.99 released.

2016-02-08  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.98 released.

2016-01-25  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.97 released.

2016-01-16  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.96 released.

2016-01-13  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.95 released.

2016-01-11  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.94 released.

2016-01-05  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.93 released.

2016-01-04  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.92 released.

2015-09-17  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.91 released.

2015-05-17  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.90 released.

2015-04-27  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.89 released.

2015-04-13  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.88 released.

2015-02-28  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.87 released.

2015-02-01  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.86 released.

2015-01-12  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.85 released.

2014-11-18  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.84 released.

2014-11-17  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.83 released.

2014-11-01  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.82 released.

2014-10-18  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.81 released.

2014-10-16  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.80 released.

2014-09-08  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.79 released.

2014-06-29  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.78 released.

2014-05-30  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.77 released.

2014-05-15  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.76 released.

2014-05-15  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.75 released.

2014-05-13  Jerry James  <james@xemacs.org>

	* .cvsignore: Remove.
	* .hgignore: New file.
	* cc-mode.texi: Update for texinfo 5.x.  Restore CVS keyword
	expansion.

2013-10-28  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.74 released.

2013-10-22  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.73 released.

2013-10-14  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.72 released.

2013-09-22  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.71 released.

2013-09-19  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.70 released.

2013-06-03  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.69 released.

2013-05-28  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.68 released.

2013-05-07  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.67 released.

2013-05-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Patch release 5.32.5

	* ChangeLog: Update for patch releases 5.32.3 and 5.32.5.

	* cc-defs.el (c-version): Increment to 5.32.5.

	* *.el, cc-mode.texi: Add 2012 and 2013 to copyright notices.

2013-05-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Eliminate variable c-standard-font-lock-fontify-region-function.
	* cc-mode.el (c-standard-font-lock-fontify-region-function): Remove.
	(c-font-lock-fontify-region, c-after-font-lock-init): Adapt.

2013-04-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle arbitrarily long C++ member initialisation lists.  Test files.
	* tests/member-init-1.cc: Remove erroneous code which clashes with
	this change.
	* tests/member-init-1.res: Recreated.
	* tests/class-31.cc: Renamed from member-9.cc; replace a
	constructor with a member init list by a class with inheritance.
	* tests/class-31.res: Renamed from member-9.res and recreated.

2013-04-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle arbitrarily long C++ member initialisation lists.
	Made necessary by change 2012-02-26-ell-m, where a search limit of
	500 was introduced.

	* cc-engine.el (c-back-over-member-initializers): new function.
	(c-guess-basic-syntax): New CASE 5R (extracted from 5B) to handle
	(most) member init lists.

2013-04-17  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.66 released.

2013-04-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct the placement of c-cpp-delimiters when there're #s not at col 0.
	* cc-langs.el (c-anchored-cpp-prefix): Reformulate and place a
	submatch around the #.
	* cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): Start a search
	at BOL.  Put the c-cpp-delimiter category text propertiy on the #,
	not BOL.

2013-04-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Reformulate java imenu-generic-expression.  Contributed by Filipp Gunbin.
	The old expression contained ill formed regexps.

	* cc-menus.el (cc-imenu-java-ellipsis-regexp)
	(cc-imenu-java-type-spec-regexp, cc-imenu-java-comment-regexp)
	(cc-imenu-java-method-arg-regexp): New defconsts.
	(cc-imenu-java-build-type-args-regex): New defun.
	(cc-imenu-java-generic-expression): Fixed, to remove "ambiguous"
	handling of spaces in the regexp.

2013-04-04  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.65 released.

2013-04-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Handle `parse-partial-sexp' landing inside a comment opener.
	Also adapt to the new values of element 7 of a parse state.

	* cc-engine.el (c-state-pp-to-literal): New optional parameter
	`not-in-delimiter'.  Handle being inside comment opener.
	(c-invalidate-state-cache-1): Reckon with an extra "invalid"
	character in case we're typing a '*' after a '/'.
	(c-literal-limits): Handle the awkward "not-in-delimiter" cond arm
	instead by passing the parameter to c-state-pp-to-literal.

	* cc-fonts.el (c-font-lock-doc-comments): New handling for elt. 7
	of a parse state.

2013-03-06  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.64 released.

2013-03-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct the position of point in some line-up functions.
	* cc-align.el (c-lineup-whitesmith-in-block, c-lineup-assignments)
	(c-lineup-gcc-asm-reg ): take position of point at column 0 rather
	than at a random place in the line.
	* cc-mode.texi (Custom Line-Up): State explicitly that point
	starts at a random position in the line being indented.

2013-03-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Replace `last-command-event' by `last-command-char' in XEmacs.
	* cc-defs.el (c-last-command-char): New macro.
	* cc-align.el (c-semi&comma-inside-parenlist)
	(c-semi&comma-no-newlines-before-nonblanks)
	(c-semi&comma-no-newlines-for-oneline-inliners): Use the new macro
	in place of `last-command-event'.
	* cc-cmds.el (c-electric-pound, c-electric-brace)
	(c-electric-slash, c-electric-semi&comma, c-electric-lt-gt)
	(c-electric-paren, c-electric-continued-statement): Use the new
	macro in place of `last-command-event'.

2013-02-08  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.63 released.

2013-02-08  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.62 released.

2013-02-08  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.62 released.

2013-02-08  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.62 released.

2013-02-08  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.62 released.

2013-02-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix bug in the state cache mechanism.  Remove 'BOD "strategy".  Refactor.
	* cc-engine.el (c-get-fallback-scan-pos): Remove.
	(c-parse-state-get-strategy): Don't return 'BOD any more.
	(c-append-lower-brace-pair-to-state-cache): Extra parameter HERE
	instead of narrowing.  Widen to top of buffer before searching
	backwards for a brace pair.
	(c-state-push-any-brace-pair): Add HERE parameter to function
	call.
	(c-append-to-state-cache): Extra parameter HERE in place of
	narrowing.  Narrow to parameter HERE, in place of being called
	narrowed.
	(c-remove-stale-state-cache): Extra parameter HERE in place of
	narrowing.  Check there's an open brace in the cache before
	searching for its match.
	(c-invalidate-state-cache-1): Add HERE parameter to function call.
	(c-parse-state-1): Don't narrow here for 'forward strategy,
	instead passing extra parameter HERE to several functions.  Remove
	'BOD strategy.

2013-01-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Amend to fontify /regexp/s in actions correctly.
	* cc-awk.el (c-awk-harmless-char-re, c-awk-harmless-string*-re)
	(c-awk-harmless-string*-here-re): braces, parens and semicolons
	are no longer included.
	(c-awk-harmless-line-char-re, c-awk-harmless-line-string*-re):
	What used to be these variables without "-line" in the name.
	(c-awk-neutral-re): { is no longer neutral.  Escaped newlines now
	are.
	(c-awk-non-arith-op-bra-re): Now also matches {.
	(c-awk-pre-exp-alphanum-kwd-re): New regexp to match "print",
	"return", and "case".
	(c-awk-kwd-regexp-sign-re): New, to match "print", etc., followed
	by /.
	(c-awk-syntax-tablify-/): Check special cases "print /re/", etc.
	(c-awk-set-syntax-table-properties): Extend FSM to handle
	{,},(,),;.

	awk-face-2.awk, awk-face-2.face: New test files for /regexp/s.

2013-01-27  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.60 released.

2013-01-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	AWK Mode: Fix indentation bug at top level.
	* cc-engine.el (c-guess-basic-syntax): Move CASE 5P to just before
	CASE 5D.
	* awk-top-1.awk, awk-top-1.res:  Add an extra test for this.

2013-01-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix a bug in the state cache mechanism.  Refactor this a bit.

	* cc-engine.el (c-parse-state-get-strategy): Remove the
	`cache-pos' element from the return value.
	(c-append-lower-brace-pair-to-state-cache): "Narrow" to end of
	buffer to enable proper searching from beyond HERE.  Amend the
	test for detecting the sought brace pair.  Amend the value written
	to the "brace desert cache" when the brace isn't found.
	(c-remove-stale-state-cache): Rename `good-pos' to `start-point',
	and several other variables analogously.
	(c-remove-stale-state-cache-backwards): Change `cache-pos' from a
	parameter to a locally calculated variable.
	(c-parse-state-1): Change the calling conventions to the two
	defuns involving `cache-pos'.

2013-01-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix bugs in the state cache.  Enhance a debugging mechanism.

	* cc-engine.el (c-state-old-cpp-beg-marker)
	(c-state-old-cpp-end-marker): New variables.
	(c-parse-state-get-strategy): Don't use "brace at column zero"
	strategy for C++.
	(c-append-lower-brace-pair-to-state-cache): Repair algorithm.
	Start a backward search for "}" definitively outside CPP
	constructs.
	(c-remove-stale-state-cache): Inform the caller of a need to
	search back for a brace pair in certain circumstances.
	(c-state-maybe-marker): New macro.
	(c-parse-state): Reuse markers when appropriate.
	(c-parse-state-point): New variable.
	(c-record-parse-state-state): Record old parse state with
	`copy-tree'.  Record previous value of point.
	(c-replay-parse-state-state): Replay markers more correctly.
	(c-debug-parse-state-double-cons): New debugging function.
	(c-debug-parse-state): Call the above new function.
	(c-toggle-parse-state-debug): Output a confirmatory message.

	* cc-mode.el (c-before-change, c-after-change): Call
	c-invalidate-state-cache from `c-before-change' instead of
	`c-after-change'.

2012-12-28  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.59 released.

2012-12-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Speed up fontification where there's large brace blocks.
	* cc-fonts.el (c-font-lock-enclosing-decls): Add a limit to a call
	of c-beginning-of-decl-1.

2012-12-10  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.58 released.

2012-12-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make CC Mode not hang when _some_ lines end in CRLF.
	* cc-engine.el (c-backward-comments): Add code to work around
	`forward-comment' not recognizing ^M as whitespace.

2012-09-11  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.57 released.

2012-09-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct the handling of two c-state-cache state variables.
	* cc-engine.el (c-state-cache-init): Initialise
	c-state-semi-nonlit-pos-cache\(-limit\)? properly.
	(c-record-parse-state-state): record
	c-state-semi-nonlit-pos-cache\(-limit\)?.

2012-09-03  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.56 released.

2012-08-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	AWK Mode: make auto-newline work when there's "==" in the pattern.
	* cc-cmds.el (c-point-syntax): Handle virtual semicolons
	correctly.
	* cc-engine.el (c-guess-basic-syntax CASE 5A.3): Test more
	rigorously for "=" token.

2012-05-05  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Patch release 5.32.3

	* cc-defs.el (c-version): Increment to 5.32.3.

	* *.el, cc-mode.texi: Add 2012 to copyright notices.

2012-04-23  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.55 released.

2012-04-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix erroneous commit.

2012-04-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Adding a ) can hide the resulting (..) from searches.  Fix it.

	* cc-engine (c-append-lower-brace-pair-to-state-cache): Bound the
	backward search to the position of the existing (.

2012-04-16  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.54 released.

2012-04-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Ensure searching for keywords is case sensitive.

        * cc-cmds.el (c-electric-brace, c-electric-lt-gt)
	(c-electric-paren c-beginning-of-defun, c-end-of-defun)
	(c-defun-name, c-mark-function c-cpp-define-name)
	(c-comment-indent, c-scan-conditionals c-indent-defun)
	(c-context-line-break): bind case-fold-search to nil.

	* cc-mode.el (c-font-lock-fontify-region): bind case-fold-search
	to nil.

2012-04-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Make imenu work again for Objective C Mode.
	* cc-menus.el (cc-imenu-objc-generic-expression): Correct the
	*-index values, these having been disturbed by a previous change
	in 2011-08.

2012-04-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct two search limits in c-before-change-check_<>-operators.
	* cc-engine.el (c-before-change-check-<>-operators): Make the
	correction.

	* cc-mode.texi (c-offsets-alist): Correct a typo.

2012-03-19  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.53 released.

2012-03-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Further optimise the handling of large macros.

	* cc-engine.el (c-crosses-statement-barrier-p): Use a limit to a
	call of `c-literal-limits'.
	(c-determine-+ve-limit): New function.
	(c-at-macro-vsemi-p): Move `c-in-literal' to the bottom of an `and'.
	(c-guess-basic-syntax): In macros, restrict a search limit to
	2000.  In CASE 5B, restrict a search limit to 500.
	(c-just-after-func-arglist-p): Obviouly wrong `or' -> `and'.

	* cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): Restrict
	macro bounds to +-500 from after-change's BEG END.

2012-03-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-mark-defun): Leave a mark, and extend region when
	command is repeated.

2012-03-06  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.52 released.

2012-03-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Depessimize the handling of very large macros.

	* cc-engine.el (c-macro-cache, c-macro-cache-start-pos):
	(c-macro-cache-syntactic): New variables to implement a one
	element macro cache.
	(c-invalidate-macro-cache): New function.
	(c-beginning-of-macro, c-end-of-macro, c-syntactic-end-of-macro):
	Adapt to use the new cache.
	(c-state-safe-place): Use better the cache of safe positions.
	(c-state-semi-nonlit-pos-cache)
	(c-state-semi-nonlit-pos-cache-limit): New variables for...
	(c-state-semi-safe-place): New function.  Here, in a macro is
	"safe".
	(c-invalidate-state-cache-1): New stuff for
	c-state-semi-safe-place.
	(c-in-literal, c-literal-limits, c-determine-limit-get-base): Use
	c-state-semi-safe-place.

	* cc-langs.el (c-get-state-before-change-functions): Add
	c-invalidate-macro-cache to the C, C++, Obj entries.

2012-03-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Optimise macro handling with a 1 element cache of beginning and
	end.  Make the default of c-macro-names-with-semicolon nil.  See
	2012-03-02 for details.

2012-02-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Optimise c-state-safe-place.  See 2012-03-02 for details.

2012-02-14  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.51 released.

2012-02-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix a loop in c-set-fl-decl-start.
	* cc-engine.el (c-set-fl-decl-start): Add a check that
	c-backward-syntactic-ws actually moves backwards.

2012-02-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix infinite loop with long macros.
	* cc-engine.el (c-state-safe-place): Handle macros properly.

2012-02-09  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.50 released.

2012-02-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix spurious recognition of c-in-knr-argdecl.

	* cc-engine.el (c-in-knr-argdecl): Check for '=' in a putative K&R
	region.

2012-02-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Test for keyword @implementation in a #pragma.  This used to
	loop.

2012-02-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-forward-objc-directive): Prevent looping in
	"#pragma mark @implementation".

2012-01-19  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.49 released.

2012-01-19  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.48 released.

2012-01-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Eliminate sluggishness and hangs in fontification of "semicolon
	deserts".

	* cc-engine.el (c-state-nonlit-pos-interval): change value 10000
	-> 3000.
	(c-state-safe-place): Reformulate so it doesn't stack up an
	infinite number of wrong entries in c-state-nonlit-pos-cache.
	(c-determine-limit-get-base, c-determine-limit): New functions to
	determine backward search limits disregarding literals.
	(c-find-decl-spots): Amend commenting.
	(c-cheap-inside-bracelist-p): New function which detects "={".

	* cc-fonts.el (c-make-font-lock-BO-decl-search-function): Give a
	limit to a backward search.
	(c-font-lock-declarations): Fix an occurrence of point being
	undefined.  Check additionally for point being in a bracelist or
	near a macro invocation without a semicolon so as to avoid a
	fruitless time consuming search for a declarator.  Give a more
	precise search limit for declarators using the new
	c-determine-limit.

2012-01-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Correct a test to do with C-y:
	* cc-mode.el (c-after-change): Correct a singular-plural
	confusion.

2012-01-13  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.48 released.

2012-01-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix filling for when filladapt mode is enabled.

	* cc-cmds.el (c-fill-paragraph): In the invocation of
	c-mask-paragraph, pass in `fill-paragraph' rather than
	`fill-region-as-paragraph'.  (This is a reversion of a previous
	change.)
	* cc-mode.el (c-basic-common-init): Make
	fill-paragraph-handle-comment buffer local and set it to nil.

2012-01-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix Emacs bug #10463 - put `widen's around the critical spots.

	* cc-engine.el (c-in-literal, c-literal-limits): put a widen
	around each invocation of c-state-pp-to-literal.  Remove an unused
	let variable.

2012-01-10  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.47 released.

2012-01-10  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.46 released.

2012-01-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Optimise font locking in long enum definitions.

	* cc-fonts.el (c-font-lock-declarations): Add an extra arm to a
	cond form to handle enums.
	* cc-langs.el (c-enums-contain-decls): New lang variable.
	* cc-mode.el (c-font-lock-fontify-region): Correct a typo.

2011-12-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Introduce a mechanism to widen the region used in context font
	locking.  Use this to protect declarations from losing their
	contexts.

	* cc-langs.el (c-before-font-lock-functions): replace
	c-set-fl-decl-start with c-change-set-fl-decl-start (Renaming).
	(c-before-context-fontification-functions): new defvar, a list of
	functions to be run just before context (etc.) font locking.

	* cc-mode.el (c-extend-font-lock-region-for-macros): new,
	functionality extracted from c-neutralize-syntax-in-and-mark-CPP.
	(c-in-after-change-fontification): new variable.
	(c-after-change): Set c-in-after-change-fontification.
	(c-set-fl-decl-start): Rejig its interface, so it can be called
	from both after-change and context fontifying.
	(c-change-set-fl-decl-start, c-context-set-fl-decl-start): new
	functions.
	(c-standard-font-lock-fontify-region-function): new variable.
	(c-font-lock-fontify-region): new function

2011-12-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix unstable fontification inside templates.

	* cc-langs.el (c-before-font-lock-functions): newly created from
	the singular version.  The (c c++ objc) entry now additionally has
	c-set-fl-decl-start.  The other languages (apart from AWK) have
	that as a single entry.

	* cc-fonts.el (c-font-lock-enclosing-decls): The functionality for
	"local" declarations has been extracted to c-set-fl-decl-start.

	* cc-mode.el: (c-common-init, c-after-change): Changes due to
	pluralisation of c-before-font-lock-functions.
	(c-set-fl-decl-start): New function, extraced from
	c-font-lock-enclosing-decls and enhanced.
	(top level): Only advise the font-lock change functions when
	font-lock-extend-after-change-region-function is not defined.

2011-12-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Convert some British English spellings to American English.

2011-12-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Large brace-block initialisation makes CC Mode slow: Fix.  Tidy up
	and accelerate c-in-literal, etc. by using the c-parse-state
	routines.  Limit backward searching in c-font-lock-enclosing.decl.

	* cc-engine.el (c-state-pp-to-literal): Return the pp-state and
	literal type in addition to the limits.
	(c-state-safe-place): New defun, extracted from
	c-state-literal-at.
	(c-state-literal-at): Use the above new defun.
	(c-slow-in-literal, c-fast-in-literal): Removed.
	(c-in-literal, c-literal-limits): Amended to use
	c-state-pp-to-literal.

	* cc-fonts.el (c-font-lock-enclosing-decls): Check for being in a
	literal.  Add a limit for backward searching.

	* cc-mode.el (awk-mode): Don't alias c-in-literal to
	c-slow-in-literal.

2011-12-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Add the switch statement to AWK Mode.

	cc-awk (awk-font-lock-keywords): Add "switch", "case", "default"
	to the keywords regexp.

	cc-langs (c-label-kwds): Let AWK take the same expression as the
	rest.
	(c-nonlabel-token-key): Allow string literals for AWK.  Refactor
	for the other modes.

2011-10-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix bug #9560, sporadic wrong indentation; improve instrumentation of
	c-parse-state.
	* cc-engine.el (c-append-lower-brace-pair-to-state-cache): correct faulty
	logical expression.

	(c-parse-state-state, c-record-parse-state-state)
	c-replay-parse-state-state): New defvar/defuns.
	(c-debug-parse-state): Use new functions.

2011-10-18  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.46 released.

2011-10-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Patch release 5.32.2

	* ChangeLog: Update for patch release 5.32.2.

	* cc-defs.el (c-version): Increment to 5.32.2

2011-10-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Enhance cc-bytecomp-ignore-obsolete to cope with the missing
	function `byte-compile-obsolete' in Emacs >= 24.

	* cc-bytecomp.el: (top-level): Add variable cc-bytecomp-push-vars.
	Set this and similar variables to nil each time the file is
	loaded.
	(cc-bytecomp-setup-environment, cc-bytecomp-restore-environment):
	Add clauses to setup and restore "pushed" variables.
	(cc-bytecomp-push): New macro to "push" a variable onto an
	internal stack.
	(cc-bytecomp-ignore-obsolete): Add a superfluous check to suppress
	a compiler warning
	(cc-bytecomp-ignore-obsolete): In Emacs >= 24, use
	byte-compile-not-obsolete-funcs to mark a function as obsolete.

2011-10-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fontify Java @annotations with c-preprocessor-face-name instead of
	c-annotation-face.  Protect against a one line change misfontifying an
	annotation as a variable declaration.  Fix a "minor" bug.

	* cc-fonts.el (c-annotation-face): Remove
	(c-basic-matchers-before): Move the stanza for Java @annotations here
	from c-basic-matchers-after.  Replace c-annotation-face by c-preprocessor
	face name.
	(c-font-lock-enclosing-decls): Check that c-opt-block-decls-with-vars-key
	is non-nil before using it.

	* annotations-1.face: recalculate this file.

2011-09-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el (top level): Add a test for the existence of delete-dups.

	* cc-fix.el (top level): (defun delete-dups) when necessary.

2011-09-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/index.php, admin/release.php: Update version to 5.32.1

2011-09-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* ChangeLog: Update for patch release 5.32.1.

	* cc-defs.el (c-version): Increment to 5.32.1

2011-09-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Patch release 5.32.1

	* cc-defs (c-version): Increment to 5.32.1

2011-09-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs (c-emacs-features): add-local-hook-test: Put a save-excursion
	round the buffer manipulation.  Error detected by XEmacs byte compiler.

2011-09-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fonts.el: Reapply the changes of 2011-08-28

	* cc-menus.el: Reapply the change of 2011-08-27.

2011-09-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fix.el, cc-fonts.el, cc-guess.el, cc-langs.el, cc-lobotomy.el, cc-menus.el, cc-mode.el, cc-styles.el, cc-subword.el, cc-vars.el, cc-align.el, cc-awk.el, cc-bytecomp.el, cc-cmds.el, cc-compat.el, cc-defs.el, cc-engine.el:
	Correct the copyright and license statements for release 5.32.

	* cc-defs.el (c-next-single-property-change)
	(c-search-backward-char-property): For XEmacs, only use
	next/previous-single-char-property-change in versions >= 2005-01-25

	* cc-fonts.el, cc-menus.el: Restore to the state of Release_5_32.

2011-08-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fonts.el:
	Fix - typing on a C++ inher-intro or inher-cont line should preserve the
	fontification of the inherited class names.  Analogously for namespace
	names and Java import, extends, etc.

	* cc-fonts.el: (c-make-font-lock-BO-decl-search-function): New function.
	(c-basic-matchers-after - "Fontify the clauses after various keywords"):
	Extract the three keyword lists for the 3 erroneous constructs from the
	list of four, and use the new function above in place of an old one.

2011-08-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-menus.el (cc-imenu-c++-generic-expression): Make it handle function
	pointer parameters properly.

2011-08-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Release 5.32

	Use `make-local-hook' only when it's needed.

	* cc-defs.el (c-emacs-features): Add 'add-hook-local into c-emacs-features
	when make-local-hook is required.

	* cc-mode.el (c-basic-common-init, c-font-lock-init): Test c-emacs-features
	for 'add-hook-local.

	* cc-styles.el (c-make-styles-buffer-local): Test c-emacs-features for
	'add-hook-local.


	* cc-defs.el (c-search-forward-char-property):  Streamline by using
	c-next-single-property-change.

	* cc-engine.el:  Correct typos.

2011-08-20  Alan Mackenzie  <bug-cc-mode@gnu.org>


	Resolve invalid use of a regexp in regexp-opt.

	* cc-fonts.el (c-complex-decl-matchers): Add in special detection for a
	java annotation.

	* cc-engine.el (c-forward-decl-or-cast-1): Add in special detection for a
	java annotation.

	* cc-langs.el (c-prefix-spec-kwds-re): Remove the special handling for
	java.
	(c-modifier-kwds): Remove the regexp "@[A-za-z0-9]+".

	* cc-fonts.el: Tidy up font locking of a long CPP construct.

	* cc-fonts.el (c-guess-font-lock-context): eliminate this somewhat pompous
	defun.
	(c-font-lock-complex-decl-prepare): replace a call to the above with
	inline code.


	Fontify CPP expressions correctly when starting in the middle of such a
	construct.  Mainly for when jit-lock etc. starts a chunk here.

	* cc-fonts.el (c-font-lock-context): new buffer local variable.
	(c-make-font-lock-search-form): new function, extracted from
	c-make-font-lock-search-function.
	(c-make-font-lock-search-function): Use the above function.
	(c-make-font-lock-context-search-function): New function.
	(c-cpp-matchers): Enhance the preprocessor expression case with the above
	function
	(c-font-lock-complex-decl-prepare):  Test for being in a CPP form which
	takes an expression.

	* cc-langs.el (c-cpp-expr-intro-re): New lang-variable.

2011-08-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-electric-lt-gt): Remove an unused dynamic variable.


	Reduce the number of compilation warnings:

	* cc-awk.el (c-awk-get-NL-prop-cur-line): Replace `delete-backward-char' by
	`delete-char'.

	* cc-cmds.el (c-electric-lt-gt, c-beginning-of-defun): Remove unused
	dynamic variables.

	* cc-engine.el (top level): Add a cc-bytecomp-defun and a
	cc-bytecomp-defvar.
	(c-ssb-lit-begin, c-forward-<>-arglist-recur):
	(c-just-after-func-arglist-p, c-looking-at-decl-block):
	(c-append-to-state-cache): Remove unused dynamic variables.

	* cc-fonts.el (c-font-lock-enum-tail): Remove an unused dynamic variable.

	* cc-guess.el (top level): Add three cc-bytecomp-defvars.

	* cc-menus.el (cc-imenu-objc-function): Remove an unused dynamic variable.

	* cc-mode.el (top level): Add three cc-bytecomp-defvars.

	* tests/macro-27.cc, tests/macro-27.face, tests/macro-27.res:
	Test "macros with semicolons".

2011-08-15  Alan Mackenzie  <bug-cc-mode@gnu.org>


	Adapt recent changes to work with XEmacs.

	* cc-cmds.el (c-where-wrt-brace-construct): Replace a looking-at with
	a call to c-looking-at-non-alphnumspace, because XEmacs doesn't have
	\s!.
	(c-defun-name): Adapt a regexp not to use \_>.

	* cc-defs.el (c-next-single-property-change): new macro.
	(c-<-as-paren-syntax, c->-as-paren-syntax: Adapt for use as a simple
	value (as well as for category properties).
	(c-put-property-fun, c-put-char-property): wrap in eval-and-compile.
	(c-use-category): new compile-time constant.
	(c-search-forward-char-property):
	(c-clear-char-property-with-value-function):
	(c-clear-char-property-with-value-function, c-mark-<-as-paren):
	(c-mark->-as-paren, c-unmark-<->-as-paren): small changes.
	(c-sc-scan-lists-no-category+1+1, c-sc-scan-lists-no-category+1-1):
	(c-sc-scan-lists-no-category-1-1, c-sc-scan-lists-no-category-1-1):
	(c-sc-scan-lists, c-sc-parse-partial-sexp-no-category):
	(c-sc-parse-partial-sexp): new macrofications of scan-lists and
	parse-partial-sexp, for use in c-parse-state.
	(c-looking-at-non-alphnumspace): new macro.
	(c-emacs-features): Introduce new component category-properties.

	* cc-engine.el (several defuns): Replace next-single-property-change by
	c-next-single-property-change.
	(c-state-cache-non-literal-place): Correct, to avoid the inside of
	macros.
	(c-state-balance-parens-backwards):
	(c-append-lower-brace-pair-to-state-cache, c-state-push-any-brace-pair):
	(c-append-to-state-cache, c-remove-stale-state-cache):
	(c-remove-stale-state-cache-backwards): Replace scan-lists by
	c-sc-scan-lists and parse-partial-sexp by c-sc-parse-partial-sexp.
	(c-invalidate-state-cache, c-parse-state): small changes.
	(c-find-decl-spots): Enhance initialisation of cfd-prop-match to take
	account of a possible c-decl-end c-type property on the last token before
	the region.
	(c-clear-<-pair-props, c-clear->-pair-props): use c-unmark-<->-as-paren.
	(c-before-change-check-<>-operators): Search for syntax-table rather than
	category property.

	* cc-fonts.el (c-skip-comments-and-strings): Use
	c-next-char-propery-change.
	(c-cpp-matchers): Use c-unmark-<->-as-paren.
	(c-font-lock-invalid-string): Use characterp rather than integerp in
	XEmacs, since characters are not integers.

	* cc-mode.el (c-neutralize-syntax-in-and-mark-CPP): Test for category
	properties (i.e. GNU Emacs) before deleting them.
	(c-before-change): replace next-single-property-change by
	c-next-single-property-change.
	(c-after-change): Make an Emacs dependent category property related
	correction dependent on the existence of category properties.

2011-07-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* tests/bitfield-2.c, tests/bitfield-2.face, tests/bitfield-2.res:
	bitfield-2.c: New file to test awkward fontification of bitfields.


	Fontify bitfield declarations properly.

	* cc-langs.el (c-has-bitfields): New lang variable.
	(c-symbol-chars): Now exported as a lang variable.
	(c-not-primitive-type-keywords): New lang variable.

	* cc-fonts.el (c-font-lock-declarations): Jump over the QT keyword "more"
	to prevent "more slots: ...." being spuriously parsed as a bitfield
	declaraion.

	* cc-engine.el (c-beginning-of-statement-1): Refactor and enhance to handle
	bitfield declarations.
	(c-punctuation-in): New function.
	(c-forward-decl-or-cast-1): Enhance CASE 3 to handle bitfield
	declarations properly.

2011-07-22  Alan Mackenzie  <bug-cc-mode@gnu.org>


	Prevent cc-langs.elc being loaded at run time.

	* cc-mode.el: Remove two autoload forms which loaded cc-langs.

	* cc-langs.el (c-make-init-lang-vars-fun): Don't emit "(require 'cc-langs)".
	Quote a form so it will evaluate at (cc-mode's) compilation time.

2011-07-21  Alan Mackenzie  <bug-cc-mode@gnu.org>


	Fontify declarators properly when, e.g., a jit-lock chunk begins inside a
	declaration.

	* cc-langs.el (c-symbol-chars): Correct a typo.

	* cc-fonts.el (c-font-lock-enclosing-decls): New function.
	(c-complex-decl-matchers): Insert reference to
	c-font-lock-enclosing-decls.

	* cc-engine.el (c-backward-single-comment, c-backward-comments): Bind
	open-paren-in-column-0-is-defun-start to nil around calls to
	(forward-comment -1).

2011-07-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi, cc-styles.el, Makefile, cc-guess.el, cc-langs.el, cc-mode.el:

	* cc-guess.el: Update this and Make it an integral part of CC Mode.

	* cc-langs.el (c-mode-menu): Added "Style..." submenu.

	* cc-styles.el (cc-choose-style-for-mode): New function derived from
	`c-basic-common-init'.

	* cc-mode.el (top-level): Require cc-guess.  (c-basic-common-init): Use
	`cc-choose-style-for-mode'.

	* cc-mode.texi (Guessing the Style): New page.  (Styles): Add a short
	introduction to above.

	Makefile: Change the position of cc-guess.el.

2011-06-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el, tests/templates-19.cc:
	cc-engine (c-guess-continued-construct): Correct the handling of
	template-args-cont, particularly for when font lock is disabled.  Name
	this case as "CASE G".

	templates-19.c: Reindent.

2011-06-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-declarations):
	1: Whilst checking for declarators, disable
	knr checking to speed up for normal files.  2: Refactor, replacing a
	sequence of nested if forms by a cond form.

2011-03-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-basic-syntax):
	Move CASE 19 to a different place, correctly to
	process template-args-cont lines.

2011-02-27  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-continued-construct): In three places, replace
	`lim' with 'containing-sexp'.

	* cc-engine.el (c-guess-continued-construct):
	In three places, replace `paren-state'
	with 'containing-sexp'.


	Fix an infinite loop which happens when a template construct straddles a
	jit-lock boundary.

	* cc-engine.el (c-forward-<>-arglist-recur): recast nested `if's as a
	`cond' form.

	* cc-fonts.el (c-font-lock-declarations): Remove a harmful narrowing to
	region being fontified.

2011-02-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-state-literal-at):
	Prevent positions in macros finding their way into
	c-state-nonlit-pos-cache.  Strengthen the comments.
	(c-state-dump): New commented out diagnostic routine.

	* cc-cmds.el: Eliminate some infinite loops:
	(c-forward-over-illiterls): On encountering a bare '#' step forward over
	it.
	(c-end-of-statement): Set macro-end correctly at the end of a loop.

2010-12-28  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-continued-construct):
	used 'paren-state' instead of 'lim' to fix byte-compile warnings.

2010-12-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-forward-type):
	Before scanning a template arglist, check that the
	current language supports this.

2010-10-31  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-mask-paragraph): Fix an off-by-1 error.

2010-10-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-declarations):
	Cache the result of the call to
	c-beginning-of-decl-1 inside the internal lambda.  This is for speed.
	(c-font-lock-enum-tail): New function which fontifies the tail of an enum.
	(c-basic-matchers-after): Insert a call to the above new function.

2010-10-24  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-engine.el: Patch to fix templates-19.cc test

2010-10-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-before-change, c-after-change):
	Move the setting of c-new-BEG and
	c-new-END from c-before-change to c-after-change.

2010-10-08  Alan Mackenzie  <bug-cc-mode@gnu.org>


	Together with the previous patch, enhance fontification of declarators to
	take account of the presence/absence of "typedef".

	* cc-engine.el (c-forward-type): New &optional param "brace-block-too".
	(c-forward-decl-or-cast-1): cdr of return value now indicates the
	presence of either or both of a "struct"-like keyword and "typedef".

	* cc-fonts.el (c-complex-decl-matchers): Remove the heuristic fontification
	of declarators which follow a "}".

	* cc-langs.el (c-typedef-kwds c-typedef-key): New lang variable for
	"typedef".
	(c-typedef-decl-key): New lang varaible built from c-typedef-decl-kwds.

	* cc-mode.el (c-advise-fl-for-region): Don't restrict to AWK Mode any more.

2010-10-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-declarations):
	Fontify declarators according to the
	presence/absence of "typedef".

	* tests/class-21.face, tests/decls-33.c, tests/decls-33.face, tests/decls-8.cc, tests/decls-8.face, tests/templates-4.face, tests/typedef-1.face:
	CC Mode now correctly fontifies declarators according to the
	presence/absence of "typedef".  Adapt the test files accordingly.

2010-09-20  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-engine.el: Moved case 19 out of case 7

2010-09-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-forward-<>-arglist-recur): Fix an infinite recursion.

	* cc-engine.el (c-forward-<>-arglist-recur): Correct the indentation.

2010-08-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-mask-paragraph, c-fill-paragraph):
	Fix for the case that a C style
	comment has its delimiters alone on their respective lines.

2010-08-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-align.el, cc-cmds.el, cc-defs.el, cc-engine.el, cc-mode.el, cc-mode.texi, cc-vars.el:
	Eliminate some warning messages when Emacs 23 is used to compile them.

2010-07-31  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-mask-paragraph): Fix auto-fill bug.

2010-07-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* tests/000tests.el, tests/annotations-1.face, tests/annotations-1.java, tests/annotations-1.res, tests/enum-6.face, tests/enum-6.java, tests/enum-6.res, tests/foreach.face, tests/foreach.java, tests/foreach.res, tests/generics-1.face, tests/generics-1.java, tests/java-varargs.face, tests/java-varargs.java, tests/java-varargs.res, cc-engine.el, cc-fix.el, cc-fonts.el, cc-langs.el, cc-menus.el, cc-mode.el, cc-mode.texi, cc-vars.el, cc-defs.el:
	Integrate java-0-1 branch: Enhance Java Mode to handle Java 5.0 (Tiger)
	and Java 6 (Mustang).  Contributed by Nathanial Flath.

2010-07-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el, cc-engine.el, cc-fix.el, cc-fonts.el, cc-langs.el, cc-menus.el, cc-mode.el, cc-mode.texi, cc-vars.el, tests/000tests.el, tests/annotations-1.face, tests/annotations-1.java, tests/annotations-1.res, tests/enum-6.face, tests/enum-6.java, tests/enum-6.res, tests/foreach.face, tests/foreach.java, tests/foreach.res, tests/generics-1.face, tests/generics-1.java, tests/java-varargs.face, tests/java-varargs.java, tests/java-varargs.res:
	Integrate java-0-1 branch: Enhance Java Mode to handle Java 5.0 (Tiger)
	and Java 6 (Mustang).  Contributed by Nathanial Flath.

2010-07-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* tests/comments-6.c, cc-mode.el:
	Enhance `c-file-style' in file/directory local variables.

	* cc-mode.el (c-count-cfss): New function.
	(c-before-hack-hook): Call `c-set-style' differently according to whether
	c-file-style was set in file or directory local variables.

	tests/comments-6.c.  Enter Emacs-24 as a version in which to ignore this
	test.

2010-07-13  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Fixed chaotic braces in 'Java Symbols'.

2010-06-30  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Added more detail on new syntactic constructs

2010-06-20  Alan Mackenzie  <bug-cc-mode@gnu.org>


	Fix an indentation bug with templates.

	* cc-mode.el (c-common-init): Initialise c-new-BEG/END.
	(c-neutralize-syntax-in-and-mark-CPP): c-new-BEG/END: Take account of
	existing values.

	* cc-engine.el (c-clear-<-pair-props-if-match-after)
	(c-clear->-pair-props-if-match-before): now return t when they've cleared
	properties, nil otherwise.
	(c-before-change-check-<>-operators): Set c-new-beg/end correctly by
	taking account of the existing value.

	* cc-defs.el (c-clear-char-property-with-value-function): Fix this
	to clear the property rather than overwriting it with nil.

	* cc-mode.el (c-before-hack-hook):
	When the mode is set in file local variables, set it
	first.

2010-05-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-langs.el, cc-mode.texi, cc-vars.el, cc-cmds.el:
	Amend the handling of c-beginning/end-of-defun in nested declaration
	scopes.

	* cc-vars.el (c-defun-tactic): Move here from cc-langs.el.  Change it to a
	defcustom.

	* cc-mode.texi (Movement Commands): Document `c-defun-tactic'.  Document
	the new handling of nested scopes for movement by defuns.

	* cc-langs.el (c-defun-tactic): Move this variable to cc-vars.el.
	(c-nonlabel-token-2-key): New variable for change in cc-engine.el.

	* cc-engine.el (c-beginning-of-statement-1): Prevent "class foo : bar"
	being spuriously recognized as a label.

	* cc-cmds.el (c-narrow-to-most-enclosing-decl-block): Add parameter
	`inclusive' (to include enclosing braces in the region).
	(c-widen-to-enclosing-decl-scope): New function.
	(c-while-widening-to-decl-block): New macro.
	(c-beginning-of-defun, c-end-of-defun): Change algorithm to keep going
	outward for defun boundaries, and correspondingly change symbol
	`respect-enclosure' to `go-outward'.
	(c-declaration-limits): Change algorithm to report only the "innermost"
	defun's boundaries.

2010-05-25  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	Added descriptions of annotation-top-cont and annotation-var-cont into the manual.

2010-05-22  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-fonts.el, cc-mode.el:
	Moved annotation highlighting from java-mode to c-basic-matchers-after.

2010-05-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-parse-state-get-strategy): Replace parameter `here' with
	`here-' and `here-+', which sandwich any pertinent CPP construct.

	(c-remove-stale-state-cache-backwards): Fix a bug which happens when
	doing (c-parse-state) in a CPP construct: Exclude any "new" CPP construct
	from taking part in the scanning.

2010-05-21  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-langs.el, tests/generics-1.face, cc-engine.el:
	Fixed problem where Java Generics were not always fontified.

2010-05-19  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-langs.el, tests/generics-1.face, tests/generics-1.java, cc-engine.el:
	Fixed unit tests for template expressions and declarations.  Still a few broken ones in the new unit tests for Java generics.

2010-05-18  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-langs.el, tests/annotations-1.face, tests/annotations-1.java, tests/annotations-1.res, cc-engine.el:
	Fixed the bugs in annotation highlighting; annotation unit tests are now passing.

	Also reindented c-forward-<>-arglist-recur and made a few changes that fixed some bugs in generic handline, but those unit tests are not entirely passing.

2010-05-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* tests/annotations-1.face:
	file annotations-1.face was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/annotations-1.java:
	file annotations-1.java was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/annotations-1.res:
	file annotations-1.res was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/enum-6.face:
	file enum-6.face was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/enum-6.java:
	file enum-6.java was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/enum-6.res:
	file enum-6.res was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/foreach.face:
	file foreach.face was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/foreach.java:
	file foreach.java was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/foreach.res:
	file foreach.res was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/generics-1.face:
	file generics-1.face was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/generics-1.java:
	file generics-1.java was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/java-varargs.face:
	file java-varargs.face was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/java-varargs.java:
	file java-varargs.java was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

	* tests/java-varargs.res:
	file java-varargs.res was added on branch Branch_5_31 on 2010-07-20 20:41:14 +0000

2010-05-17  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-fonts.el, cc-langs.el, cc-vars.el, tests/000tests.el, tests/annotations-1.face, tests/annotations-1.java, tests/annotations-1.res, tests/enum-6.face, tests/enum-6.java, tests/enum-6.res, tests/foreach.face, tests/foreach.java, tests/foreach.res, tests/generics-1.face, tests/generics-1.java, tests/java-varargs.face, tests/java-varargs.java, tests/java-varargs.res:
	Added unit tests for new Java 1.5 constructs, as well as a few bug and formatting fixes.

	Most of the issues brought up by Alan's CR have been fixed, with the
	exception of annotations being font-locked in java-mode.
	Additionally, most of the broken tests were fixed, at the cost of the
	a few of the new unit tests not passing.

	* tests/annotations-1.face, tests/annotations-1.java, tests/annotations-1.res, tests/enum-6.face, tests/enum-6.java, tests/enum-6.res, tests/foreach.face, tests/foreach.java, tests/foreach.res, tests/generics-1.face, tests/generics-1.java, tests/java-varargs.face, tests/java-varargs.java, tests/java-varargs.res:
	New file.

2010-04-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-extend-region-for-CPP):
	Fix an off-by-one error (EO-macro position).

2010-04-28  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-engine.el:
	Improved c-forward-annotation to handle annotations with arglists properly.

	* cc-vars.el, cc-engine.el:
	Added two syntactic contexts to support annotations in java.

	The first, annotation-top-cont, represents a topmost continuation where the only items preceding the current line are annotations.  An example is:
	@Test
	_ public void testFoo() {}

	The second is annotation-var-cont, representing a statement continuation where the only preceding items are annotations, such as:
	class Test {
	    public static void main() {
	    @SuppressWarnings
	    _int i;
	    }
	}

2010-04-27  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-engine.el: Fixed indentation.

	* cc-engine.el:
	Added support for for:each loops and fixed a few bugs this uncovered in generic highlighting.

2010-04-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-align.el, cc-awk.el, cc-cmds.el, cc-defs.el, cc-engine.el, cc-fix.el, cc-langs.el, cc-lobotomy.el, cc-menus.el, cc-styles.el, cc-vars.el:
	Replace leading spaces by <TAB> characters throughout the source.

	* cc-awk.el, cc-cmds.el, cc-defs.el, cc-engine.el, cc-fix.el, cc-fonts.el, cc-langs.el, cc-lobotomy.el, cc-menus.el, cc-styles.el, cc-vars.el, cc-align.el:
	Replace leading spaces by <TAB>s, synched with java-0-1-merge-3.

	* cc-awk.el, cc-cmds.el, cc-defs.el, cc-engine.el, cc-fix.el, cc-langs.el, cc-lobotomy.el, cc-menus.el, cc-styles.el, cc-vars.el, cc-align.el:
	Replace leading spaces by <TAB> characters throughout source.

	* cc-mode.texi, cc-mode.el, cc-engine.el:
	Merge from Branch_5_31, tag java-0-1-merge-2.

2010-04-24  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-fonts.el, cc-langs.el:
	Added correct fontification for Java generics and varargs.

2010-03-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi (Other Indentation):
	State that functions on c-special-indent-hook are
	called with no parameters and with point on the current line.

2010-03-23  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-fonts.el, cc-mode.el, cc-vars.el:
	Renamed java-annotation-face to c-annotation-face and moved it to cc-fonts.el

2010-03-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el: *** empty log message ***

	* cc-engine.el (c-remove-stale-state-cache): Fix an off-by-one error.

2010-03-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el: *** empty log message ***

	* cc-mode.el:
	Guard against the Emacs core spuriously calling before-change-functions
	twice in succession.
	(c-just-done-before-change): New flag
	(c-before-change): Test and set the new flag before executing anything.
	(c-after-change): Clear the flag.

2010-03-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fonts.el, cc-langs.el, cc-mode.el, tests/inher-5.res, tests/inher-6.res, tests/templates-16.res, tests/templates-5.res, tests/templates-7.res, tests/templates-8.res, cc-cmds.el, cc-defs.el, cc-engine.el:
	Merge from BRANCH_5_31, tag java-0-1-merge-1.

2010-03-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el: *** empty log message ***

	* cc-engine.el (c-remove-stale-state-cache):
	Correct the previous patch.

	* cc-engine.el: *** empty log message ***

	* cc-engine.el (c-remove-stale-state-cache):
	Take account of when `good-pos' is in the same
	macro as `here'.

	* cc-engine.el, cc-mode.el: *** empty log message ***



	* cc-mode.el (c-common-init): In the funcall, replace the erroneous `beg',
	`end' with (point-min), (point-max).
	(c-after-change): After (e.g.) C-y, remove the 'syntax-table text props
	that Emacs has converted from 'category text props.

	* cc-engine.el (c-clear-<-pair-props, c-clear->-pair-props): Clear the
	'category text property, not the 'syntax-table one.

2010-02-19  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-fonts.el, cc-langs.el, cc-mode.el, cc-vars.el:
	Removed trailing whitespace from cc-vars and cc-engine, and fixed typo (xJava -> Java)

2010-02-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-mode.el: *** empty log message ***



	* cc-mode.el (c-common-init): Use c-get-state-before-change-functions in
	place of c-get-state-before-change-function.  Update some comments about
	this.

	* cc-engine.el: Update some comments about
	c-get-state-before-change-function.

	* cc-cmds.el, cc-defs.el, cc-engine.el, cc-langs.el, cc-mode.el:

	*** empty log message ***


	Change strategy for marking < and > as template delimiters: mark them
	strictly in matching pairs.

	* cc-mode.el (c-before-change): Use c-get-state-before-change-functions.

	* cc-langs.el (c-no-parens-syntax-table): New syntax table, used for
	searching syntactically for matching <s and >s.
	(c-get-state-before-change-functions): New language variable (note the
	plural) which supersedes c-get-state-before-change-function.

	* cc-engine.el (c-clear-<-pair-props, c-clear->-pair-props)
	(c-clear-<>-pair-props, c-clear-<-pair-props-if-match-after)
	(c-clear->-pair-props-if-match-before)
	(c-before-change-check-<>-operators): new functions.
	(c-after-change-check-<>-operators): Use macro c-unmark-<->-as-paren.

	* cc-defs.el (c-search-backward-char-property): New macro.

	* cc-cmds.el (c-electric-lt-gt): Do not set text properties on < and > any
	more.  (These will be handled by font locking.)

2010-01-25  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-mode.el, cc-vars.el: Highlighting for Java annotation usage

2010-01-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el: *** empty log message ***

	* cc-engine.el:
	Fix a situation where deletion of a cpp construct throws an error.
	(c-invalidate-state-cache): Before invoking
	c-with-all-but-one-cpps-commented-out, check that the special cpp
	construct is still in the buffer.
	(c-parse-state): Record the special cpp with markers, not numbers.

	* cc-defs.el: *** empty log message ***

	* cc-defs.el:
	typing '#' in an empty C buffer throws "args out of range".
	(c-set-cpp-delimiters, c-clear-cpp-delimiters): Check for EOB playing the
	role of delimiter.

2010-01-19  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-langs.el: Highlight annotations as types

	* cc-mode.el, cc-langs.el: highlighting of @interface in java-mode

2010-01-06  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-menus.el:
	Fixed issue with cc-imenu-java-generic-expression not handling array arguments properly

2009-12-31  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-langs.el:
	Fix for enum indentation in Java.  Aligns all enum options on the same column.

	* cc-langs.el: Added proper highlighting for java enums

2009-12-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* tests/templates-19.cc, tests/templates-19.res:
	Test template use in statements when the templates span line breaks.

	* tests/inher-5.res, tests/inher-6.res, tests/templates-16.res, tests/templates-5.res, tests/templates-7.res, tests/templates-8.res:
	Amend for the second anchor point just added to template-args-cont.


	Handle templates continued over line breaks in statements.  Refactor
	c-syntactic-skip-backward.  Make text property `category' rear
	non-sticky.

	* cc-mode.el (c-basic-common-init): make text property `category' rear
	non-sticky.

	* cc-engine.el (c-ssb-lit-begin): New defsubst, extracted from ....
	(c-syntactic-skip-backward): Refactor, extracting the above.
	(c-guess-basic-syntax CASEs 5D.3, 5L): Add extra anchor point;
	(c-guess-basic-syntax CASE 19): New CASE to handle template
	construct continued over line boundary.
	(c-guess-basic-syntax CASE 7): don't trigger on '<'.

2009-12-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Enhance `c-parse-state' to run efficiently in "brace desserts".
	 cc-mode.el (c-basic-common-init): Call c-state-cache-init.
	(c-neutralize-syntax-in-and-mark-CPP):  Renamed from
	c-extend-and-neutralize-syntax-in-CPP.  Mark each CPP construct by
	placing `category' properties value 'c-cpp-delimiter at its
	boundaries.

	* cc-langs.el (c-before-font-lock-function):
	c-extend-and-neutralize-syntax-in-CPP has been renamed
	c-neutralize-syntax-in-and-mark-CPP.

	* cc-fonts.el (c-cpp-matchers): Mark template brackets with
	`category' properties now, not `syntax-table' ones.

	* cc-engine.el (c-syntactic-end-of-macro): A new enhanced (but
	slower) version of c-end-of-macro that won't land inside a literal
	or on another awkward character.
	(c-state-cache-too-far, c-state-cache-start)
	(c-state-nonlit-pos-interval, c-state-nonlit-pos-cache)
	(c-state-nonlit-pos-cache-limit, c-state-point-min)
	(c-state-point-min-lit-type, c-state-point-min-lit-start)
	(c-state-min-scan-pos, c-state-brace-pair-desert)
	(c-state-old-cpp-beg, c-state-old-cpp-end): New constants and
	buffer local variables.
	(c-state-literal-at, c-state-lit-beg)
	(c-state-cache-non-literal-place, c-state-get-min-scan-pos)
	(c-state-mark-point-min-literal, c-state-cache-top-lparen)
	(c-state-cache-top-paren, c-state-cache-after-top-paren)
	(c-get-cache-scan-pos, c-get-fallback-scan-pos)
	(c-state-balance-parens-backwards, c-parse-state-get-strategy)
	(c-renarrow-state-cache)
	(c-append-lower-brace-pair-to-state-cache)
	(c-state-push-any-brace-pair, c-append-to-state-cache)
	(c-remove-stale-state-cache)
	(c-remove-stale-state-cache-backwards, c-state-cache-init)
	(c-invalidate-state-cache-1, c-parse-state-1)
	(c-invalidate-state-cache): New defuns/defmacros/defsubsts.
	(c-parse-state): Enhanced and refactored.
	(c-debug-parse-state): Amended to deal with all the new
	variables.

	* cc-defs.el (c-<-as-paren-syntax, c-mark-<-as-paren)
	(c->-as-paren-syntax, c-mark->-as-paren, c-unmark-<->-as-paren):
	modify to use category text properties rather than syntax-table
	ones.
	(c-suppress-<->-as-parens, c-restore-<->-as-parens): new defsubsts
	to switch off/on the syntactic paren property of C++ template
	delimiters using the category property.
	(c-with-<->-as-parens-suppressed): Macro to invoke code with
	template delims suppressed.
	(c-cpp-delimiter, c-set-cpp-delimiters, c-clear-cpp-delimiters):
	New constant/macros which apply category properties to the start
	and end of preprocessor constructs.
	(c-comment-out-cpps, c-uncomment-out-cpps): defsubsts which
	"comment out" the syntactic value of characters in preprocessor
	constructs.
	(c-with-cpps-commented-out)
	(c-with-all-but-one-cpps-commented-out): Macros to invoke code
	with characters in all or all but one preprocessor constructs
	"commented out".

2009-11-23  Nathaniel Flath  <bug-cc-mode@gnu.org>

	* cc-menus.el:
	Updating cc-imenu-java-generic-expression in order to match Java1.6 methods with generics and annotations.

2009-09-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-nonlabel-token-key): Allow quoted character constants (as
	case labels).

	* cc-engine.el (c-beginning-of-statement-1): Correct buggy bracketing.

2009-09-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-scan-conditionals):
	A new function like c-forward-conditionals, but it
	doesn't move point and doesn't set the mark.
	(c-up-conditional, c-up-conditional-with-else, c-down-conditional)
	(c-down-conditional-with-else, c-backward-conditional)
	(c-forward-conditional): Refactor to use c-scan-conditionals.

	* cc-bytecomp.el (cc-bytecomp-ignore-obsolete):
	In Emacs 23, byte-compile-warnings isn't
	always a list any more.  Use new function byte-compile-disable-warning
	here.

2009-08-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/release.php:
	Update and clarify the current status of the 5.31.n releases.

	* cc-defs.el (c-version):
	increment the version number to 5.31.8.prerelease.

2009-07-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el, cc-mode.texi:
	Whilst initialising a mode, make any explicit setting of a variable take
	precedence over one done via c-file-style/c-file-offsets.

	* cc-mode.el (c-before-hack-hook, c-postprocess-file-styles): give
	c-set-style a DONT-OVERRIDE parameter of t in each function.

	* cc-mode.texi (Config Basics, File Styles): Amend documentation.

2009-06-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-mask-paragraph):
	Remove a spurious correction between the visible
	width of TABs and their number of bytes, so that point is undisturbed
	after typing a space, when there are tabs just before "*/".

2009-06-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Introduce "font lock contexts", to enable (in particular) jit-lock to fontify
	correctly when starting in the middle of a construct.  Implement this for CPP
	expressions.

	* cc-langs.el (c-cpp-expr-intro-re): New variable.

	* cc-fonts.el (c-guess-font-lock-context): New function.
	(c-font-lock-context): New buffer local variable.
	(c-make-font-lock-search-form): New function, extracted from
	c-make-font-lock-search-function.
	(c-make-font-lock-search-function): Use the above function.
	(c-make-font-lock-context-search-function): New function.
	(c-cpp-matchers): Enhance the preprocessor expression case as above.
	(c-font-lock-complex-decl-prepare): Call c-guess-font-lock-context.

2009-05-21  Alan Mackenzie  <bug-cc-mode@gnu.org>


	* cc-langs.el (c-before-font-lock-function): Change the name of an entry
	to c-extend-and-neutralize-syntax-in-CPP.

	* cc-mode.el (c-basic-common-init): Set
	font-lock-extend-after-change-region-function to
	c-extend-after-change-region for Emacs 22 and later.
	(c-before-hack-hook): Correct "hack-local-variables-alist" to
	"file-local-variables-alist".
	(c-extend-and-neutralize-syntax-in-CPP): Renamed from
	c-neutralize-syntax-in-CPP; it now extends the font lock region by
	setting c-new-BEG and c-new-END.
	(c-font-lock-init): Remove initialization of obsolete variable
	font-lock-lines-before.
	(c-extend-after-change-region): New function.
	(c-advise-fl-for-region): Generated code now extends f-l region for any
	CC Mode, not just AWK Mode.

	* cc-fonts.el, cc-engine.el:
	Undo the last change, which was ill thought out, apart from the macro
	c-search-forward-char-property and some enhancements to comments.

2009-05-18  Alan Mackenzie  <bug-cc-mode@gnu.org>


	* cc-fonts.el (c-font-lock-invalid-cpp-string-matcher): New function.

	(c-basic-matchers-before): New clause to fontify invalid strings in a CPP
	construct.

	* cc-engine.el: Update some commenting.

	* cc-defs.el (c-search-forward-char-property): new macro.

2009-04-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Enhancements for Objective-C:

	* cc-vars.el: (c-objc-method-arg-min-delta-to-bracket,
	c-objc-method-arg-unfinished-offset, c-objc-method-parameter-offset): New
	variables.
	(c-offsets-alist): Use c-lineup-ObjC-method-call-colons in entry for
	objc-method-call-cont.

	* cc-langs.el: (c-constant-kwds): New ObjC keywords "YES", "NO",
	"NS_DURING", "NS_HANDLER", "NS_ENDHANDLER".

	* cc-align.el: (c-lineup-ObjC-method-call-colons): New function.

	* cc-menus.el: (cc-imenu-objc-function): Remove calls of
	imenu-progress-message.

2009-03-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el, cc-engine.el, cc-fonts.el, cc-langs.el, cc-mode.texi, cc-vars.el:
	Amend to indent and fontify macros "which include their own semicolon"
	correctly, using the "virtual semicolon" mechanism.

	* cc-defs.el: Update "virtual semicolon" comments.

	* cc-engine.el (c-crosses-statement-barrier-p): Recoded to scan one line at
	at time rather than having \n and \r explicitly in c-stmt-delim-chars
	(for some modes, e.g. AWK).
	(c-forward-label): Amend for virtual semicolons.
	(c-at-macro-vsemi-p, c-macro-vsemi-status-unknown-p): New functions

	* cc-fonts.el (c-font-lock-declarations): Take account of the new C macros.

	* cc-langs.el (c-at-vsemi-p-fn, c-vsemi-status-unknown-p-fn): move to
	earlier in the file.
	(c-opt-cpp-symbol, c-line-comment-start-regexp): New language variables.
	(c-opt-cpp-macro-define): Make into a full language variable.
	(c-stmt-delim-chars, c-stmt-delim-chars-with-comma): Special value for
	AWK Mode (including \n, \r) removed, no longer needed.

	* cc-mode.el (c-mode, c++-mode, objc-mode): Invoke
	c-make-macro-with-semi-re.  (Erroneously committed early, in previous
	version, 5.259.)

	* cc-vars.el (c-macro-with-semi-re, c-macro-names-with-semicolon): New
	variables.
	(c-make-macro-with-semi-re): New function

	* cc-mode.texi (Indentation Commands): Mention "macros with semicolons".
	(Other Special Indentations): Add an xref to "Macros with ;".
	(Customizing Macros): Add stuff about syntax in macros.  Add an xref to
	"Macros with ;".
	(Macros with ;): New page.

2009-02-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-langs.el:
	Allow (compile time) expressions in case clauses.

	* tests/switch-16.c, tests/switch-16.res: New file.

	* tests/switch-16.c, tests/switch-16.res:
	Test files for "case <expression>:".

2009-02-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-defun-name): Widen, so it works on a narrowed region.

2009-02-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-emacs-features):
	Check the working of beginning/end-of-defun-function
	more rigorously before setting argumentative-bod-function.

2009-01-05  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-styles.el (c-setup-paragraph-variables):
	Ensure paragraph-\(start\|separate\) match
	blank lines.  For AWK Mode.

2008-11-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* tests/000tests.el (cc-test-extend-faces):
	When two faces aren't distinct, display a
	`message' rather than throwing an `error', a barely understood kludge to
	allow interactive use of 000tests.el.

	(do-all-tests): reset buffer *cc-test-log* to read/write after calling
	`compilation-mode'.

	* tests/top-4.res, tests/statement-15.res, tests/macro-8.res, tests/macro-7.res, tests/macro-3.res, tests/comments-4.res, tests/bracelist-11.res, tests/access-labels-qt-1.res:
	Correct the syntactical analysis of subsequent macro continuation lines.
	They are now never 'cpp-define-intro'.

2008-11-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-forward-label):
	Handle the new QT macros Q_SLOTS and Q_SIGNALS.

2008-10-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-recognize-<>-arglists):
	Enable this, crudely, for java.  This will
	enable certain constructs with generics to be recognized, although it
	won't correctly handle the general use of generics.

2008-10-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-defun-name):
	Make it work for "struct foo bar [] = { ...".

2008-10-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-indent-region):
	Fix previous patch so that the function works on
	one-line macros.

2008-10-07  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-before-hack-hook):
	New hook function for new hook (in Emacs 23)
	(top level): Use this new hook if it's there, otherwise use
	hack-local-variables-hook.

	* cc-mode.el (c-mode-base-map):
	Don't bind C-m-[ae] to c-{beginning,end}-of-defun when
	the current Emacs version passes a parameter to
	{beginning,end}-of-defun-function.

	* cc-engine.el (c-literal-type, c-forward-decl-or-cast-1, c-at-toplevel-p):
	Amend doc
	strings.
	(c-forward-decl-or-cast-1): Add in comments like "CASE 1", "CASE 2", ...
	which will later (hopefully) be fleshed out with detailed comments.

	* cc-cmds.el (c-indent-region):
	Fix so that indenting a macro followed by blank lines
	doesn't backslash the following non-blank line into the macro.

	* cc-align.el (c-lineup-respect-col-0): New function.

	* cc-styles.el (c-style-alist "ellemtel"):
	Move arglist-cont-nonempty into
	c-hanging-braces-alist.
	Change some `mapcar's into `mapc's.

2008-10-05  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cvstest.txt: Initial commision.

	* cvstest.txt: New file.

2008-10-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-declarations): For "if (a<0 || b>99)", set
	c-restricted-<>-arglists to t, so that the innards aren't treated as a
	template bracket enclosure.  Also refactor the code here.

2008-08-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-emacs-features):
	set `argumentative-bod-function' when the Emacs core
	passes ARG through to `beginning-of-defun-function'.

2008-06-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-beginning-of-statement-1): Improve the doc string.

	* cc-langs.el (c-defun-tactic): New language variable defining BO-defun.
	(This was already being used, although not defined.)

	* cc-cmds.el (c-where-wrt-brace-construct): Fix problem with "labels" (e.g.
	"private:") at the top level.

2008-06-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-basic-syntax CASE 5D.5):
	Fix an infinite loop on invalid syntax.

2008-05-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-postprocess-file-styles):
	Throw an error if c-file-style is set to a
	non-string.
	(c-neutralize-syntax-in-CPP): Optimize for speed.

2008-05-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-basic-syntax, CASE 5B.1):
	Fix off-by-1 error, comparing position
	of ':' with BOL.

2008-05-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi (Class Symbols): Correct a typo.

	* cc-fonts.el (c-font-lock-declarations):
	In "if (Bool *b = f())", fontify "Bool" as a
	type.
	Also enhance the commenting significantly.

2008-04-17  Alan Mackenzie  <bug-cc-mode@gnu.org>


	* cc-langs.el (c-type-decl-prefix-key): C++ bit: move
	"\(const\|throw\|volatile\)\>" nearer the start of the regexp, so that
	these keywords aren't wrongly matched as identifiers.

	* cc-fonts.el (c-font-lock-declarators): In (match-beginning 2), "2" ->
	"3", corresponding to the change in c-type-decl-prefix-key.
	(c-font-lock-maybe-decl-faces): Rearranged the header comments.

	* cc-engine.el (c-find-decl-spots): Rearranged the header comments.
	(c-forward-decl-or-cast-1): (i) In (match-beginning 2), "2" -> "3",
	corresponding to the change in c-type-decl-prefix-key.  (ii) Remove a
	check for a semicolon at the end of a function declaration: this causes
	C++ constructor declarations to be fontified before the semicolon is
	typed.

	* cc-defs.el (c-version): increment the version number to 5.31.6.

2008-04-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-modified-constant): new language constant:  matches, e.g.
	"L'a'".

	* cc-engine.el (c-beginning-of-statement-1): modify to handle "case L'a':".

	* cc-fonts.el (c-font-lock-complex-decl-prepare):
	Remove (most) c-type properties also
	from the last token _before_ the (font-lock) region, not just those
	actually inside it.

	Enhance some of the commenting.

2008-04-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/anoncvs.php, admin/compat.php, admin/index.php, admin/lists.php, admin/release.php:
	Update to current admin state.

2008-04-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi (c-offsets-alist):
	Correct typos ("c-set-offsets" -> "c-set-offset",
	twice).

2008-04-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-before-font-lock-function):
	Correct a typo in the doc string.

2008-04-05  Alan Mackenzie  <bug-cc-mode@gnu.org>


	* cc-engine.el, cc-mode.texi:


	* cc-cmds.el (c-defun-name, c-cpp-define-name): New commands, primarily to
	support (X)Emacs's C-x 4 a (`add-change-log-entry-other-window') and
	friends.

	* cc-langs.el (c-opt-cpp-macro-define-start): Add a regexp submatch to
	match the #define's name.

	* cc-mode.el (c-neutralize-syntax-in-CPP):
	Remove a superfluous right parenthesis.

	* cc-mode.texi, cc-engine.el:

	* cc-engine.el (c-in-knr-argdecl): In a suspected K&R region, scan at most
	20 brace/paren pairs.  This prevents a drastic slowdown in files (e.g.
	Emacs's lisp.h) where there are many consecutive declarations without a
	brace block.

	* cc-mode.texi ("Limitations and Known Bugs") Document this restriction.

	* cc-vars.el (c-constant-symbol):
	put `save-excursion' round this function.

2008-03-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-neutralize-syntax-in-CPP): Fix coding bug.

	* cc-langs.el (c-before-font-lock-function):
	Fix bug in doc-string, "c-old-LEN" ->
	"c-old-END".

2008-02-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-neutralize-syntax-in-CPP):
	Fix a bug on typing "#" at EOB.

2008-02-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Set of changes so that "obtrusive" syntactic elements in a C/C++/ObjC
	preprocessor line (e.g. an unbalanced string quote or unmatched paren) don't
	interact syntactically with stuff outside the CPP line.

	* cc-awk.el (c-awk-beyond-logical-line, c-awk-old-ByLL): Replace
	c-awk-end-of-logical-line and c-awk-old-EoLL to solve an off-by-one bug.

	(c-awk-record-region-clear-NL): Replaces c-awk-before-change, with a bit
	of refactoring.

	(c-awk-extend-and-syntax-tablify-region): Takes some of the functionality
	of c-awk-advise-fl-for-awk-region, which has been refactored away.

	* cc-defs.el (c-clear-char-property-with-value-function)
	(c-clear-char-property-with-value): New function and macro which remove
	text-properties `equal' to a supplied value.

	* cc-engine.el: Comment about text properties amended.

	* cc-fonts.el (c-cpp-matchers): Make it put regexp parens around
	"error\\|warning".

	* cc-langs.el (c-get-state-before-change-function)
	(c-before-font-lock-function, c-anchored-cpp-prefix): New language
	variables.
	(c-cpp-message-directives): Handle "#warning" in C, C++ and ObjC.

	* cc-mode.el (c-basic-common-init): C and ObjC now use
	syntax-table text properties.
	(c-common-init): Call language specific before/after-change functions at
	mode initialisation.
	(c-new-BEG, c-new-END, c-old-BOM, c-old-EOM): New variables.
	(c-extend-region-for-CPP, c-neutralize-CPP-line)
	(c-neutralize-syntax-in-CPP): New functions.
	(c-before-change, c-after-change): Call the new language specific change
	functions defined in cc-langs.el.
	(c-advise-fl-for-region): New macro.
	(awk-mode): Remove AWK specific stuff which has been refactored into
	language independent stuff.

2008-02-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-specifier-key):
	Exclude "template" from this regexp; to anchor the "{" of a
	template function correctly on "template", not the following "<".

	* cc-engine.el (c-guess-basic-syntax, CASE 5A.5):
	Anchor the "{" of a template function
	correctly on "template", not the following "<".

	(c-guess-basic-syntax, CASE 5H): prevent a macro call inside a struct
	being recognised as a K&R argument.

	* cc-align.el, cc-awk.el, cc-cmds.el, cc-defs.el, cc-styles.el:
	Correct typos, remove WS, rephrase doc-strings/comments a little.

2008-01-26  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-save-buffer-state):
	Bind buffer-file-name and buffer-file-truename to
	nil, to prevent primitives generating "buffer is read only" messages.

2008-01-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-vars.el (defcustom-c-stylevar):
	New version by Thien-Thi Nguyen which gets rid of
	ugly nested backquotes.

	* tests/000tests.el (do-all-tests, do-one-test):
	bind 'enable-local-variables so as to get
	round GNU Emacs's tighter restrictions on file local variables.

	* cc-awk.el:
	awk-escaped-nls*: Use eval-and-compile to avoid compilation error.

2007-11-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/release.php: Explain about version 5.31.4.

2007-09-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/links.h:
	At an extra link to directory "manual".  Rename "Documentation" to
	"Manual", clarifying with "(html)" and "(info/PS/DVI)".

2007-08-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	With two "namespace"s on the same line, the next line's syntactic context
	(i) gets 2 "innamespace" elements, not 1 defun-block-intro + 1
	innamespace;
	(ii) the anchor points are now those of the namespace constructs, not
	just the line's indentation.

	* cc-langs.el (c-other-decl-block-key-in-symbols-alist): a new language
	variable, an alist with elements like ("namespace" . innamespace).

	* cc-engine.el (c-brace-anchor-point): New function.  (c-add-stmt-syntax):
	Give accurate anchor points for "namespace", "extern" etc., rather than
	BOI.  Fix addition of spurious syntactic-symbol 'defun-block-intro,
	replacing it with 'innamespace, etc.

2007-08-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	"Mailing Lists and Bug Reports": correct "-no-site-file" to
	"--no-site-file".

2007-07-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-langs.el, cc-mode.el:
	Move macro call `c-make-emacs-variables-local' from
	c-init-language-vars-for to c-make-init-lang-vars-fun, so that it works
	for derived modes.

2007-07-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Makefile:
	Rename target "html" to "html-raw".  New "html" fixes up links to the
	Emacs/Elisp manuals, pointing them into http://www.gnu.org.

	* 2www.gnu.org.sh: Add a #! line, and a directory parameter.

2007-07-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* 2www.gnu.org.sh:
	The manual has cross references to the Emacs and Elisp manuals.  In the
	HTML manual, these became broken links.  This script directs those links
	to the right places in http://www.gnu.org.  (It also removes a link to a
	manual which doesn't seem to exist online.)

2007-07-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* tests/access-labels-qt-1.face, tests/class-1.face, tests/class-23.face, tests/class-4.face, tests/class-9.face, tests/interface-1.face, tests/switch-1.face, tests/switch-10.face, tests/switch-12.face, tests/switch-14.face, tests/switch-15.face, tests/switch-3.face, tests/templates-1.face, tests/templates-2.face, tests/templates-3.face, tests/templates-4.face, tests/templates-6.face, tests/union-2.face:
	Update 18 files.face to reflect the change in cc-fonts.el
	V5.205.2.4/5.209: Keywords which are terminated by a colon (e.g.
	default:, public:) and the analogous Objective-C keywords are now
	fontified with font-lock-keyword-face.

2007-07-05  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-version):
	Increase to 5.31.5.  (5.31.4 was the version in Emacs 22.1.)

2007-07-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-vars.el:
	Repair the customization routines which handle alists so that it is
	possible to insert entries for those keys which are valid, yet aren't
	currently in the alist.

	(c-constant-symbol): New defun which supersedes c-const-symbol.
	(c-indent-comment-alist, c-hanging-braces-alist, c-hanging-colons-alist,
	c-offsets-alist): Replace c-const-symbol by c-constant-symbol.

	Make the syntactic symbol arglist-cont-nonempty a legitimate key in
	c-hanging-braces-alist.

	* cc-cmds (c-brace-newlines): Amend.

	* cc-styles.el (c-style-alist): Extend all standard styles to include the
	new element.

	* cc-vars.el (c-hanging-braces-alist): Amend the default value, and the
	customization form.

	* cc-mode.el: c-before-change: Replace a "1" with "(point-min)".

	* cc-cmds.el, cc-mode.el: cc-cmds.el (c-electric-slash):

	* cc-mode.el (c-remove-any-local-eval-or-mode-variables):
	Replace wrong uses of `kill-...' (which added spurious entries to the
	kill ring) by `delete-....'.

	* cc-cmds.el (c-in-function-trailer-p):
	Fix this: when a function return type contains
	"struct", "union", etc.  c-end-of-defun goes too far forward.

	* cc-subword.el (c-capitalize-subword):
	More closely mimic the behavior of `capitalize-word'.
	Do not move point with a negative argument.  Based on tiny change by Paul
	Curry.

	* cc-subword.el (c-downcase-subword, c-upcase-subword):
	Don't move point if ARG is
	negative.  Patch by Paul Curry.

	Changes to make `narrow-to-defun' and `mark-defun' work properly
	in CC Mode:

	* cc-defs.el (c-beginning-of-defun-1):

	* cc-cmds.el (c-beginning-of-defun, c-end-of-defun):
	Bind beginning/end-of-defun-function to nil around calls to
	beginning/end-of-defun.

	* cc-langs.el (beginning-of-defun-function,
	end-of-defun-function): New c-lang-setvar's.

	* cc-awk.el (c-awk-beginning-of-defun): Add "(or arg
	(setq arg 1))" to enable non-interactive call.

	* cc-cmds.el (c-end-of-defun):
	Tidy up, to eliminate byte-compiler warning "value
	unused" in Emacs 22.

2007-07-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-electric-paren):
	Fix space-before-funcall clean-up: only insert space
	when on identifier, etc.  Patch by David Hansen.

	Fix fontification of labels, and other things with ":".

	* cc-engine.el (c-forward-label): The function now
	returns 'goto-target, 'qt-2kwds-colon, 'qt-1kwd-colon, as well as the
	former t.

	* cc-fonts.el (c-font-lock-declarations): Interpret the
	new return code from c-forward-label, fontifying tokens properly.  Add
	some general comments throughout the file.

	* cc-vars.el (c-special-indent-hook): Amend doc-string to mention
	c-syntactic-indentation.

	* cc-cmds.el (c-forward-to-nth-EOF-}): Fix EOB bug.

	* cc-mode.el (c-make-emacs-variables-local):
	Use `mapcar' rather than `mapcan' to
	silence compiler warning in GNU Emacs 22.

	Remove stale tokens from `c-found-types' cache.

	* cc-engine.el: (c-partial-ws-p, c-unfind-type, c-trim-found-types): New
	functions.

	* cc-mode.el:  (c-unfind-enclosing-token, c-unfind-coalesced-tokens,
	c-before-change): New functions.  (c-maybe-stale-found-type): New
	variable.

2007-06-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/lists.php: Update the address of the cc-mode-help mailing list.

2007-03-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:

	* cc-styles.el: cc-align.el, cc-styles.el: New line-up function,
	c-lineup-gnu-DEFUN-intro-cont, for the DEFUN macro in the Emacs C
	sources.  Only used in "gnu" style.


	* cc-align.el: Correct a logistical error in the previous patch.

	* cc-align.el: cc-align.el, cc-styles.el: New line-up function,
	c-lineup-gnu-DEFUN-intro-cont, for the DEFUN macro in the Emacs C
	sources.  Only used in "gnu" style.

	* cc-compat.el, cc-langs.el, cc-menus.el, cc-styles.el, cc-vars.el, cc-align.el, cc-awk.el:
	Update the copyright statements, correct some typos, remove silly WS,
	improve a few comments.

2007-02-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-menus.el, cc-styles.el, cc-vars.el, cc-align.el, cc-awk.el, cc-compat.el, cc-langs.el:
	Update the copyright statements, correct some typos, remove silly WS,
	improve a few comments.

	* cc-mode.texi: Correct lots of typos.
	("Getting Started"): Change a sentence to the conditional.
	("Movement Commands"): Add missing (@code{c-beginning/end-of defun}).
	("Clean-ups"): Add an example for inserting a clean-up into
	c-cleanup-list.

	* cc-mode.el (c-basic-comment-init):
	Don't set open-paren-in-column-0-is-defun-start
	to nil any more.  Discussion in emacs-devel showed this was
	counter-productive.

	* cc-fonts.el: Added comments to c-font-lock-complex-decl-prepare,
	c-font-lock-<>-arglists, c-font-lock-declarations, c-font-lock-c++-new,
	explaining that they get called as font-lock "FUNCTION"s; to
	c-font-lock-declarations (a c-lang-defconst) explaining that it dumps
	these functions to c-matchers-3.

	* cc-engine.el (c-beginning-of-current-token):
	For no movement, return NIL, not 0.
	(c-in-knr-argdecl): Fixed, so that it doesn't get confused by "[]" when
	doing a C-M-a.

	* cc-defs.el (c-go-list-forward, c-go-list-backward): New macros.

	* cc-cmds.el (c-where-wrt-brace-construct):
	correct the handline of K&R regions; C-M-a
	was fouling up in them.
	(c-indent-line): Change the notion of "whitespace" used for <tab>, so
	that a ^L doesn't get swallowed.
	(c-mask-paragraph): Correct the handling of unclosed C-style comments,
	(for when auto-fill-mode is enabled).
	(c-indent-new-comment-line): With M-j in an empty C-style comment,
	correct the final position of point.

2006-11-12  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Fix clean-up space-before-funcall so that it doesn't split the identifer
	from the parentheses in "#define foo(..)".

	* cc-langs.el (c-opt-cpp-macro-define-id): new language variable.

	* cc-engine.el (c-forward-over-cpp-define-id): new function.

	* cc-cmds.el (c-electric-paren): Amend the function.

2006-11-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* README: Tell XEmacs users they need the "advice" package.

	* tests/access-labels-qt-1.res, tests/bracelist-11.res, tests/comments-4.res, tests/macro-3.res, tests/macro-7.res, tests/macro-8.res, tests/statement-15.res, tests/top-4.res:
	Correct the syntactical analysis of subsequent macro continuation lines.
	They are now never 'cpp-define-intro'.

	* tests/macro-23.c, tests/macro-23.res: New file.

	* tests/macro-23.c, tests/macro-23.res:
	New test case for plain statements as the continuation lines of a macro.

	* tests/macro-27.c, tests/macro-27.res:
	A new test case for a wierd mixture of invalid syntax with CPP, labels,
	and an escaped newline.

	* tests/macro-27.c, tests/macro-27.res: New file.

	* cc-engine.el:
	(i) (c-guess-basic-syntax, case 5N): Check the format of c-state-cache is
	valid for an optimisation before using it.
	(ii) (c-guess-basic-syntax): New case 5Q "we are at a statement within a
	macro".  Other changes so that only the first continuation line in a
	macro gets the symbol `cpp-define-intro', the others get `statement', or
	whatever.

	* cc-mode.texi ("Limitations and Known Bugs"):
	Document problems with eval-after-load
	and a workaround.

2006-07-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	Introduce macro c-lang-setvar (sister to c-lang-defvar) to set standard
	Emacs variables (like comment-start) to language dependent values, yet
	without spuriously "defvar"ing them.

	* cc-langs.el (c-emacs-variable-inits): new variable.
	(c-lang-setvar): new macro.
	(c-make-init-lang-vars-fun): Use the initialization forms in
	c-emacs-variable-inits in addition to those in c-lang-variable-inits.
	(comment-start, comment-end, comment-start-skip): Change these from
	c-lang-defvar's to c-lang-setvar's

	* cc-mode.el (c-make-emacs-variables-local): new macro, which calls
	make-local-variable on the elements of c-emacs-variable-inits.
	(c-init-language-vars-for): Call this macro.

2006-07-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el, cc-mode.texi:

	* cc-mode.texi ("Filling and Breaking"): Amend the doc for
	c-context-line-break.

	* cc-mode.texi, cc-cmds.el:

	* cc-cmds.el (c-context-line-break): When invoked within a string, preserve
	whitespace.  Add a backslash only when also in a macro.

	* cc-mode.texi ("Filling and Breaking"): Amend the doc for
	c-context-line-breaak.

2006-07-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el: cc-defs.el.  Correct typos.


	* cc-awk.el, cc-fonts.el: Move awk-font-lock-keywords from cc-fonts.el back
	to cc-awk.el to eradicate an eval-after-load, at the request of RMS.

2006-07-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-context-line-break): don't indent the new line after an
	escaped EOL in a string.

2006-07-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* tests/label-10.c, tests/label-10.res:
	label-10.{c,res}: Recognise "foo:" as a label when it directly follows "else",
	"do", ....

	* tests/label-10.c, tests/label-10.c~, tests/label-10.res: New file.

	* tests/label-10.c, tests/label-10.c~, tests/label-10.res:
	label-10.{c,res}: Recognise "foo:" as a label when it directly follows "else",
	"do", ....

	* cc-engine.el (c-forward-label): Recognise "foo:" as a label when it
	directly follows "else", "do", ....

2006-07-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* tests/templates-18.cc, tests/templates-18.res: New file.

	* tests/templates-18.cc, tests/templates-18.res:
	templates-18.{cc,res}: tolerate empty angle brackets (as
	seen in "explicit specialisations" of templates).


	* cc-engine.el (c-looking-at-decl-block): tolerate empty angle brackets (as
	seen in "explicit specialisations" of templates).

2006-05-16  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/anoncvs.php, admin/links.h:
	Update the CVS server name to "cc-mode.cvs.sourceforge.net".

	* admin/anoncvs.php, admin/links.h:
	Update the CVS server to "cc-mode.cvs.sourceforge.net".

2006-05-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/anoncvs.php:
	Update the CVS host (following a SourceForge upgrade).

2006-04-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi, cc-vars.el:

	* cc-vars.el (c-indentation-style): Mention c-file-style in the doc-string.

	* cc-mode.texi ("Choosing a Style"): Mention c-file-style.


	* cc-cmds.el (c-mask-paragraph): Fix for C comments, when the comment ender
	looks like "=========*/" and is alone on its line.


	* cc-langs.el, cc-engine.el: Correct the spelling of
	c-opt-op-identiTier-prefix, t -> f.  Leave an alias for the old name.

	* cc-mode.texi, cc-mode.el:

	* cc-mode.el: Bind C-M-a and C-M-e to c-\(beginning\|end\)-of-defun by
	default.

	* cc-mode.texi ("Movement Commands", "Sample .emacs File"): Document this.


	* cc-align.el, cc-styles.el: New line-up function,
	c-lineup-gnu-DEFUN-intro-cont, for the DEFUN macro in the Emacs C
	sources.  Only used in "gnu" style.

2006-04-14  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/release.php:
	Correct a link from http://download.sourceforge.net/.... to
	http://PRdownloadS.sourceforge.net/...

	* cc-cmds.el (c-electric-slash):
	Extend the handling of clean-up comment-close-slash
	also to work when there's a comment terminator on the line.
	(c-beginning-of-defun, c-end-of-defun): Refactor and optimise these for
	large arg - only take account of top level {..}, except for initial and
	final adjustments.  M-- C-M-[ae] now go to the right defuns when the
	starting point is between defuns.  They use the four new functions:
	(c-in-function-trailer-p, c-where-wrt-brace-construct,
	c-backward-to-nth-BOF-{, c-forward-to-nth-EOF-}): new functions to
	support c-\(beginning\|end\)-of-defun.

	* cc-engine.el (c-forward-label):
	Analyze ":" expressions more rigorously, to exclude
	bit-field specifiers from being classed as labels.
	(c-forward-label): When analyzing a ":" within a macro, be careful about
	using c-forward-syntactic-ws at the macro beginning.
	(c-beginning-of-decl-1): Whilst searching for "=" as evidence of a stmt
	boundary, check for "operator=", etc.

2006-04-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* tests/access-labels-qt-1.cc, tests/access-labels-qt-1.face, tests/access-labels-qt-1.res:
	Jazz up the QT "slots:" declarations by inserting comments and macros
	into them.

	* cc-mode.texi ("Other Commands"):
	Move c-set-style (C-c .) here from "Choosing a
	Style".
	("Styles"): Add @dfn{style}.

	* Makefile (docs: target):
	Add a line to build cc-mode.XEMACS.info.tar.gz.

	* ChangeLog: Correct a typo.

2006-02-19  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-emacs-features): Don't assume point-min==1.

	* NEWS, cc-cmds.el, cc-mode.el, cc-mode.texi:
	Rename c-hungry-backspace to c-hungry-delete-backwards, at the request of
	RMS.  Leave the old name as an alias.

	* cc-awk.el: Correct a typo.

	* admin/changes-531.php:
	Rename c-hungry-backspace to c-hungry-delete-backwards, at the request of
	RMS.  Leave the old name as an alias.

	* cc-mode.texi:
	(i) Correct the definition of c-beginning-of-defun, to include the
	function header within the defun.
	(ii) Two minor amendments from Savannah.

	* cc-fix.el:
	In the test for a broken (XEmacs) font-lock-compile-keywords, exclude GNU
	Emacs, whose CVS version would now signal an error.

	* cc-fix.el, cc-guess.el, cc-lobotomy.el, cc-styles.el, cc-subword.el, cc-vars.el, cc-align.el, cc-awk.el, cc-bytecomp.el, cc-cmds.el, cc-compat.el, cc-defs.el, cc-engine.el, cc-fonts.el, cc-langs.el, cc-menus.el, cc-mode.el:
	(i) Add 2006 to the copyright statement.
	(ii) Correct a typo in cc-mode.el.

	* cc-mode.texi: (i) Add 2006 to the copyright.
	(ii) Correct two typos.

	* cc-defs.el: Update the version string to "5.31.4".

2006-02-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/index.php, admin/release.php: Update for release 5.31.3.

	* ChangeLog: Fixed last minute bug in cc-mode.el.

	* cc-mode.el (c-postprocess-file-styles):
	bind inhibit-read-only to t, around the call
	to c-remove-any-local-eval-or-mode-variables, so that it works on a RO
	file.

2006-02-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* ChangeLog: Update for release 5.31.3.

2006-02-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Release 5.31.3

2006-02-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-postprocess-file-styles): bind inhibit-read-only
	to t, around the call to
	c-remove-any-local-eval-or-mode-variables, so that it works on a
	RO file.

2006-02-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-emacs-features): Don't assume point-min==1.

	* cc-awk.el: Correct a typo.

2006-02-15  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* admin/changes-531.php, cc-mode.texi, NEWS, cc-cmds.el,
	cc-mode.el: Rename c-hungry-backspace to
	c-hungry-delete-backwards, at the request of RMS.  Leave the old
	name as an alias.

2006-02-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	(i) Correct the definition of c-beginning-of-defun, to include the
	function header within the defun.
	(ii) Two minor amendments from Savannah.

	* cc-fix.el: In the test for a broken (XEmacs)
	font-lock-compile-keywords, exclude GNU Emacs, whose CVS version
	would now signal an error.

2006-02-10  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fix.el, cc-guess.el, cc-lobotomy.el, cc-styles.el,
	cc-subword.el, cc-vars.el, cc-langs.el, cc-menus.el, cc-mode.el,
	cc-fonts.el, cc-bytecomp.el, cc-cmds.el, cc-compat.el, cc-defs.el,
	cc-engine.el, cc-awk.el, cc-align.el:
	(i) Add 2006 to the copyright statement.
	(ii) Correct a typo in cc-mode.el.

	* cc-mode.texi: (i) Add 2006 to the copyright.
	(ii) Correct two typos.

2006-02-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el: Update the version number to 5.31.3.

2006-02-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-electric-brace): Fix clean-up brace-else-brace
	(error due to mbeg, mend being undefined).

2006-02-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el: File Local variables: Solve the problem where both
	`mode' and c-file-offsets are specified: `mode' will overwrite
	c-f-o's settings:
	(c-remove-any-local-eval-or-mode-variables): new function.
	(c-postprocess-file-styles): call the above new function, within
	c-tentative-buffer-change, to splat `mode' and `eval' before the
	second hack-local-variables.

2006-01-31  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el:
	[Alternative patch to GNU Emacs: cc-engine.el V 1.45]
	(c-after-change): Protect the match data with save-match-data.  It
	was getting corrupted by c-after-change-check-<>-operators.

	* cc-defs.el: [3 Patches from GNU Emacs: savannah V 1.3[678]:
	(top level): Check for a buggy font-lock-compile-keywords ONLY in
	XEmacs.  GNU Emacs 22 now has a check which would throw an error
	here.
	(c-emacs-features): Use (point-min) and (point) rather than
	hard-coded 1, in case the buffer is narrowed.

	* cc-awk.el (c-awk-after-change): Protect the match data with
	save-match-data.  It was being corrupted when Font Lock was not
	enabled.

2006-01-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* ChangeLog: Update for release 5.31.2.

2006-01-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Release 5.31.2

2006-01-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi (Comment Commands): State that C-u M-; kills any
	existing comment.
	(Electric Keys): Add a justification for electric indentation.
	(Hungry WS Deletion): Clear up the names and complications of the
	BACKSPACE and DELETE keys.

2006-01-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-basic-common-init): Concatenate the minor mode
	indicators directly onto mode-name, removing c-submode-indicators.
	Sometimes, c-s-i got separated from the mode name on the mode
	line.

	* cc-langs.el (c-mode-menu): Add menu items for Electric Mode and
	Subword Mode.

	* cc-engine.el: Concatenate the minor mode indicators directly
	onto mode-name, removing c-submode-indicators.  Sometimes, c-s-i
	got separated from the mode name on the mode line.
	(c-beginning-of-statment-1): Distinguish real labels ("case 1:" or
	"foo:") from non-labels ("public:").
	(c-forward-objc-directive): Replace c-forward-token-2 with crude
	coding; c-f-t-2 doesn't move over a token at EOB.

	* cc-defs.el (c-version): Update version number to 5.31.2

	* cc-cmds.el (c-update-modeline): Concatenate the minor mode
	indicators directly onto mode-name, removing c-submode-indicators.
	Sometimes, c-s-i got separated from the mode name on the mode
	line.
	(c-electric-brace, c-electric-semi&comma, c-electric-colon):
	Correct doc-strings: "/ln" -> "/la".

2006-01-17  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-make-init-lang-vars-fun): Improved the error
	message when there's an evaluation error to show whether it's
	loaded from source or not.
	(c-filter-ops): Made it available at runtime too to work when
	`c-make-init-lang-vars-fun' needs to evaluate from source.

2005-12-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Release 5.31.1

2005-12-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* NEWS: Correct the spelling of Masatake YAMATO's name (with
	apologies to him).

2005-12-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-version): <- 5.31.1

	* cc-defs.el: Restore the (correct) (c-external-require 'cl).

2005-11-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* Release 5.31.

2005-11-30  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Spelling and minor typographical changes.

2005-11-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-align.el, cc-awk.el:  Spelling corrections.

	* cc-cmds.el (c-electric-paren): Only call the
	`blink-paren-function' for a CLOSE parenthesis.

	* cc-defs.el: Change "(cc-external-require 'cl)" to
	"(eval-when-compile (require 'cl))".  (The change came from
	savannah - I don't understand it.)

	* cc-engine.el: Add an autoload to c-guess-basic-syntax (From
	savannah.)
	
	* cc-langs.el: Add "(cc-external-require 'cl)".

	* cc-mode.el (c-font-lock-init): "Add (font-lock-lines-before
	. 1)".
	
	* cc-subword.el: Add a dummy `c-subword-mode' for Emacsen which
	lack `define-minor-mode'.  (Currently Emacs <21.  We might do this
	function properly in the future).

2005-11-28  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el, cc-defs.el, cc-styles.el, cc-vars.el: New macros
	c-sentence-end and c-default-value-sentence end, to cope with
	Emacs 22's new function `sentence-end'.

2005-11-26  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-show-syntactic-information): Solved the compat
	issue using `c-put-overlay' and `c-delete-overlay'.

	* cc-defs.el (c-put-overlay, c-delete-overlay): New compat macros
	to handle overlays/extents.

2005-11-25  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-fix.el: Add definitions of the macros push and pop (for GNU
	Emacs 20.4)

	* cc-defs.el:
	(i) Load cc-fix.elc for `push' and `pop' (for GNU Emacs 20.4)

	* cc-cmds.el (c-show-syntactic-information): change the
	highlighting mechanism so it will work in XEmacs too.

	Remove several unused dynamic bindings.

	* cc-defs.el: Insert c-int-to-char.

	* cc-langs.el (c-nonsymbol-token-char-list): Insert a call to the
	new macro c-int-to-char.  This solves XEmacs's regarding
	characters as different from integers.

2005-11-25  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-make-syntactic-matcher): New internal helper.

	(c-cpp-matchers, c-basic-matchers-before): Use the `eval'
	construct to make the indirect face lookup work in XEmacs.

	(c-cpp-matchers): Append the negation char face to the existing
	fontification, so that the cpp face doesn't disappear.  Use
	`c-make-syntactic-matcher' to avoid negation chars in comments and
	strings.

2005-11-24  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-negation-char-face-name): New variable to map to
	`font-lock-negation-char-face' in emacsen where it exists.

2005-11-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el: Bind c-subword-mode to C-c C-w.

	* cc-mode.texi:
	(i) Document the binding C-c C-w, in "Minor Modes" and in "Subword
	Movement".
	(ii) Mark c-\(forward\|backward\)-into-nomenclature as superseded
	by c-subword-mode.
	(iii) "Config Basics": change the troublesome "@itemize @w" to
	"@itemize @asis".
	(iv) Eliminate the "@defvr {LIST}" construct in "Adding Styles".
	Bring descriptions of subsidiary matters into the definition of
	the style description by shifting an "@end".

2005-11-22  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi, cc-subword.el, cc-cmds.el, cc-mode.el: Rename
	"c-subword-move-mode" as "c-subword-mode".

	* cc-mode.texi, cc-subword.el: cc-subword.el: In
	c-forward-subword-internal, check that the regexp doesn't match a
	null string.  This can happen, e.g., in Info Mode, where ' has the
	syntax of a word constituent.

	cc-mode.texi:
	(i) "Subword Movement": Say that subword-move-mode is available in
	non-CC Modes.
	(ii) "Config Basics": Add a recommendation to beginners to use the
	top-level setq mechanism.
	(iii) "Config Basics": Deobfuscate the description of top-level
	setq's.

	* cc-mode.texi:
	(i) Add a description of the various build commands
	(e.g. makeinfo), as supplied by Robert Chassell.
	(ii) Move description of `comment-region' from "Other Commands" to
	"Comment Commands".
	(iii) Remove C-c C-y (which used to be bound to
	c-toggle-hungry-state).
	(iv) Added a @footnote about the change of the binding C-c C-d.
	(v) Reinstated the description of `c-toggle-auto-hungry-state'.

	* cc-mode.el: Remove the binding C-c C-y for c-toggle-hungry-state

	* cc-cmds.el: Reinsert c-toggle-auto-hungry-state (but with no
	binding).

2005-11-21  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el: Added tty suitable bindings for C-c <delete> and C-c
	C-<delete>.  (To the c-hungry- delete functions).

2005-11-21  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-mode.el: Added autoload directive for `c-subword-move-mode'
	for use in older emacsen.

2005-11-20  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el:
	(i) Insert a binding for C-c C-backspace into
	c-bind-special-erase-keys which works in TTYs.
	(ii) Make sure that when file styles are used, any explicitly
	given style variables take priority over those in the style.  Do
	this by calling `hack-local-variables' a second time.

	* cc-vars.el: Add language specific customization widgets for AWK
	to c-doc-comment-style, c-require-final-newline and
	c-default-style.  Add a defcustom for awk-mode-hook.  Give
	c-syntactic-element and c-syntactic-context doc-strings by
	directly setting their `variable-documentation' propery.  This
	allows Emacs 22.1 to read these with C-h v.

	* cc-awk.el: Apply a tidy-up patch (from Stefan Monnier).

2005-11-20  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Mention gtkdoc.

	* cc-mode.texi: The concept index also contains the keys. Make
	that more obvious so that the keys are found more easily.

	* cc-mode.texi: Updated the Hungry WS Deletion section on the
	details about the C-c C-<backspace> bindings etc.

	* cc-mode.texi: Added a section about the subword minor mode.

	* cc-fonts.el, cc-vars.el (gtkdoc-font-lock-doc-comments,
	gtkdoc-font-lock-doc-protection, gtkdoc-font-lock-keywords):
	GtkDoc patterns contributed by Masatake YAMATO.

	(c-doc-comment-style): Made GtkDoc default in C mode.

2005-11-19  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-mode.el: Fixed key bindings for C-c C-<backspace> and C-c
	C-<delete>.

	(c-bind-special-erase-keys): New function for use on
	`normal-erase-is-backspace-hook' to bind C-c C-<delete> correctly.

	* cc-cmds.el (c-hungry-delete): New function to fix <delete> key
	behavior in XEmacs according to `delete-forward-p'.
	C.f. `c-electric-delete'.

2005-11-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: DVI stuff: Remove the quotes from "GNU Emacs
	Manual" and friends.  Complete several cross references with their
	fifth parameter (the name of the printed manual).

	"Indentation Commands": Tidy up `c-indent-command', putting the
	variables `c-tab-always-indent' and `c-insert-tab-function' inside
	its description.  Inserted some "printed manual names" into cross
	references where they were missing.  Move description of
	`indent-for-comment' into ...

	"Comment Command": A new @section under "Commands"; it contains
	the description of `indent-for-comment'; this was taken out of
	"Indentation Commands".  Add GNU Emacs's new name `comment-dwim'
	for this function.

	"Sample .emacs File": Change "@example" to "@verbatim" so that the
	text isn't indented.  Reorder the Lisp forms.

2005-11-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: "Configuration Basics": Add a note that ".emacs"
	means "whatever initialization file you fancy".  Also, another
	note that the mode hooks are good places to put personal
	preferences.

	"Performance Issues": Remove the recommendation to put defun
	braces at column 0, replacing it with a historical remark.

	"Limitations and Known Bugs": State that C++ templates aren't yet
	handled fully.

2005-11-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Renamed @chapter "Getting Connected" to "Getting
	Started" and @chapter "Config Strategies" to "Config Basics".

	"Getting Started": Added "quick fix" configurations for four of
	the most common requests (c-basic-offset, c-set-style,
	c-electric-mode, <RET> should indent NL).

	"FAQ": Permuted the questions a little.  Added "How can I change
	the indent level from 4 spaces to 2 spaces?".  Added several cross
	references.

2005-11-05  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el: Move c-toggle-hungry-state from "C-c C-d" to "C-c C-y".  Give
	  c-hungry-backspace and c-hungry-delete-forward permanent key bindings.

	* cc-mode.texi: Document the new state of affairs: Nodes changed: "Minor
	  Modes", "Hungry WS Deletion", "Sample .emacs File"

	* cc-mode.texi:
	"Style Variables": New @section explaining what style variables are and
	  how to set them.
	"Permanent Customization": Removed this @section, since its contents have
	  been moved elsewhere.
	"c-offsets-alist": New @section

	Removed much commented out material, including @examples in the Line-Up
	  sections.

	"Config Strategies": (i) Added a summary of style variables; (ii)
	  Corrected the priority of settings made by "File Local Variables";
	  (iii) Clarified and corrected how top-level `setq's interact with
	  styles; (iv) Added a terse but accurate description of the "user"
	  style.
	"Style Variables": Took over most of the stuff from "Styles", its
	  parent.  Added a @pxref to each item in the list of style variables.
	"Built-in Styles": Corrected the description of the "user" style.  Other
	  styles DO NOT inherit from it - they inherit from the factory defaults
	  in c-fallback-style.
	"Adding Styles": Clarification of inheritance from c-fallback-style.

	"Hanging Braces": Replace a tedious flowchart of what CC Mode does, with
	  a description of how to go about configuring the thing.
	"Custom Braces": Move description of c-syntactic-context to near the
	  top of the node, and note the other three circumstances it gets bound
	  (together with @xrefs).
	"Hanging Semicolons and Commas": Note that c-syntactic-context is bound.

	"Indentation Engine Basics": Clarify first stage of indentation process.
	"Syntactic Symbols" (and sub-nodes): Note the syntactic symbols which
	  don't have and anchor point, or have additional info in a syntactic
	  element.

	"Customizing Indentation": Stuff about c-offsets-alist has been moved to
	  its own new @section.
	"Line-Up Functions": Add a mention of the calling convention together
	  with a pointer to "Custom Line-Up".
	"Other Indentation": Clarify the whole @section.  State that File local
	  variables take precedence over all else, even settings in hooks.

2005-11-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-mask-paragraph): Remove the "(if t ..." construct
	which was experimentally inserted into V 5.314 (2005-08-18) to
	minimise the patch size by not changing the indentation level.

2005-11-03  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-electric-semi&comma): Bind c-syntactic-context for
	calls to "criteria functions", for consistency with other calls to
	user functions.

2005-10-31  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-indent-command): expunge use of
	`current-prefix-arg', since this might be the prefix arg to a
	command which calls c-indent-command as a function.  Change the
	interactive spec from "p" to "P".

2005-10-04  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	"Minor Modes": Document the command c-toggle-syntactic-indentation.
	"Analysis": Formalise the description of
	  c-show-syntactic-information to a quasi-@defun form.  Describe the new
	  feature of highlighting anchor positions.
	Make sure there's a blank line at the top of each node.

	* cc-mode.texi: "Indentation Engine Basics":
	(i) Rearrange the paragraphs more logically;
	(ii) make @dfn's out of "syntactic symbol", "anchor position" and
	  "offset(s)".
	(iii) Make an @enumeration out of the two-step indentation process.
	(iv) Add a paragraph motivating c-syntactic-indentation, complete with a
	  reference to "Config Strategies".

2005-10-02  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: "Custom Line-Up":
	(i) Increase the concision of the page.
	(ii) Comment out the example.  (Maybe this should go into its own
	  @subsection.)
	(iii) Specify precisely the conventions for a line-up function, in
	  particular, that point may not be moved.
	(iv) Add in the suggestion that c-special-indent-hook may sometimes be a
	  better idea than line-up functions.
	There are minor consequential changes on other pages.

2005-09-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	(i) Partition the over-large @section "Line-Up Functions".
	(ii) Expand the description of c-special-indent-hook.
	(iii) Add cross references between "Other Indentation" and "Custom
	  Line-up", emphasizing that c-special-indent-hook functions and line-up
	  functions are alternatives.

2005-09-17  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-styles.el: Amend the doc-string of c-set-style, in reponse to
	a report from Joseph Kiniry <kiniry@acm.org> that it was difficult
	to understand.

2005-09-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-on-identifier): Fixed bug when at the first char
	of an identifier.

	* cc-engine.el (c-on-identifier): Handle the "operator +" syntax
	in C++.

2005-09-09  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi ("Syntactic Analysis"): Minor amendments.
	("Syntactic Symbols"): Partition this monster into a section with
	  thirteen subsections, each of which (more or less) illustrates a coherent
	  grouping of symbols.
	  Replace the spurious references to substatement-block-intro with
	  statement-block-intro.
	  Add @ssindex entries for those symbols missing them.

2005-09-08  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Some general tidying up and clarification.  Also:
	(Hooks):  mention c-special-indent-hook
	(FAQ): Commented out the question about M-[ae] going into blocks.

2005-08-29  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	55 Changes, great and small.  Most of them are minor linguistic
	improvements, clarifications, adding xrefs, bug fixes, or the like, but
	there are also several more notable changes:
	(i) "Config Strategies": State which setting takes precedence when
	  conflicting settings are made (e.g. both in a style and in a hook).
	(ii) "Config Strategies": Add a bit about "File Styles".
	(iii) "File Styles": Fleshed out this chapter quite a bit.
	(iv) "Mode Initialization": Removed this embryonic node (which was far
	  from complete or useful) and all references to it.

2005-08-18  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-mask-paragraph): correct, so that auto-fill
	doesn't split a c-comment's last word from a hanging "*/" when a
	space is typed between them after fill-column.

	cc-defs.el: New macro c-delete-and-extract-region.

2005-06-24  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-styles.el (c-set-style, c-setup-paragraph-variables): Abort
	the command if we're not in a CC Mode buffer.

2005-06-13  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-align.el (c-lineup-C-comments): Correct indentation with
	blank comment-prefix, and a blank line as the comment's second
	line.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-cpp-matchers, c-basic-matchers-before):
	Incorporated the patterns
	added in the Emacs development branch for the new Emacs 22 face
	`font-lock-negation-char-face'.

	# Also folded some long lines.

	* cc-fonts.el (c-invalid-face-name):
	Use "red1" instead of "red" since it stands out
	better in xterms and DOS terminals.

	# Not applicable in the development version since this face is simply
	# an inverted version of font-lock-warning-face.

	* cc-engine.el (c-literal-faces):
	Added `font-lock-comment-delimiter-face' which is
	new in Emacs 22.

	# NB: The new way to font lock comments in the development version of
	# Emacs causes massive breakage in the faces test suite.  000tests.el
	# needs to be amended.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi, cc-subword.el:
	Change the FSF's address in the copyright statement.  Incidentally,
	change "along with GNU Emacs" to "along with this program" where it occurs.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	Add documention for the new electric minor mode and finish that for clean-up
	comment-close-slash.  Tidy up the structure a bit, make some minor linguistic
	improvements.  In detail:

	Change "Clean-ups" from being a section of "Custom auto-newlines) to being its
	  own section, since it documents some stuff which is independent of
	  auto-nelines.
	Change "Auto-newlines" and "Hungry WS Deletion" from being subsections of
	  "Minor Modes" to their own sections, since they're to important to hide.
	  Move "Electric Keys" alongside them, since it now bears the same
	  relationship to "Minor Modes" as "Auto-newlines" and "Hungry WS .." do.
	"Indentation Commands":  Add a convenience description of standard (X)Emacs
	  C-j.
	"Minor Modes":
	  (i) Document the new "electric minor mode" with toggle C-c C-l, and the
	    coupling between it and c-toggle-auto-newline.
	  (ii) Remove the description of the defunct `c-toggle-auto-hungry-state'.
	  (iii) Update the description of the modeline flags.
	  (iv) Recast the node considerably in the process.
	"Electric Keys and Keywords":
	  (i) Add a note that electric minor mode needs to be enabled for (most of)
	    the stuff here to work.
	  (ii) Mention the new clean-up comment-close-slash.
	  (iii) Note the electric actions which don't need electric minor mode to be
	    enabled.
	"Sample .emacs File":  Replace c-toggle-auto-hungry-state with
	  c-toggle-\(auto-newline\|hungry-state\).
	"FAQ": Add an entry "How do I stop my code jumping all over the place when I
	  type?".

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el: Correct previous patch to c-toggle-auto-newline.

	* NEWS: Add an entry for the new clean-up `comment-close-slash'.

	* cc-mode.texi: Document the new clean-up `comment-close-slash'.

	* cc-cmds.el:
	Make C-c C-a (`c-toggle-auto-newline') forcibly enable c-electric-flag.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-vars.el, cc-cmds.el:
	New clean-up `comment-close-slash' on c-electric-slash: if enabled, typing `/'
	  just after the comment-prefix of a C-style comment will close that comment.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	Sync with Lute Kamstra's patch from emacs-devel to prevent a superfluous
	  cc-mode.ss index file being built with texi2dvi.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-basic-matchers-before, c-complex-decl-matchers):
	Fixed the
	"not-arrow-prefix" regexp used in Pike.

	* cc-langs.el (c-other-op-syntax-tokens): Only C++ has digraphs.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Resolve some CVS conflict markers.

	* cc-mode.texi:
	Custom Filling and Breaking:  State that c-comment-prefix regexp can be
	  an association list.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el, cc-langs.el, cc-engine.el (c-cpp-message-directives, c-cpp-include-directives, c-opt-cpp-macro-define, c-opt-cpp-macro-define-start, c-cpp-expr-directives):
	Introduced new
	language constants to control cpp syntax in a cleaner way.

	(c-cpp-expr-functions): Renamed from c-cpp-defined-fns.

	(c-cpp-matchers, c-forward-to-cpp-define-body): Use them.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-langs.el, cc-fonts.el (c-string-escaped-newlines, c-multiline-string-start-char):
	New language
	constants and variables to specify how newlines in string literals work.

	(c-font-lock-invalid-string): Use them.

	* cc-mode.texi:
	Removed hint that the one-liner-defun cleanup only would be
	useful/relevant in AWK mode.

	* cc-cmds.el (c-try-one-liner):
	Robustness fix if an unbalanced close brace is
	entered.  Optimization by avoiding going back over arbitrarily large
	blocks.  Removed hints that this function only would be
	relevant/useful in AWK.

	# I also got the chance to put in a clarifying comment in Alans code!
	# Whooho! :)

	(c-electric-brace): Indent syntactically after the cleanups since
	lineup functions might do it differently then.

	* cc-engine.el, cc-langs.el (c-opt-op-identifier-prefix):
	New language constant and variable.

	(c-just-after-func-arglist-p, c-after-special-operator-id,
	c-search-decl-header-end, c-inside-bracelist-p): Use it.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-basic-syntax):
	Handle operator declarations somewhat better
	in C++.

	# Full fix is in 5.31 only.

	* cc-align.el, cc-engine.el (c-after-special-operator-id):
	New helper to handle C++ operator identifiers.

	(c-lineup-topmost-intro-cont, c-just-after-func-arglist-p,
	c-guess-basic-syntax): Handle C++ operator identifiers in declarations.

	* cc-langs.el (c-assignment-operators):
	Added the trigraph version of ^= too.

	* cc-langs.el (c-assignment-operators):
	Added the trigraph version of |= in C++.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	"Advanced Customizations":  Finally remove the vestiges of this chapter.
	Resolve three other minor FIXMEs.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-declarators):
	Handle `c-decl-hangon-kwds' after the
	identifier name.

	* cc-engine.el (c-guess-basic-syntax):
	When deciding whether an arglist is
	"nonempty", ignore a comment after the open paren if it isn't followed
	by a non-comment token on the same line.

	* cc-engine.el (c-guess-basic-syntax):
	Case 4: Enable heuristics below the point to
	cope with classes inside special brace lists in Pike.

	* cc-engine.el:
	Reverted the attempt to clean up the handling of arglists since I've
	given up trying to get it to work in a somewhat compatible way.  It's
	simply too broken by design and has to be fixed in a new major
	version.

	The revert affects these revisions of cc-engine.el: 5.517 made
	2004-06-29 and 5.518 made 2004-09-26.  Exceptions are the utility
	functions `c-at-expression-start-p' and `c-at-statement-start-p',
	and the new flag to `c-looking-at-inexpr-block'.

	# In connection with this, the following tests are reverted:
	#
	# Tests changed 2004-06-29 in connection with 5.517:
	# tests/arglist-18.c: 1.3
	# tests/arglist-18.res: 1.5
	# tests/arglist-21.pike: 1.2
	# tests/arglist-21.res: 1.2
	# tests/arglist-3.cc: 1.4
	# tests/arglist-3.res: 1.10
	#
	# Tests changed 2004-09-26 in connection with 5.518:
	# tests/arglist-11.res: 1.6
	# tests/arglist-17.res: 1.2
	# tests/arglist-3.res: 1.11
	# tests/class-12.java: 1.7
	# tests/class-12.res: 1.12
	# tests/if-4.res: 1.4
	# tests/inexprstat-1.pike: 1.5
	# tests/inexprstat-1.res: 1.9
	# tests/inexprstat-2.cc: 1.9
	# tests/inexprstat-2.res: 1.11
	# tests/top-4.c: 1.2
	# tests/top-4.res: 1.9

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Correct a typo in the sourceforge CVS URL.

	* cc-mode.texi:
	Add a statement that the manual is GPL'd.  Add a pointer to the manual's source
	at sourceforge.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-langs.el, cc-cmds.el:
	cc-cmds.el:  Amend c-point-syntax to handle macros.
	cc-langs.el:  Comment c-opt-cpp-prefix with a "TODO: handle escaped EOLs".

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-guess.el (cc-guess-install):
	New function to install an already guessed style
	in another buffer.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-guess.el:
	Improvement contributed by Masatake YAMATO: Frequency is now taken
	into account to make a better guess.

	(cc-guess-region): Inverted the RESET argument to make it more
	convenient.  The guessed style is also merged into `c-offsets-alist'
	right away.

	(cc-guess, cc-guess-view-style): New functions.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-tentative-buffer-changes):
	No longer sets `inhibit-read-only' -
	`c-save-buffer-state' should be used anyway if the change always is
	undone.

	#(c-save-buffer-state, c-tentative-buffer-changes): Extended the
	#docstrings a bit more.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el, cc-vars.el, cc-mode.el, cc-langs.el, cc-defs.el, cc-engine.el:
	Implement togglable electricity:

	cc-defs.el: Enhance c-save-buffer-state's doc-string, saying when it
	  should be used.

	cc-engine.el: Add the new buffer-local variable, c-electric-flag.

	cc-langs.el: Change the name of c-toggle-auto-state to
	  c-toggle-auto-newline.

	cc-mode.el: Rename c-toggle-auto-state to c-toggle-auto-newline.  Remove
	  the binding for c-toggle-auto-hungry-state.  Add the binding C-c C-l
	  for the new c-toggle-electric-state.

	cc-vars.el: Make c-syntactic-indentation buffer local.

	cc-cmds.el:
	  Add `c-bytecomp-defun's for c-\(forward\|backward\)-subword.
	  c-update-modeline:  Add the new modeline flag `l' for
	    `c-electric-flag'.  Make the auto-newline flag `a' dependent on `l'.
	  c-toggle-auto-state:  Rename it to `c-toggle-auto-newline'.  Make the old
	    name an alias of the new name.
	  Remove `c-toggle-auto-hungry-state'.
	  Add new function `c-toggle-electric-state'.
	  c-electric-\(pound\|brace\|slash\|star\|semi&comma\|colon\|lt-gt\|
	    paren\|continued-statement\): Adapt these functions to do electric
	    things only when c-electric-flag is non-nil.
	  c-point-syntax, c-brace-newlines, c-try-oneliner: Extract these new
	    functions from c-electric-brace.
	  c-point-syntax: Add a check for "virtual semicolons" in AWK mode, so that
	    the tentative extra newline doesn't change the syntax of the following
	    brace.
	  c-electric-brace: restructure by extracting the above functions.  Tidy up
	    the coding somewhat.
	  c-electric-semi&comma, c-electric-colon, c-electric-paren: restructure a bit.

	* cc-mode.texi:
	"Electric Keys": Amend description of `<' and `>': they are also electric when
	  they are template brackets.
	"Other Commands": Add an entry for the standard Emacs command `comment-region'
	  which has CC Mode binding C-c C-c.
	"Custom Filling and Breaking": Purge the description of
	  `c-comment-prefix-regexp' of confusing gobbledygook.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	"Filling and Breaking":  Add a cross reference to "Custom Filling and
	Breaking".
	Several minor amendments.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Merge the changes made on branch texi-0-1 back to HEAD.
	CV1: Committing in .

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: "Overview":  Get rid of reference to "AWK" section;
	"Sample .emacs FILE":  Put key bindings into c-initialization-hook;
	  Move the c-add-style call from out of the c-mode-hook.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	In the GNU/XEmacs conditional things, replace "X" by "XEMACS" for clarity.
	Rename the chapter "Indentation Engine" to "Indentation Engine Basics".
	"Indentation Commands": Add stuff about macros (taken from the old "Macro
	  Handling" chapter).
	"Other Commands":  Move the description of "c-backslash-region" into here.
	Rename "Macro Handling" to "Custom Macros", having moved the stuff other than
	  customization to other chapters.

	* cc-vars.el:
	Remove the erroneous (doubly inserted) patch from yesterday.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-show-syntactic-information):
	Show the anchor position(s) using
	faces.  Thanks to Masatake YAMATO for the idea.

	* cc-mode.el, cc-cmds.el, cc-defs.el, cc-engine.el (c-submode-indicators):
	Changed name from `c-auto-hungry-string' since it's
	now used to track another submode.

	(c-update-modeline): Converted to function and extended to check
	`c-subword-move-mode'.

	(c-forward-into-nomenclature, c-backward-into-nomenclature): Converted to
	compat aliases for `c-forward-subword' and `c-backward-subword'.

	* MANIFEST, Makefile: Added cc-subword.el.

	* cc-subword.el:
	New functions and minor mode to handle SillyCapsedStyleIndentifiers,
	contributed by Masatake YAMATO:

	(c-forward-subword, c-backward-subword, c-mark-subword, c-kill-subword,
	c-backward-kill-subword, c-transpose-subwords, c-capitalize-subword,
	c-downcase-subword, c-upcase-subword): Functions corresponding to the
	standard word handling functions.

	(c-subword-move-mode): Minor mode that replaces all the standard word
	handling functions with their subword equivalences.
	#Note that this requires `define-minor-mode', which is known to exist in
	#Emacs 21 and later.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-vars.el:
	c-cleanup-list:  Insert a customization entry for one-liner-defun.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-defs.el:
	Give c-tentative-buffer-changes its own name in its def-edebug-spec.

	* cc-cmds.el:
	c-electric-brace: Make the one-liner-defun clean-up work with
	  empty-defun-braces.  o-l-d now compacts space before a comment, if this will
	  make things fit on one line.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* NEWS:
	Added some tentative entries for version 5.31:  (i) Older [X]Emacs
	  versions are no longer supported; (ii) Revision of the Manual;  (iii)
	  Improvements to AWK support.

	* cc-mode.texi:
	"AWK Mode Defuns":  Removed this subsection, transferring its contents to
	  "Movement Commands"
	"Movement Commands":  Condensed the separate descriptions of
	  complementary -backward-* and -forward-* commands into joint
	  descriptions.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	"Introduction":  Integrated Alan more tightly into CC-Mode.  ;-)
	"Overview":  New chapter describing the structure of the manual.
	"Other Commands":  Added a description of c-macro-expand.
	"Built-in Styles":  Added a description of the new "awk" style.
	"Custom Braces" and "Hanging Semicolons and Commas":  Specify the meaning of
	  point in action functions, and that is must be preserved.
	"Clean-ups":  Document the new clean-up one-liner-defun and associated
	  variable c-max-one-liner-length.
	"Customizing Indentation" is now its own chapter rather than being a section
	  of "Indentation Engine".
	"AWK Mode:  Removed the entire chapter, moving the two remaining useful
	  sections to "Font Locking" and "Movement Commands".
	Added/Moved lots of index entries.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el, cc-styles.el, cc-vars.el, cc-align.el:
	Introduce an "awk" style, mainly for auto-newline and clean-ups.
	cc-align.el: new function c-snug-1line-defun-close
	cc-cmds.el: In c-electric-brace, add code for new clean-up one-liner-defun.
	cc-styles.el: Add the new "awk" style.
	cc-vars.el: Add description of one-liner-defun to c-cleanup-list's doc-string.
	  New user options, c-max-one-liner-length.
	  In c-default-style, set the default style for AWK to "awk".

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* MANIFEST: Don't think there's any need for credits in this file.

	* README, ANNOUNCEMENT: Alan does more than AWK nowadays. :)

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-forward-label):
	Fixed fontification of macros inside labels.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	(i) Some general tidying up, remove @ignore sections, etc.
	(ii) Firm up the mechanism for generating @xrefs to the Emacs/Xemacs
	  manual and the Elisp/Lispref manual.  There are now four macros,
	  @emacsman{}, @lispref{}, @emacsmantitle{}, @lispreftitle{} which
	  generate the filenames and titles (for the printed versions) of the
	  manuals pertinent to Emacs or XEmacs, depending on whether the makeinfo
	  variable `X' is defined or not.  The titles were taken from the
	  @settitle lines in the source files of the four manuals.  In the
	  process, the title "The Emacs Editor" has been amended to "GNU Emacs
	  Manual".

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Much general tidying up of the wording.
	"Auto-newlines"
	  (i) Add a note that c-electric-* only do their stuff when last on
	    line.
	  (ii) State that a `before' auto-newline is never added if the `{'
	    etc. is "already on a newline".
	  (iii) Replace the statement of where auto-newlines go by default (it
	    was wrong and oversimplified) by a statement that the style system
	    does the configuration most of the time.
	"Custom Auto-newlines"
	  (i) Make the page what it says it is, removing the stuff which is now
	    in "Commands".
	  (ii) Add a @dfn{} for "hang", and "hanging on the left/right".
	  (iii)
	"Hanging Braces"
	  (i) Insert an @enumerated section describing the algorithm.
	  (ii) Insert a more robust description of c-hanging-braces-alist.
	  (iii)
	"Hanging Colons"
	  (i) Update this page to mirror "Hanging Braces".
	  (ii) State that the default action (if no alist entry) is to add no
	    newlines.
	"Custom Semis and Commas"
	  (i) Add clarification that criteria functions don't themselves add
	    newlines.
	  (ii) State that NLs never get added _before_ a `;' or `,'.
	  (iii)
	"Clean-ups"
	  (i) Give an actual definition of "Clean-up" for the @dfn{}. ;-)

	Moved the @section "Custom Brace and Colon Hanging" away from "Advanced
	  Customizations" to underneath "Hanging Braces", removing the spurious
	  "and Colons" from its name.
	Moved the contents of the @section "Customizing Semicolons and Commas"
	  away from "Advanced Customizations" and inserted them into "Hanging
	  Semicolons and Commas" (which previously had only a pointer into the
	  CSaC node).
	"Advanced Customization" is now almost content free.

	Add Experimental macros for "Emacs"/"XEmacs" and "Elisp"/"Lispref", in
	  the hope they might enable a better XEmacs version of the manual.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-looking-at-bos):
	Obsoleted in favor of `c-at-statement-start-p' and
	`c-at-expression-start-p'.
	#I actually forgot about this when I introduced
	#`c-at-statement-start-p', but I think the new ones got better names
	#so I deprecate this one anyway.

	* cc-defs.el (c-tnt-chng-record-state):
	Don't signal an error if the mark isn't set.

	* cc-engine.el (c-guess-continued-construct, c-guess-basic-syntax): Use
	`c-forward-decl-or-cast-1' to more accurately detect functions inside
	functions.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	  Reorder the chapters a bit on the principle "Most basic earliest":
	  Move "Font locking" with contents to just after "Commands".
	  Move "Indentation Engine" with contents to just after "Custom Filling and
	    Breaking".
	  Move "Custom Filling and Line Breaking" to before "Custom Auto-Newlines".

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	  Add a "Mode Initialization" section (as yet, content free) to
	    "Configuration Strategies".
	  Move "Minor Modes" into the "Commands" chapter.  Remove the
	    configuration instructions from its submode "Auto-newlines".  Outline
	    the default configuration for auto-newlines here.
	  Rename the old "Auto-newline insertion" to "Customizing Auto-newline
	    Mode" and make it a @chapter in its own right, containing four
	    sections.  The content of this @chapter is yet to be adapted.
	  Amend the descriptions in "Minor Modes" of the key sequences, using
	    @table rather than an unbroken textual paragraph.
	  Amend "Electric Keys", so that there is explicit reference to
	    "Clean-ups" in the right places.  All electric actions are now
	    collected together in this section.
	  Condense the description of '*' and '/' in Electric keys.
	  In "Clean-ups" insert "@tie{}" where a critical space was getting lost
	    in line wrap.
	  Tidy up a lot of wording.
	  Introduce an experimental facility which will build either a GNU Emacs
	    or an XEmacs specific info file.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-at-expression-start-p):
	New function like `c-at-statement-start-p'
	that additionally recognizes commas and expression parentheses as
	delimiters.

	(c-at-statement-start-p): The optional COMMA-DELIM argument is gone.
	Use `c-at-expression-start-p' instead.

	(c-guess-basic-syntax): More consistent anchoring for `arglist-close'.
	The main effect is that the anchor position is at the start of the
	statement instead of the opening paren even when the opening paren is
	at boi.  Thus odd indentation is avoided in that case if
	`arglist-close' is set to `+'.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-awk.el:
	  Add character classes (e.g. "[:alpha:]") into AWK Mode's regexps.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	  Move the page "Hungry WS Deletion" into the "Commands" chapter, and
	    revise this node for (hopefull) increased clarity.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	  Reduce the length of many node names, (following suggestion on
	    emacs-devel).
	  Tidy up some of the wording.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:   Added ACM to the list of authors.
	  Renamed "Other Electric Commands" to "Electric Keys and Keywords"
	  In "Electric Keys and Keywords", added descriptions of {, }, :, ;, ,,,
	    and tidied up the wording a bit.
	  Tidied up the wording and presentation of "Configuration Strategies".
	  In "Customizing Filling and Line Breaking", expanded the description of
	    c-comment-prefix-regexp.

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	  Moved the "Commands" chapter to near the start of the file.
	  Moved "Other Electric Commands" into the "Commands" chapter.
	  Split "Text Filling and Line Breaking" into the "Filling and Line
	Breaking Commands" (a section under "Commands"), and "Customizing Filling
	and Line Breaking".

2005-06-01  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.texi:   Update the master menu for the file.

	* cc-mode.texi:
	  This change is the first stage in the restructuring of cc-mode.texi.
	  Added new chapter, "Configuration Strategies", and converted "Hooks" and
	"Styles" (together with the latter's sub-nodes) into sections of this new
	chapter.
	  Converted "Syntactic Symbols" and "Customizing Indentation" (together with
	the latter's sub-nodes "Interactive C.." and "Permanent C..") into sections of
	"Indentation Engine".  "Customizing Indentation" has acquired "Line-Up
	Functions", "Custom Line-up Functions" and "Other Special Indentations" as
	sub-nodes, but has lost "Hooks" and "Styles").
	  "Advanced Customization", formerly a sub-node of "Customizing Indentation"
	is now a chapter in its own right.  It has lost "Custom Line-Up Functions" and
	"Other Indentations".

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* Checklist.txt: Some updates.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-anchor-stmt, c-add-class-syntax, c-add-inclass-syntax, c-guess-continued-construct, c-guess-basic-syntax):
	Cleaned up
	anchoring of various brace block constructs inside arglists, so that
	all variants of them are treated uniformly.

	(c-anchor-stmt): Changed calling convention and renamed from
	`c-add-stmt-syntax'.

	(c-looking-at-inexpr-block): Added flag to avoid heuristics that
	doesn't work for unclosed blocks.

	(c-at-statement-start-p): New function.
	#Not used anywhere as it turned out, but it seems useful and it's
	#small.

	(c-guess-basic-syntax): Simplified the `paren-state' variable to
	always contain the whole paren state.

	* cc-align.el (c-block-in-arglist-dwim):
	Isolated the DWIM logic to line up brace
	blocks in arglists to this function.  Also extended it to cope better
	with various sorts of blocks.

	(c-lineup-arglist, c-lineup-arglist-close-under-paren,
	c-lineup-close-paren): Use `c-block-in-arglist-dwim'.  Fixed
	indentation inside Pike special brace lists.

	(c-lineup-inexpr-block): Use absolute indentation.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-fonts.el:
	Fixes in handling of Objective-C directives, e.g. directives spanning lines
	should work reasonably well now.

	(c-put-c-type-property, c-clear-c-type-property): New helpers.

	(c-forward-objc-directive): New function to move over any ObjC directive.

	(c-just-after-func-arglist-p, c-guess-basic-syntax,
	c-basic-matchers-before): Use it.

	(c-font-lock-objc-iip-decl): Removed.

	* cc-engine.el (c-guess-basic-syntax):
	Some improvement in the template arglist
	recognition.
	#I.e. one use less of c++-template-syntax-table.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-styles.el (c-style-alist):
	Fixed several inconsistencies in the Whitesmith
	style.

	* cc-mode.texi:
	Documented c-lineup-after-whitesmith-blocks.  Some other fixes.

	* cc-align.el (c-lineup-after-whitesmith-blocks):
	New lineup function to get lines
	after Whitesmith style blocks correctly indented.

	(c-lineup-whitesmith-in-block): Backed out the compensation for
	opening parens since it's done using `add' lists in the style
	definition instead.  Don't use the anchor position since it varies too
	much between the syntactic symbols. :P

	* cc-vars.el (c-valid-offset): Updated.

	* cc-mode.texi:
	Updated the doc for offset specifications on `c-offsets-alist'.

	* cc-engine.el (c-evaluate-offset):
	Extended to handle lists where the offsets are
	combined according to several different methods: `first', `min',
	`max', and `add'.  Report offset evaluation errors with
	`c-benign-error' so that some kind of reindentation still is done.

	* cc-engine.el (c-guess-basic-syntax):
	Anchor `arglist-intro' the same way as
	`arglist-cont-nonempty' and `arglist-close'.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	Updated the parts dealing with line-up functions.  Fixed some
	terminology to use the same words everywhere.

	* cc-langs.el (c-opt-identifier-concat-key-depth): New constant.

	#(c-identifier-ops): Talk about the "." operator in Java.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-defs.el:
	Use `cc-bytecomp-fboundp' and cc-bytecomp-boundp' in a number of places.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-langs-are-parametric):
	Made it known at compile time to avoid
	warnings.

	* cc-defs.el (c-langs-are-parametric):
	Must be known at compile time for the sake of
	`c-major-mode-is'.

	(c-mode-is-new-awk-p): Made it a macro to delay expansion of
	`c-major-mode-is' in the event that this is used inside a
	`c-lang-defconst'.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-beginning-of-statement-1):
	Fixed a macro related issue.
	#Seems like I somehow lost track halfway through the fix in 5.476.
	#Strange that there weren't any test cases that nailed this.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Enhanced the style doc somewhat more.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-declarations):
	Always narrow to the fontified region so
	that fontification doesn't occur outside it (could happen e.g. when
	fontifying a line with an unfinished declaration).

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* Makefile:
	Recompile only as much as necessary. This way the .el files are also
	compiled one by one which makes it easier to discover the dependencies
	between them.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-electric-brace):
	Cleaned up using `c-tentative-buffer-changes'.

	* cc-defs.el (c-region-is-active-p):
	Simplified and converted to macro to choose
	between Emacs and XEmacs at compile time.

	(c-set-region-active): New set counterpart to `c-region-is-active-p'.

	(c-tentative-buffer-changes): New macro to handle temporary buffer
	changes in a convenient way.

	(c-tnt-chng-record-state, c-tnt-chng-cleanup): Internal helpers for
	`c-tentative-buffer-changes'.

	* cc-cmds.el (c-electric-brace):
	Don't trip up on a line continuation which might
	precede the newly inserted '{'.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-looking-at-inexpr-block):
	Tightened up the checks for paren sexps
	between the point and the keyword, to avoid some false alarms.

	* cc-engine.el, cc-langs.el (c-looking-at-inexpr-block):
	Fixed a situation where an error could be
	thrown for unbalanced parens.  Changed to make use of
	c-keyword-member' to avoid some repeated regexp matches.

	(c-opt-lambda-key, c-opt-inexpr-block-key, c-opt-inexpr-class-key):
	These language variable are no longer necessary.

	(c-block-stmt-kwds): New language constant used by
	c-looking-at-inexpr-block'.

	(c-guess-basic-syntax): Removed an optional check that looked at the
	existence of the now removed language variables.

	* cc-engine.el (c-fdoc-shift-type-backward, c-forward-decl-or-cast-1):
	Fixed invalid
	recognition of C++ style object instantiation expressions as
	declarations in some contexts.  This bug only affected languages where
	the declarator can't be enclosed in parentheses.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-styles.el (c-style-alist):
	Fixed the GNU style to insert newlines before and
	after substatement braces.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el:
	Improved the heuristics for recognizing function declaration headers
	and the handling of C++ style member init lists.

	(c-just-after-func-arglist-p): Rewritten to use
	`c-forward-decl-or-cast-1'.  Now behaves a bit differently too.

	(c-beginning-of-member-init-list): Removed since it isn't used
	anymore.

	(c-guess-basic-syntax): Case 5B adapted for the new
	`c-just-after-func-arglist-p'.  Cases 5B.1 and 5B.3 merged.  Cases
	5D.1 and 5D.2 removed since they aren't trigged anymore (case 5B.1
	covers all cases now).

	#(c-forward-decl-or-cast-1): Doc comment fixes.

	* cc-defs.el (c-point): Added 'bosws and 'eosws.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* Checklist.txt:
	Mention that there's a version number in anoncvs.php.  Be a bit more
	explicit who "I" is.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-langs.el:
	Rewrote the recognition function for declaration level blocks.  It should
	now cope with templates better and also be a lot more comprehensible.

	(c-looking-at-decl-block): The new function.

	(c-search-uplist-for-classkey): The old one.  It's now a wrapper for
	compatibility.

	(c-add-class-syntax, c-guess-continued-construct,
	c-guess-basic-syntax): Adapted for `c-looking-at-decl-block'.

	(c-decl-block-key): Changed to tell apart ambiguous and unambiguous
	keywords.  Pike specials are now handled directly in the code instead.

	(c-block-prefix-disallowed-chars, c-block-prefix-charset): New
	language constants and variables to make the backward skip in
	`c-looking-at-decl-block' as tight as possible.

	(c-nonsymbol-token-char-list): New language constant.

	* cc-engine.el (c-backward-<>-arglist):
	New function to find balanced template
	arglists backwards.

	* cc-defs.el (c-make-bare-char-alt):
	New helper for making char classes for
	`c-syntactic-skip-backward'.

	* cc-engine.el (c-guess-basic-syntax):
	Simplified case 16D - can't be a class-close
	at that point.

	* cc-engine.el (c-guess-basic-syntax, c-add-class-syntax):
	Don't narrow out the
	enclosing declaration level.  This makes everything a lot easier, and
	it was actually only four small places that needed it to work.  Some
	places that previously did `widen' are removed now, which has the
	effect that `c-guess-basic-syntax' never will look at things outside
	the current narrowment now.  The anchor position for `topmost-intro'
	is affected by this, but it was so bogus it was basically useless
	before, and now it's equally bogus but in a slightly different way.

	(c-narrow-out-enclosing-class): Gone.

	(c-most-enclosing-brace, c-least-enclosing-brace): Don't filter to the
	narrowed region.

	(c-least-enclosing-brace): Removed silly optional argument.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-fonts.el (c-forward-keyword-clause):
	Specify which submatch to use.

	* cc-langs.el (c-symbol-start): Include '@' in ObjC.

	(c-decl-start-re): No no longer any need for special treatment of
	ObjC due to the above.

	(c-other-block-decl-kwds): Handle "extern" in ObjC too since it
	presumably follows C in that regard.

	* cc-langs.el (c-identifier-ops, c-after-id-concat-ops):
	New language constants to
	specify operator tokens inside identifiers in a more high level way.

	(c-opt-identifier-prefix-key): New internal language constant.

	(c-opt-identifier-concat-key, c-opt-after-id-concat-key,
	c-identifier-start, c-identifier-key): Now completely calculated from
	other constants.

	(c-identifier-last-sym-match): Decommissioned since it's no longer
	used.

	(c-operators): Use `c-identifier-ops'.  Documented `postfix-if-paren'.

	* cc-engine.el (c-forward-name):
	Removed the optimization when c-identifier-key is
	equal to c-symbol-key since it doesn't work in byte compiled files.
	Don't record empty regions as identifiers.

	* cc-langs.el (c-filter-ops): New helper function to simplify access to
	`c-operators' and its likes.

	(c-operator-list, c-all-op-syntax-tokens, c-nonsymbol-token-regexp,
	c-<>-multichar-token-regexp, c-<-op-cont-regexp, c->-op-cont-regexp,
	c-expr-kwds, c-primary-expr-regexp, c-cast-parens): Use it.

	* cc-defs.el (c-lang-const):
	Fixes to allow use without an explicit language in
	functions.

	* cc-defs.el (c-make-keywords-re):
	Added an appendable variant of adornment.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-any-class-key): Removed unused language variable.

	(c-type-decl-prefix-key): Removed some now unnecessary cruft from the
	Pike value.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-make-init-lang-vars-fun):
	Disabled the diagnostic message about
	precompiled language vars not being used.

	* cc-langs.el (c-paren-nontype-kwds):
	The GCC keyword "__attribute__" is followed by
	a parenthesis.

	(c-type-start-kwds, c-prefix-spec-kwds, c-prefix-spec-kwds-re,
	c-specifier-key, c-not-decl-init-keywords): Some cleanup using new
	language constants `c-type-start-kwds' and `c-prefix-spec-kwds'.
	#`c-specifier-key' has turned out to not be obsolete afterall.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el, cc-langs.el, cc-engine.el:
	Internal cleanups to properly detect the declared identifiers in
	various declarations.

	(c-decl-start-kwds): New language constant to recognize declarations
	that can start anywhere.  Used for class declarations in Pike.

	(c-specifier-key, c-not-decl-init-keywords, c-decl-prefix-or-start-re,
	c-find-decl-prefix-search, c-find-decl-spots): Implement
	`c-decl-start-kwds'.

	(c-other-decl-kwds, c-postfix-decl-spec-kwds, c-decl-hangon-kwds,
	c-decl-hangon-key, c-forward-decl-or-cast-1): Separated the handling
	of the compiler specific extension keywords into a new language
	constant `c-decl-hangon-kwds' that defines keyword clauses to be
	ignored in declarations.

	(c-forward-id-comma-list, c-forward-keyword-clause): Don't skip past
	unrecognized tokens when handling `c-colon-type-list-kwds'.  Necessary
	to stop at the declared identifier in e.g. IDL valuetype declarations.

	(c-typedef-decl-kwds, c-typeless-decl-kwds, c-type-list-kwds,
	c-prefix-spec-kwds-re, c-postfix-spec-kwds,
	c-after-suffixed-type-decl-key, c-opt-postfix-decl-spec-key,
	c-forward-decl-or-cast-1): Recognize the declared identifier in class
	and enum declarations as such and not as part of the type.
	#`c-specifier-key' is obsoleted by `c-prefix-spec-kwds-re' but is
	#still around for the time being due to some old brace list handling
	#code.

	(c-forward-decl-or-cast-1, c-forward-label): Relaxed the
	interpretation of PRECEDING-TOKEN-END when there's no preceding token.

	(c-forward-decl-or-cast-1): Don't disregard sure signs of declarations
	when there's some syntax error later on.

	(c-complex-decl-matchers): Did away with a reference to `c-specifier-key'.

	#(c-typededef-decl-kwds, c-typeless-decl-kwds, c-other-decl-kwds,
	#c-colon-type-list-re, c-decl-prefix-re, c-type-decl-prefix-key,
	#c-type-decl-suffix-key, c-after-suffixed-type-decl-key): Improved
	#docstrings.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-maybe-labelp):
	Provide no default value - this variable is always
	dynamically bound.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-fonts.el, cc-langs.el, cc-menus.el, cc-mode.el, cc-styles.el, cc-vars.el, cc-align.el, cc-awk.el, cc-cmds.el, cc-defs.el:
	Changed the policy for marking up functions that might do hidden
	buffer changes: All such internal functions are now marked instead of
	those that don't.

	(c-beginning-of-macro, c-end-of-macro, c-(forward|backward)-comments,
	c-(forward|backward)-single-comment, c-parse-state, c-on-identifier,
	c-(fast-|slow-|)in-literal, c-literal-limits, c-collect-line-comments,
	c-literal-type): Allow these functions to make hidden buffer changes,
	so that they are free to use text property caching later on.

	(c-electric-backspace, c-electric-delete-forward, c-electric-pound,
	c-electric-brace, c-electric-slash, c-electric-star,
	c-electric-semi&comma, c-electric-colon, c-electric-lt-gt,
	c-electric-paren, c-electric-continued-statement, c-indent-command,
	c-indent-region, c-mask-paragraph, c-indent-new-comment-line,
	c-context-line-break): Added `c-save-buffer-state' calls to comply
	with the changed semantics of the functions above.

	* cc-engine.el (c-beginning-of-statement-1):
	Fixed a bug when macros occur in obscure
	places.  Optimized the sexp movement a bit.

	* Checklist.txt: man/cc-mode.texi should be updated too for Emacs.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-fonts.el, cc-langs.el:
	Cleaned up the label handling.  Labels are now recognized in a uniform and
	more robust way, regardless of context.  Text properties are put on all
	labels to recognize the following declarations better.  Multiword labels are
	handled both in indentation and fontification for the benefit of language
	extensions like Qt.  For consistency, keywords in labels are now fontified
	with the label face instead.  That also applies to "case" and "default".

	(c-beginning-of-statement-1): Fixed some bugs in the label handling.
	Disregard `c-nonlabel-token-key' in labels that begin with
	`c-label-kwds'.
	#Also noted a bug when IGNORE-LABELS is set.

	(c-find-decl-spots): Support that the callback adds more `c-decl-end'
	spots to find.

	(c-forward-decl-or-cast-1): Don't treat a list of plain identifiers
	followed by a colon as a declaration.

	(c-forward-label): New function to recognize labels.

	(c-guess-basic-syntax): Replaced uses of `c-label-key' with
	`c-forward-label'.  Moved the label recognition cases (14 and 15)
	earlier since they aren't so context sensitive now.  Handle labels on
	the top level gracefully.  Moved access label recognition to the
	generic label case (CASE 15) - removed CASE 5E.

	#(c-fontify-recorded-types-and-refs): Some code cleanup.

	(c-font-lock-declarations): Added recognition of labels in the same
	round since we need to handle labels in parallell with other
	declarations to recognize both accurately.  It should also improve
	speed.
	#Large indentation change.

	(c-simple-decl-matchers, c-basic-matchers-after): Moved
	`c-font-lock-labels' so that it only is used on decoration level 2
	since `c-font-lock-declarations' handles it otherwise.

	(c-complex-decl-matchers): Removed the simplistic recognition of
	access labels.

	(c-decl-prefix-re): Removed the kludges that was necessary to cope
	with labels earlier.

	(c-decl-start-re): New language variable to make
	`c-font-lock-declarations' stop for the special protection labels in
	Objective-C that start with '@'.

	(c-label-key): Removed since it's no longer used.

	(c-recognize-colon-labels, c-label-prefix-re): New language constants
	to support recognition of generic colon-terminated labels.

	(c-type-decl-end-used): `c-decl-end' is now used whenever there are
	colon terminated labels.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-fonts.el (c-forward-decl-or-cast-1, c-font-lock-declarations):
	Broke out the
	declaration and cast recognition from `c-font-lock-declarations' to a new
	function, so that it can be used in the indentation engine.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* Checklist.txt:
	Updates and more details about de-facto procedures for releases.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-forward-<>-arglist-recur):
	Don't accept binary operators in the arglist
	if we're in a function call context, i.e. if `c-restricted-<>-arglists' is
	set.  That avoids template recognition in cases like "if (a < b || c > d)".

	(c-restricted-<>-arglists): New more appropriate name for
	`c-disallow-comma-in-<>-arglists'.

	Accessing functions updated for the variable name change.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-find-decl-spots):
	Fixed bug in backing up to the start of the
	literal.  Fixed bug with the point on the wrong side of the search
	limit that could happen when the start position is inside a literal.

	* cc-engine.el (c-parse-state, c-invalidate-state-cache):
	Modified the use of
	`c-state-cache-end' so that it's kept a little bit back to increase
	the hit rate.

	(c-parse-state): Changed the macro handling and fixed some glitches.
	Macro context is checked more often than necessary now, but otoh less
	garbage conses are generated.

	* cc-engine.el (c-parse-state, c-invalidate-state-cache):
	Cache the last position
	where `c-state-cache' applies.  This can speed up refontification
	quite a bit in blocks where there are many non-brace parens before the
	point.

	(c-state-cache-end): New variable for this.

	(c-guess-basic-syntax, c-debug-parse-state): Adapted for the new cache
	variable.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-find-decl-spots):
	Take more care to get close initial continue
	positions when the start position is inside a literal or macro.  Do
	not call the callback for spots before the start position (which can
	happen e.g. for `c-decl-end' spots inside comments).  Optimize better
	in special cases when the region is a single line inside a literal or
	macro (typically when the current line is refontified).

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-basic-syntax):
	Simplified calls to `c-add-stmt-syntax' -
	there's no need to explicitly whack off entries from the paren state.

	* cc-engine.el (c-add-stmt-syntax):
	Narrowed down the special case for "else if"
	clauses.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-looking-at-inexpr-block, c-add-stmt-syntax): Use
	`c-recognize-paren-inexpr-blocks'.

	* cc-langs.el (c-recognize-paren-inexpr-blocks):
	New language variable to recognize
	the gcc extension with statement blocks inside expressions.

	* cc-engine.el (c-add-stmt-syntax):
	Restructured to make it somewhat more
	comprehensible.  The argument AT-BLOCK-START is no longer used and
	hence removed.

	(c-guess-continued-construct, c-guess-basic-syntax): Updated calls to
	`c-add-stmt-syntax'.

	* cc-engine.el (c-beginning-of-statement-1):
	Don't allow parens in labels.

	(c-backward-to-decl-anchor): Use `c-beginning-of-statement-1' instead
	of duplicating parts of it.  This fixes bogus label recognition.

	* cc-engine.el (c-backward-to-decl-anchor):
	Use `c-beginning-of-statement-1' instead
	of duplicating parts of it.  This fixes bogus label recognition.

	* cc-mode.texi:
	Extended the doc on c-label-minimum-indentation a little.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-add-type, c-check-type, c-forward-name, c-forward-type):
	Improved
	storage of template types in `c-found-types' so that they can be
	recognized better.

	(c-syntactic-content): Added option to skip past nested parens.

	* cc-engine.el (c-forward-name):
	Set `c-last-identifier-range' all the time.  It's
	less work that way.  Handle that there might not be an identifier to
	store in `c-last-identifier-range'.

	(c-forward-type): Handle that `c-last-identifier-range' might be nil
	from `c-forward-name'.

	* cc-defs.el:
	(c-safe-scan-lists, c-(go-)?(up|down)-list-(forward|backward)): Added
	limit arguments.

	* cc-defs.el (c-save-buffer-state):
	Use `unwind-protect' to work even if the form
	fails.

	* cc-engine.el (c-parse-state):
	Speedup when moving far down in a large file in one
	go.

	(c-get-fallback-start-pos): New helper function for `c-parse-state'.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-mode.texi: Document c-lineup-assignments and c-lineup-math.

	* cc-align.el (c-lineup-assignments): New lineup function which is like
	`c-lineup-math' but returns nil instead of `c-basic-offset' when it
	doesn't match.

	(c-lineup-math): Changed to use `c-lineup-assignments'.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el, cc-langs.el:
	Use `c-simple-ws' instead of hardcoded char classes whereever possible.
	Changed a couple of places to use skip by syntax instead of skip by char
	class.

	* cc-langs.el (c-unterminated-block-comment-regexp):
	Fixed a bug in the regexp that
	caused extreme backtracking.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-block-comment-starter, c-block-comment-ender):
	New language
	constants to specify in a single place how block comments look.

	(c-comment-start-regexp, c-block-comment-start-regexp, comment-start,
	comment-end, comment-start-skip, c-syntactic-ws-start,
	c-syntactic-ws-end, c-nonwhite-syntactic-ws, c-syntactic-ws,
	c-nonempty-syntactic-ws, c-single-line-syntactic-ws, c-syntactic-eol):
	Now built from `c-line-comment-starter', `c-block-comment-starter' and
	`c-block-comment-ender'.

	(c-block-comment-regexp, c-unterminated-block-comment-regexp): New
	language constants to break up things a bit.

	(c-simple-ws): New language constant for simple whitespace.

	#(c-known-type-key): Slight clean up using `c-concat-separated'.

	* cc-defs.el (c-concat-separated): New convenience function.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-known-type-key): Optimize simple symbols from
	`*-font-lock-extra-types' so that there's no need to use `regexp-opt'
	on those lists.

	* cc-langs.el (c-type-decl-suffix-key):
	Fix when `c-type-modifier-kwds' is empty.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-invalid-string):
	Fix when there are several strings on
	the same line.

	* cc-engine.el (c-literal-limits):
	Removed the compatibility function for older
	emacsen.  `c-literal-limits-fast' has now taken the place of this
	function.

	* cc-vars.el (c-emacs-features):
	Removed compatibility with older emacsen: We now
	require 'pps-extended-state.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-fonts.el, cc-langs.el (c-guess-basic-syntax):
	Changed the way class-level labels are recognized;
	they can now contain essentially any symbols.

	(c-opt-extra-label-key): New language variable to cope with the special
	protection label syntax in Objective-C.

	(c-opt-access-key): Removed; this is now handled better by
	`c-nonlabel-token-key' and `c-opt-extra-label-key'.

	(c-complex-decl-matchers): Update to handle that `c-opt-access-key' no
	longer exists.

	* cc-engine.el (c-guess-basic-syntax):
	Make use of the improved label recognition in
	`c-beginning-of-statement-1'.

	* cc-engine.el (c-beginning-of-member-init-list):
	Recognize bitfields better.
	#Also a bit cleaned up.

	#(c-guess-basic-syntax): Cleaned up a couple of cases and changed to
	#slightly faster methods.

	* cc-engine.el (c-beginning-of-inheritance-list):
	Removed some cruft and fixed a bug
	that could cause it to go to a position further down.

	* cc-langs.el, cc-engine.el (c-beginning-of-statement-1):
	Improved detection of labels in declaration
	contexts.

	(c-beginning-of-decl-1): Use it.

	(c-nonlabel-token-key): New language constant and variable needed by
	`c-beginning-of-statement-1'.

	* cc-engine.el (c-guess-basic-syntax):
	Fixed bug that manifested itself due to the
	correction in `c-forward-sexp'.

	* cc-defs.el (c-forward-sexp, c-backward-sexp):
	Made these behave as documented
	when used at the buffer limits.

	* cc-mode.el, cc-engine.el, cc-langs.el (c-type-decl-end-used):
	Made this a language variable.

	* cc-mode.el (c-after-change): Widen the buffer to work correctly when
	`combine-after-change-calls' is used together with temporary
	narrowings.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-beginning-of-statement-1):
	Report labels correctly when the start
	point is immediately after the colon.
	#Extended and reformatted the local variable comments a bit.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-parse-sexp-lookup-properties):
	Removed since it isn't used anymore.

	* cc-cmds.el (c-electric-lt-gt):
	Detect and mark angle bracket arglists such as
	template parens in C++.

	* cc-engine.el (c-syntactic-skip-backward):
	Fixed a bug in the last check-in.  Some
	optimization.

	* cc-engine.el (c-syntactic-skip-backward):
	Fixed bug where it could stop at the same
	level in a preceding sexp when PAREN-LEVEL is set.

	* cc-mode.el (c-basic-common-init):
	Turn on syntax-table text property lookup only
	when it's needed.

	* cc-langs.el, cc-engine.el, cc-fonts.el, cc-mode.el:
	Changed the policy for paren marked angle brackets to be more persistent;
	once marked they remain marked even when they're found to be unbalanced in
	the searched region.  This should keep the paren syntax around even when
	individual lines are refontified in multiline template arglists.

	(c-parse-and-markup-<>-arglists): New dynamically bound variable to control
	markup so that incorrect angle bracket arglists aren't marked in contexts
	where the correct value for `c-disallow-comma-in-<>-arglists' isn't known.

	(c-forward-<>-arglist, c-forward-<>-arglist-recur): The reparse argument has
	become `c-parse-and-markup-<>-arglists'.

	(c-remove-<>-arglist-properties): Removed - no longer used.

	(c-after-change-check-<>-operators): New function used on
	`after-change-functions' to avoid that "<" and ">" characters that are part
	of longer operators have paren syntax.

	(c-<>-multichar-token-regexp): New language variable used by
	`c-after-change-check-<>-operators'.

	(c-after-change): Call `c-after-change-check-<>-operators'.

	(c-font-lock-<>-arglists): Use the context properties set by
	`c-font-lock-declarations' to set `c-disallow-comma-in-<>-arglists'
	correctly to avoid doing invalid markup.

	(c-font-lock-declarations): Removed code that undoes the invalid markup done
	by `c-font-lock-<>-arglists'.

	(c-complex-decl-matchers): `c-font-lock-<>-arglists' now runs after
	`c-font-lock-declarations'.

	#(c-beginning-of-current-token): A little too large and used a little too
	#often to be a defsubst.
	#
	#(c-syntactic-skip-backward): Fixed bug detected by the byte compiler.
	#
	#(c-font-lock-objc-iip-decl): Updated for changes in `c-forward-<>-arglist'.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-syntactic-skip-backward): Added paren-level feature.

	(c-guess-basic-syntax): Improved the anchor position for
	`template-args-cont' in nested template arglists.  There's still much
	to be desired in this area, though.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-mode.texi:
	Some updates due to the dropping of the support for older emacsen.

	* cc-defs.el, cc-engine.el (c-mode-is-new-awk-p):
	Removed; (c-major-mode-is 'awk-mode) can be used
	instead now.

	* cc-mode.el:
	Always set up AWK mode since emacsen where it doesn't work no longer
	are supported.

	* cc-mode.el, cc-styles.el, cc-vars.el, cc-defs.el, cc-engine.el, cc-fonts.el, cc-langs.el, cc-cmds.el:
	CC Mode now requires support for the syntax-table' text property, which
	rules out Emacs 19 and XEmacs < 21.4.  Removed various compatibility cruft
	associated with those versions.

	* cc-defs.el, cc-fix.el:
	CC Mode now requires support for the `syntax-table' text property, which
	rules out Emacs 19 and XEmacs < 21.4.  Removed various compatibility cruft
	associated with those versions.

	* cc-vars.el (c-emacs-features): CC Mode now requires support for the
	`syntax-table' text property.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-nonbreakable-space-face):
	Remove the variable and use an extra
	quoted face name instead.  All the emacsen flavors handle that
	correctly.

	* Checklist.txt: Added a note.

	* Release.py: Makefile no longer contains a literal version number.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* Release.py:
	Put a branch tag on each release, in addition to the release tag.

2005-06-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* Checklist.txt: Describe the handling of the patch branch.

2005-05-24  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.45 released.

2005-05-23  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* Patch release 5.30.10.

2005-05-23  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-invalid-face-name): Use "red1" instead of "red"
	since it stands out better in xterms and DOS terminals.  Original
	change by Dan Nicolaescu <dann@ics.uci.edu>.

2005-05-23  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-declarators): Fixed bug where the point
	could go past the limit in decoration level 2, thereby causing
	errors during interactive fontification.  (This is, in fact, the
	Right fix for the problem that has plagued JDEE users.)

2005-05-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el, cc-engine.el, cc-align.el: Change the FSF's address
	in the copyright statement.  Incidentally, change "along with GNU
	Emacs" to "along with this program" where it occurs.

2005-05-23  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-make-inherited-keymap): Fixed cc-bytecomp bug when
	the file is evaluated interactively.

2005-05-23  Kevin Ryde  <user42@zip.com.au>:

	* cc-align.el (c-lineup-argcont): Ignore conses for {} pairs from
	c-parse-state, to avoid a lisp error (on bad code).

2005-05-23  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-basic-syntax): Handle operator
	declarations somewhat better in C++.

2005-05-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-mode.el: Add a fourth parameter `t' to the awk-mode autoload,
	so that it is interactive, hence can be found by M-x awk-mode
	whilst cc-mode is yet to be loaded.  Reported by Glenn Morris
	<gmorris+emacs@ast.cam.ac.uk>.

2005-05-23  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-styles.el, cc-mode.el (c-run-mode-hooks): New helper macro to
	make use of `run-mode-hooks' which has been added in Emacs 21.1.

	(c-mode, c++-mode, objc-mode, java-mode, idl-mode, pike-mode,
	awk-mode): Use it.

	(make-local-hook): Suppress warning about obsoleteness which has
	been added in Emacs 21.1.

2005-05-23  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el, cc-align.el, cc-cmds.el
	(c-append-backslashes-forward, c-delete-backslashes-forward,
	c-find-decl-spots, c-semi&comma-no-newlines-before-nonblanks):
	Compensate for return value from `forward-line' when it has moved
	but not to a different line due to eob.

2005-05-23  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-basic-syntax): Fixed anchoring in
	`objc-method-intro' and `objc-method-args-cont'.

2005-05-23  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-awk.el: Add character classes (e.g. "[:alpha:]") into AWK
	Mode's regexps.

2005-05-20  Aidan Kehoe  <kehoea@parhasard.net>

	* cc-engine.el (c-syntactic-re-search-forward): Revert my last
	change, it's the wrong thing. 
	* cc-fonts.el (c-font-lock-declarators): Apply Michael Thome's fix
	of 42404C6D.1030705@bbn.com, which is the Right Thing, once you've
	signed up for the re-search-forward API, which isn't great, IMO. 

2005-05-10  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.44 released.

2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>

	* cc-engine.el (c-syntactic-re-search-forward): Before the first
	call of re-search-forward in the function, make sure that the
	bound is greater than or equal to (point). Fixes an error:

	Error caught in `font-lock-pre-idle-hook': (error Invalid search
	limit (wrong side of point))

	that users of JDEE have been seeing for a long time. 

2004-08-12  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.43 released.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* Patch release 5.30.9.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-defs.el, cc-vars.el (c-emacs-features): Moved from cc-vars to
	cc-defs for dependency reasons.  Fixed the POSIX char class test
	to check that it works in `skip-chars-(forward|backward)' too.

	* cc-align.el (c-lineup-arglist): Fixed bug when the first
	argument starts with a special brace list.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-forward-type): Fixed promotion bug when
	`c-opt-type-concat-key' is used (i.e. in Pike).

	* cc-engine.el (c-looking-at-special-brace-list): Fixed bug when
	the inner char pair doesn't have paren syntax, i.e. "(< >)".

2004-08-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el, cc-vars.el: Amend doc(-strings) to say that <TAB>
	doesn't insert WS into a CPP line.
	(c-indent-command, c-tab-always-indent): Amend doc strings.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-align.el (c-lineup-multi-inher): Made it syntactic whitespace
	safe.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-basic-syntax): Fixed similar situations
	for `arglist-cont-nonempty' and `arglist-close'.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-basic-syntax): Fixed anchor position for
	`arglist-intro' when there are two arglist open parens on the same
	line and there's nothing in front of the first.

	* cc-fonts.el (c-basic-matchers-before): Fixed font locking of
	qualified names in Java, which previously could fontify common
	indexing expressions in many cases.  The standard Java naming
	conventions are used to tell them apart.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-align.el (c-lineup-whitesmith-in-block): Fixed inconsistency
	wrt opening parens on the first line inside a paren block.

	* cc-defs.el (c-langs-are-parametric): Must be known at compile
	time for the sake of `c-major-mode-is'.

	(c-mode-is-new-awk-p): Made it a macro to delay expansion of
	`c-major-mode-is' in the event that this is used inside a
	`c-lang-defconst'.

2004-08-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-styles.el, cc-engine.el: Add in two checks for user errors,
	thus eliminating cryptic and unhelpful Emacs error messages.  (1)
	Check the arg to `c-set-style' is a string.  (2) Check that
	settings to `c-offsets-alist' are not spuriously quoted.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-major-mode-is): Fixed expansion inside
	`c-lang-defconst' so that it works better with fallback languages.

	* cc-defs.el (c-add-language): Fixed a typo that caused it to fail
	to record the base mode.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-syntactic-re-search-forward): Fixed bug so that
	it doesn't go past the closing paren when PAREN-LEVEL is used.
	Reordered the syntax checks to get more efficient skipping in some
	situations.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-electric-brace): Don't trip up on a line
	continuation which might precede the newly inserted '{'.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-syntactic-re-search-forward): Fixed cases where
	it could loop indefinitely.

2004-08-11  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-cmds.el: (c-electric-brace): don't delete a comment which
	precedes the newly inserted `{'.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-declarators): Handle array size specs
	correctly.  Only fontify identifiers in front of '(' with as
	functions - don't accept any paren char.  Tightened up initializer
	skipping to stop before function and class blocks.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-beginning-of-decl-1): Fixed bug where the point
	could be left directly after an open paren when finding the
	beginning of the first decl in the block.

	* cc-engine.el (c-parse-state): Don't use the syntax table when
	filtering out legitimate open parens to be recorded.  This could
	cause cache inconsistencies when e.g. `c++-template-syntax-table'
	was temporarily in use.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-on-identifier, c-simple-skip-symbol-backward):
	Small fix for handling "-" correctly in `skip-chars-backward'.
	Affected the operator lfun syntax in Pike.

2004-08-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-invalidate-sws-region-after): Fixed bug that
	could cause an error from `after-change-functions' when the
	changed region is at bob.

2003-11-18  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.42 released.

2003-11-16  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* Patch release 5.30.8.

	* cc-engine.el (c-guess-continued-construct,
	c-guess-basic-syntax): Check a little more carefully if it's a
	function declaration when an unknown construct followed by a block
	is found inside a statement context.  This avoids macros followed
	by blocks to be taken as function declarations.

	(c-guess-continued-construct): Changed the analysis of a statement
	continuation with a brace open to `substatement-block', for
	consistency with recognized statements.

	(c-add-stmt-syntax): Don't continue to the surrounding sexp if the
	start is in a position so that `c-beginning-of-statement-1' jumped
	to the beginning of the same statement.

2003-11-16  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el, cc-engine.el (c-forward-<>-arglist-recur): Don't
	accept binary operators in the arglist if we're in a function call
	context, i.e. if `c-restricted-<>-arglists' is set.  That avoids
	template recognition in cases like "if (a < b || c > d)".

	(c-restricted-<>-arglists): New more appropriate name for
	`c-disallow-comma-in-<>-arglists'.

	Accessing functions updated for the variable name change.

2003-11-16  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-syntactic-re-search-forward): Fix bug where the
	match data could get clobbered if NOT-INSIDE-TOKEN is used.

2003-11-16  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-beginning-of-statement-1): Don't allow parens in
	labels.

	(c-backward-to-decl-anchor): Use `c-beginning-of-statement-1'
	instead of duplicating parts of it.  This fixes bogus label
	recognition.

	* cc-align.el (c-gnu-impose-minimum): Reverted to the old method
	of checking the context in which to apply the minimum indentation,
	so that it isn't enforced in e.g. namespace blocks.

	* cc-vars.el (c-inside-block-syms): New constant used by
	`c-gnu-impose-minimum'.  It's defined close to `c-offsets-alist'
	to somewhat reduce the risk of becoming stale.

	* cc-cmds.el, cc-engine.el (c-shift-line-indentation): Moved from
	cc-cmds to cc-engine to allow use from cc-align.

2003-11-16  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-beginning-of-inheritance-list): Cope with fully
	qualified identifiers containing "::".

2003-11-16  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-make-keywords-re): Added kludge for bug in
	`regexp-opt' in Emacs 20 and XEmacs when strings contain newlines.

2003-11-16  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-vars.el (c-emacs-features): Use a space in front of the name
	of the temporary buffer.  That also avoids dumping problems in
	XEmacs due to undo info being left around after the buffer is
	killed.

2003-11-16  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-in-knr-argdecl): Look closer at the function
	arglist to see if it's a K&R style declaration.

	(c-guess-basic-syntax): CASE 5B.2: Check with `c-in-knr-argdecl'
	before returning `knr-argdecl-intro'.

2003-10-31  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.41 released.

2003-09-25  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.40 released.

2003-09-24  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-parse-state): Fixed bug that could cause errors
	when the state cache contains info on parts that have been
	narrowed out.

2003-09-24  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-vars.el (c-comment-prefix-regexp): Document that
	`c-setup-paragraph-variables' has to be used when this variable is
	changed; it doesn't work to reinitialize the mode since that
	typically clobbers the variable.

	* cc-styles.el (c-setup-paragraph-variables): Made it interactive.

2003-09-24  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-declarations): Fixed recognition of
	constructors and destructors for classes whose names are matched
	by `*-font-lock-extra-types'.

	* cc-langs.el (c-type-list-kwds): If "operator" is followed by an
	identifier in C++ then it's a type.

2003-09-24  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (c-font-lock-invalid-string): Fixed eob problem that
	primarily affected XEmacs.  Don't use faces to find unterminated
	strings since Emacs and XEmacs fontify strings differently - this
	function should now work better in XEmacs.

2003-09-24  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-electric-brace): Fixed a bug in the
	`expand-abbrev' workaround which caused braces to disbehave inside
	macros.

	* cc-engine.el (c-forward-keyword-clause): Fixed error handling.
	This bug could cause interactive font locking to bail out.

2003-09-24  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-just-after-func-arglist-p): Handle paren-style
	types in Pike.  Also fixed some cases of insufficient handling of
	unbalanced parens.

2003-08-26  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.39 released.

2003-08-26  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-cmds.el (c-electric-brace): Work around for a misfeature in
	`expand-abbrev' which caused electric keywords like "else" to
	disappear if an open brace was typed directly afterwards.

2003-08-26  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-vars.el (c-extra-types-widget): The doc string is mandatory
	in `define-widget'.

	* cc-align.el, cc-langs.el (c-lineup-math): Don't align the
	operators "!=", "<=" and ">=" as assignment operators.

	(c-assignment-operators): New language constant that only contains
	the assignment operators.

	(c-assignment-op-regexp): New language variable used by
	`c-lineup-math'.

2003-08-26  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-just-after-func-arglist-p): Safeguard against
	unbalanced sexps.

2003-08-03  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.38 released.

2003-08-03  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-mode.el (c-init-language-vars-for): Add argument MODE.
	Renamed from c-init-c-language-vars'.
	(c-initialize-cc-mode): Change accordingly.
	(c-common-init): Ditto.
	(c-mode): Ditto.
	(c++-mode): Use function.
	(objc-mode): Ditto.
	(java-mode): Ditto.
	(idl-mode): Ditto.
	(pike-mode): Ditto.
	(awk-mode): Ditto.

2003-08-01  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-end-of-current-token): Return whether or not the
	point moved.

	(c-search-decl-header-end): Don't trip up on operator identifiers
	in C++ and operators like == in all languages.

	* cc-engine.el (c-backward-to-decl-anchor): Detect leading labels
	correctly.

2003-07-17  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.37 released.

2003-07-16  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-defs.el (c-langelem-sym, c-langelem-pos, c-langelem-2nd-pos):
	Added accessor functions for syntactic elements.

2003-07-09  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-literal-faces): Declare as a variable since it
	might be modified.

	* cc-langs.el: (c++-make-template-syntax-table,
	c-syntactic-ws-start, c-syntactic-ws-end): Gave more consistent
	names to these language constants.

2003-07-08  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-engine.el (c-guess-basic-syntax): Do not do hidden buffer
	changes; there's third party code that calls this function
	directly.

2003-07-07  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-fonts.el (javadoc-font-lock-keywords,
	autodoc-font-lock-keywords): Don't byte compile on font lock
	initialization when running from byte compiled files.

2003-07-06  Alan Mackenzie  <bug-cc-mode@gnu.org>

	* cc-engine.el: Fix AWK mode indentation when previous statement
	ends with auto-increment "++".

2003-07-06  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.36 released.

2003-07-05  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-langs.el, cc-styles.el (c-style-alist, c-lang-variable-inits,
	c-lang-variable-inits-tail): The values of these are changed, so
	declare them as variables and not constants.

	* cc-mode.el: Fixed some autoload problems: Try to ensure that the
	entry for ".c" extension comes before the one for ".C" on
	`auto-mode-alist', to behave better on case insensitive OS:es.
	Fixed incorrect entries that were added to
	`interpreter-mode-alist'.  Moved the autoload directives for AWK
	to the top level since they aren't recognized anywhere else.  Do
	not use the new AWK mode doc in the autoload form for the old AWK
	mode.

2003-07-04  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.35 released.

2003-07-03  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* Update to CC Mode 5.30.

2003-04-02  Norbert Koch  <viteno@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.33 released.

2003-04-01  Steve Youngs  <youngs@xemacs.org>

	* Makefile (ELCS): Don't build cc-make.el or cc-mode-19.el.
	Rename both to *.upstream.
	(PRELOADS): Add cc-bytecomp.el.

2003-03-09  Ben Wing  <ben@xemacs.org>

	* Makefile:
	Delete explicit compile:: and binkit: rules.
	Don't add custom-load.elc to the list of generated elc's.
	Use STANDARD_DOCS instead of explicitly giving the targets
	and dependencies.
	Move the include of XEmacs.rules to the end of the file.

2003-01-13  Rendhalver [Peter Brown]  <rendhalver@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.32 released.

2003-01-06  Ville Skyttä  <scop@xemacs.org>

	* cc-mode.el: Make auto-mode-alist modifications autoload-only.

2002-11-29  Ben Wing  <ben@xemacs.org>

	* .cvsignore: Remove files now handled automatically by CVS.
	* Makefile: Use `compile' instead of hard-coded `all'.

2002-10-15  Ville Skyttä  <scop@xemacs.org>

	* Makefile (srckit): Remove.

2002-10-14  Ville Skyttä  <scop@xemacs.org>

	* Makefile (MANUAL): Removed (unused).

2002-10-07  Rendhalver [Peter Brown]  <rendhalver@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.31 released.

2002-09-30  Ville Skyttä  <scop@xemacs.org>

	* cc-mode.el: Add autoloaded auto-mode-alist associations.

2002-09-06  Rendhalver [Peter Brown]  <rendhalver@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.30 released.

2002-08-31  Ville Skyttä  <scop@xemacs.org>

	* cc-engine.el (c-parse-state): Fix problem in finding
	out the parenthesis state around the indentation position.
	Patch from Martin Stjernholm (author).

2002-08-02  Rendhalver [Peter Brown]  <rendhalver@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.29 released.

2002-08-01  Ville Skyttä  <scop@xemacs.org>

	* cc-engine.el (c-beginning-of-member-init-list):
	Apply patch from Martin Stjernholm submitted by Neal D. Becker,
	Martin's comments: CC Mode 5.28 has a bug that causes it to
	confuse < and > in such initialization lists with template
	parentheses.  The following patch corrects that.

2002-07-16  Adrian Aichner  <adrian@xemacs.org>

	* .cvsignore: Add generated .info* and .html files.

2002-05-09  Steve Youngs  <youngs@xemacs.org>

	* Makefile (VERSION): XEmacs package 1.28 released.

2002-05-08  Steve Youngs  <youngs@xemacs.org>

	* Makefile (PRELOADS): No need to push the current directory into
	the load-path.

2002-01-13  Steve Youngs  <youngs@xemacs.org>

	* package-info.in (provides): Update to include all provides.

2002-01-07  Adrian Aichner  <adrian@xemacs.org>

	* Makefile (HTML_FILES): New.
	* Makefile (HTML_DEP): New.

2001-08-13  Enrico Scholz  <enrico.scholz@informatik.tu-chemnitz.de>

	* cc-cmds.el (c-fill-paragraph): Use 'c-current-comment-prefix'.

2001-05-11  Martin Stjernholm  <bug-cc-mode@gnu.org>

	* cc-langs.el (c-switch-label-key): Regexp fix.

2001-02-24  Ben Wing  <ben@xemacs.org>

	* Makefile (MANUAL):
	Conditionalize extra MS Windows quoting on
	XEMACS_NATIVE_NT_NEEDS_EXTRA_QUOTING, since it breaks things under
	newer Cygwins.

2001-02-28  Steve Youngs  <youngs@xemacs.org>

	* Makefile (REQUIRES): Add mail-lib.
	(ELCS): Add missing .elc files.

	* Import cc-mode 5.28.

2000-11-07  Martin Buchholz <martin@xemacs.org>

	* cc-mode.texi: Doc fix.

2000-10-05  Martin Buchholz  <martin@xemacs.org>

	* *: Mega typo fix.

2000-07-26  Ben Wing  <ben@xemacs.org>

	* Makefile (PRELOADS): correct command-line quoting for MS Windows
	native.

2000-07-10  Andreas Jaeger  <aj@suse.de>

	Release 5.27 downloaded from http://cc-mode.sourceforge.net/.

1998-12-30  Martin Buchholz  <martin@xemacs.org>

	* Makefile (MAINTAINER): The preferred address is bug-cc-mode@gnu.org

	* Release 5.25
	Snarfed from http://www.python.org/emacs/cc-mode/

1998-03-05  SL Baur  <steve@altair.xemacs.org>

	* cc-mode.el: cc-defs isn't needed at run-time.

	* Synch with 5.21

1998-02-11  SL Baur  <steve@altair.xemacs.org>

	* cc-mode.el: Correct dependency on cc-defs (needs to be before
	use of `c-safe' macro.

Sun Feb  8 15:30:43 1998  Barry A. Warsaw  <cc-mode-help@python.org>

	* Release 5.20

Wed Feb 04 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-mode.el (c-mode, c++-mode, objc-mode, java-mode): set
	imenu-case-fold-search to nil.

Tue Feb 03 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-langs.el (c-postprocess-file-styles): If a file style or file
	offsets are set, make the variables local to the buffer (via
	make-local-variable).

	* cc-styles.el (c-make-styles-buffer-local): Take an optional
	argument which switches between make-variable-buffer-local and
	make-local-variable.  Generalize.

Mon Feb 02 1998  Martin Stjernholm  <cc-mode-help@python.org>

	* cc-align.el (c-lineup-close-paren, c-indent-one-line-block): New
	indentation functions.

	* cc-cmds.el (c-beginning-of-statement, c-end-of-statement): Do
	not move by sentence in strings.  Doc fixes.

	* cc-mode.texi: Document new indentation functions.

Sat Jan 24 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-defs.el (c-point): In XEmacs, use scan-lists +
	buffer-syntactic-context-depth to radically speed up locating
	top-level defun opening brace in some situations.  When the braces
	hang, this can make c-parse-state from between 3 to 60 times
	faster.  When they don't hang, this may be a few percentage points
	slower (not noticeable to me though).  The variable
	c-enable-xemacs-performance-kludge-p toggles the behavior.  This
	change has no effect on Emacs, which lacks the built-in function
	buffer-syntactic-context-depth.

	* cc-mode.texi: Discuss c-enable-xemacs-performance-kludge-p in
	the section on performance.

	* cc-vars.el (c-enable-xemacs-performance-kludge-p): New variable.

Fri Jan 23 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-cmds.el cc-defs.el cc-engine.el (c-beginning-of-defun,
	c-indent-defun, c-parse-state): Use (c-point 'bod) instead of
	beginning-of-defun directly.

Tue Jan 20 1998  Martin Stjernholm  <cc-mode-help@python.org>

	* cc-cmds.el (c-beginning-of-statement): Speedup; it's only
	necessary to call `c-literal-limits' once when the function is
	entered.

Mon Jan 19 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-align.el (c-semi&comma-no-newlines-before-nonblanks,
	c-semi&comma-no-newlines-for-oneline-inliners): New functions,
	appropriate for c-hanging-semi&comma-criteria, but not placed on
	that variable by default.

	* cc-langs.el (c-mode-base-map): Comment out c-beginning-of-defun
	and c-end-of-defun bindings, since RMS doesn't want these to be
	the default.

	* cc-mode.texi: Describe c-beginning-of-defun and c-end-of-defun.
	Describe the new c-hanging-semi&comma-criteria functions.

Sun Jan 18 1998  Martin Stjernholm  <cc-mode-help@python.org>

	* cc-cmds.el (c-beginning-of-statement): Handle multiple C++ line
	comments a little better.

	Almost completely rewritten.  It's now more thorough when handling
	strings and comments and the transitions between them and the
	surrounding code.  The statement parsing is also rewritten because
	`c-{beginning|end}-of-statement-1' does no longer do what we want
	in this function (e.g. c-b-o-s-1 doesn't go into blocks).  It also
	works better for different counts and when sentence-flag is nil.

	* cc-engine.el (c-forward-syntactic-ws, c-backward-syntactic-ws):
	Removed the narrowings which doesn't seem to have much effect.
	Instead a simple check is made against the given limit.  In
	`c-backward-syntactic-ws' this means that there's no need to
	search for bod, which helps up speed quite a lot in some areas.

	(c-collect-line-comments): New function that given the limits of
	one C++ style line comment returns the range for all adjacent line
	comments.  This functionality is moved from the functions
	`c-literal-limits' and `c-literal-limits-fast'.

	(c-literal-limits): New function that finds the start and end pos
	of a comment or string surrounding point.  This function is Emacs
	19.34 compatible and it has a workaround for what seems to be a
	bug in `parse-partial-sexp' when we use an existing state to get
	the state for the very next character.

	(c-literal-limits-fast): A faster variant of `c-literal-limits'
	for newer Emacsen where the state returned from
	`parse-partial-sexp' contains the starting pos of the last
	literal.  This does not contain the workaround described above.
	The function is not yet tested and therefore not in use for now.
	Note that these functions regard the position between the first
	and second char of a comment starter to be part of the comment.
	Although `parse-partial-sexp' (in Emacs 19 anyway) doesn't do
	this, it seems more intuitive to me.  Maybe `c-in-literal' should
	do this too?

Thu Jan 15 1998  Martin Stjernholm  <cc-mode-help@python.org>

	* cc-mode-19.el Added `when' and `unless'.

Thu Jan 15 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-engine.el (c-guess-basic-syntax): Fixed a few byte compiler
	warnings.

Wed Jan 14 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-cmds.el (c-beginning-of-defun, c-end-of-defun): New commands
	which mimic the standard built-ins, but do a much better job of
	finding the open brace when it's hung on the right side (as is the
	case with the most common Java style).

	* cc-engine.el (c-backward-to-start-of-do): Break infloop for
	illegal code, e.g. when someone types while (TRUE) { at the top of
	a buffer, we shouldn't hang when the { is typed!

Tue Jan 13 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-cmds.el (c-beginning-of-statement): When moving forward by
	sentences, because we're either inside or at the start of a
	comment, be sure to limit movement to only within the extent of
	the comment.

Sat Jan 10 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-langs.el (c-java-method-key): I really don't remember why
	this was added, but it seems to do more harm than good.  Besides,
	its value was clearly wrong, being inherited from Objective-C.

	* cc-mode.el (java-mode): Set c-method-key to nil.  I don't think
	this is necessary for Java, and besides, the old value was
	inherited from Objective-C which was clearly not right.  With this
	change, all regression tests pass and the example by Bengt
	Martensson also passes:

	class Baz
	{
	    int blah()
	    {
		return 1
		    + 2
		    + 3
		    + foobar()
		    + 5
		    + 6;
	    }
	}

	* cc-mode.texi Add some explanation to "gnu" style and "user"
	style, describing the relationship between these and user
	Customizations.

	* cc-vars.el (c-default-style): Change this back to "gnu" after
	(re-reading old) discussions with RMS.  This may confuse users who
	set variables in the top-level of their .emacs files, or using the
	Custom interface, since those changes will get incorporated into
	the "user" style.  RMS insists, however, that the default style be
	"gnu".

Sun Jan 04 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-cmds.el (c-electric-colon): Newlines should not be inserted
	before or after scope operators, regardless of the value of
	c-hanging-colons.

	* cc-engine.el (c-backward-to-start-of-if): Workaround a nasty to
	track down bug.  If point is < lim, then this function can
	actually land you forward into the buffer.  This can cause an
	infloop in c-beginning-of-statement-1. It is probably a bug that
	this function gets called with a lim > point, but that's even
	harder to figure out, so if that's the case when this function is
	called, it's simpler just to ignore lim and use bod.  This breaks
	the infloop without causing broken indentation.

Sat Jan 03 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-align.el (c-lineup-dont-change): New lineup function that
	leaves the current line's indentation unchanged.  Used for the new
	cpp-macro-cont syntactic symbol.

	* cc-cmds.el (c-electric-brace): namespace-open and
	namespace-close braces can hang.

	* cc-defs.el (c-emacs-features): Added autoload cookie which Steve
	Baur claims is necessary for XEmacs.

	* cc-engine.el (c-search-uplist-for-classkey): When searching up
	for a class key, instead of hardcoding the extended search for
	"extern", use the new variable c-extra-toplevel-key, which is
	language dependent.  For C++, this variable includes the keyword
	"namespace" which will match C++ namespace introducing blocks.

	(c-guess-basic-syntax): Support for recognizing C++ namespace
	blocks, by elaborating on the mechanism used to find external
	language blocks.  Searches which hardcoded "extern" now use
	c-extra-toplevel-key, a language dependent variable.  Case clauses
	that were modified: CASE 5A.1, CASE 5A.4, CASE 5F, CASE 5I, CASE
	14A.

	CASE 3: we can now determine whether we're at the beginning of a
	cpp macro definition, or inside the middle of one. Set syntax to
	'cpp-macro in the former case, 'cpp-macro-cont in the latter.  In
	both cases, the relpos is the beginning of the macro.

	(c-forward-syntactic-ws): Added code that skips forward over
	multi-line cpp macros.

	(c-beginning-of-macro): Moved, and made into a defsubst.  This
	function can now actually find the beginning of a multi-line C
	preprocessor macro.

	(c-backward-syntactic-ws): Use c-beginning-of-macro to skip
	backwards over multi-line macro definitions.

	(c-in-literal, c-fast-in-literal): Use c-beginning-of-macro to
	find out whether we're in a multi-line macro definition.

	* cc-langs.el (c-C-extra-toplevel-key, c-C++-extra-toplevel-key,
	c-extra-toplevel-key): New variables which parameterize the search
	for additional top-level enclosing constructs.  In all languages,
	extern lang blocks are supported (but maybe this should just be C
	and C++?). In C++, also namespace blocks are supported.

	* cc-menus.el Imenu patches by Masatake Yamato and Jan Dubois.

	* cc-mode.el (c++-mode): Set c-extra-toplevel-key to
	c-C++-extra-toplevel-key.

	(c-initialize-on-load): New variable, *not* customized.  When set
	to t -- the default -- c-initialize-cc-mode is called when the
	cc-mode.el file is loaded, e.g. via (require 'cc-mode).  This is
	backwards compatible with .emacs files that used CC Mode 4.  I'm
	still not 100% sure this is the right thing to do.

	* cc-mode.texi: Added descriptions of the new C++ namespace
	syntactic symbols: namespace-open, namespace-close, innamespace.
	Added an example for this and also multi-line macros.

	Describe c-lineup-dont-change and the new cpp-macro-cont syntactic
	symbol.  Remove the `known limitation' that multi-line macros
	aren't supported.

	* cc-styles.el (c-offsets-alist): Three new syntactic symbols:
	innamespace, namespace-open, namespace-close.  These support C++
	namespace blocks.

	Added new syntactic symbol cpp-macro-cont, by default bound to
	c-lineup-dont-change.  This symbol is assigned to subsequent lines
	of a multi-line C preprocess macro definition.

	* cc-vars.el (c-default-style): Variable is user customizable so
	it's docstring should start with a `*'.

Fri Jan 02 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-engine.el (c-fast-in-literal): Function which should be
	faster than c-in-literal.  This uses buffer-syntactic-context
	which is a speedy built-in that exists only in XEmacs.  Make it's
	alias conditional on that built-in's existance.  To be honest, the
	performance effects should be tested.  Also c-fast-in-literal
	knows about multi-line cpp macros while c-in-literal does not.
	The latter should be taught about this, but this change will wait
	for a future mega-patch to handle multi-line macros.

Thu Jan 01 1998  Barry Warsaw  <cc-mode-help@python.org>

	* cc-cmds.el (c-comment-line-break-function): When breaking a
	line-oriented comment, copy the comment leader from the previous
	line instead of hardcoding it to "// ".  This ensures that
	whitespace between the slashes and the text is preserved.

Tue Nov 18 1997  Barry Warsaw  <cc-mode-help@python.org>

	* cc-langs.el (c-mode-base-map): Bind c-mark-function using a
	portable representation of C-M-h that differentiates this from
	M-BS on both XEmacs and Emacs.

Sat Nov 15 1997  Barry Warsaw  <cc-mode-help@python.org>

	* cc-cmds.el (c-electric-pound, c-electric-brace,
	c-electric-slash, c-electric-star, c-electric-semi&comma,
	c-electric-colon, c-electric-lt-gt, c-scope-operator,
	c-indent-command, c-indent-exp, c-indent-defun,
	c-backslash-region, c-fill-paragraph): Added "*" to interactive
	spec to barf-if-buffer-read-only.

Fri Nov 14 1997  Barry Warsaw  <cc-mode-help@python.org>

	* cc-cmds.el (c-fill-paragraph): regexp-quote the fill-prefix when
	search forward for the end of line oriented comments.  This is in
	case the fill-prefix contains regexp special characters
	(e.g. fill-prefix == " //* ")

	(c-backslash-region): Do not preserve the zmacs region (XEmacs).

Wed Nov 12 1997  Barry Warsaw  <cc-mode-help@python.org>

	* cc-langs.el (c-mode-base-map): c-mark-function moved back to
	M-C-h.  RMS says: "It ought to be on M-C-h, because that is the
	key to mark one function definition in whatever language you're
	using."  I don't remember why it was moved in the first place.

Tue Nov 04 1997  Barry Warsaw  <cc-mode-help@python.org>

	* cc-cmds.el (c-electric-backspace, c-electric-delete):
	Interactive spec should have a read-only *.

Thu Oct 30 1997  Barry Warsaw  <cc-mode-help@python.org>

	* cc-styles.el (c-styles-alist): Merged "jdk" into "java" style
	and removed "jdk" style.  Only differences now are inline-open and
	c-basic-offset.

Wed Oct 29 1997  Barry Warsaw  <cc-mode-help@python.org>

	* cc-mode.texi Document "jdk" style.

	* cc-styles.el (c-style-alist): "jdk" style given by Martin
	Buchholz <mrb@Eng.Sun.COM> for conformance with Sun's JDK style.

Fri Oct 10 1997  Barry Warsaw  <cc-mode-help@python.org>

	* cc-styles.el (c-set-style-2, c-initialize-builtin-style): Don't
	special case "cc-mode", it's a derived style.

	Fix setup of derived style "cc-mode".

	Introduce the new default style "user" which contains all user
	customizations.  The style "cc-mode" is retained as an alias, but
	it's use is deprecated.  The default style variable has been
	renamed c-default-style.

	* cc-vars.el (c-site-default-style): Renamed to c-default-style.
	Also, the default value is now "user".

1998-01-24  SL Baur  <steve@altair.xemacs.org>

	* Makefile (VERSION): Update to package standard 1.0.
	* package-info.in: Ditto.

1998-01-17  SL Baur  <steve@altair.xemacs.org>

	* cc-mode.el (c-submit-bug-report): Move reporter dependency
	inside the function that uses it.

1998-01-09  SL Baur  <steve@altair.xemacs.org>

	* cc-engine: (c-guess-basic-syntax): Guard against c-access-key being
	nil.
	From Didier Verna <verna@inf.enst.fr>

1998-01-03  SL Baur  <steve@altair.xemacs.org>

	* Makefile: Update to newer package interface.

1997-12-25  SL Baur  <steve@altair.xemacs.org>

	* cc-engine.el: Add explicit dependency on cc-defs.
	* cc-styles.el: Ditto.

1997-12-21  SL Baur  <steve@altair.xemacs.org>

	* Makefile: Created.
