1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-13 09:30:24 -08:00
Commit graph

53 commits

Author SHA1 Message Date
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Miles Bader
b03f96dc5a Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1074
2008-02-24 10:09:07 +00:00
Juanma Barranquero
cb5bf6ba22 *** empty log message *** 2008-02-05 14:24:26 +00:00
Alan Mackenzie
4fae8922be Introduce elements for the syntactic symbol arglist-cont-nonempty into
c-hanging-braces-alist.  Amend pertinent functions and 5 styles.
2008-01-27 13:59:47 +00:00
Alan Mackenzie
9bb1a1d66c Introduce elements for the syntactic symbol arglist-cont-nonempty into
c-hanging-braces-alist.  Amend pertinent functions and 5 styles.
2008-01-26 22:26:18 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
4e643dd23c Add 2008 to copyright years. 2008-01-07 02:11:00 +00:00
Glenn Morris
21a55d57be (c-make-styles-buffer-local)
(c-set-style): Use mapc rather than mapcar.
2007-10-13 03:01:12 +00:00
Glenn Morris
1a484753b2 Switch license to GPLv3 or later. 2007-07-25 04:29:40 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Alan Mackenzie
e309f66c9e Add my name. 2007-01-20 18:33:11 +00:00
Alan Mackenzie
51c9af45fe Update CC Mode to version 5.31.4. The detailed changes are those
recorded in the ChangeLog for 2007-01-01.
2007-01-01 22:11:28 +00:00
Glenn Morris
92ab38343d Fix Copyright format. 2006-12-03 01:00:52 +00:00
Eli Zaretskii
74456292ce (c-style-alist): Doc fix. 2006-05-19 19:50:50 +00:00
Alan Mackenzie
cb694ab730 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, cc-styles.el, cc-subword.el, cc-vars.el:  Add 2006 to the
copyright statement.

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.
(ii): Fix a typo.

cc-cmds.el, cc-mode.el, cc-engine.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.

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.

cc-cmds.el (c-electric-brace, c-electric-semi&comma, c-electric-colon):
Correct doc-strings: "/ln" -> "/la".

cc-cmds.el (c-electric-brace): Fix clean-up brace-else-brace (error due
to mbeg, mend being undefined).

cc-defs.el (c-version): Update to 5.31.3.

cc-defs.el: [Supersedes patch V1.38]: (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.

cc-engine.el (c-beginning-of-statement-1): Clarify doc-string and
comments.  Distinguish real labels ("case 1:" or "foo:") from non-labels
("public:").

cc-engine.el (c-after-change-check-<>-operators): Remove save-match-data,
reversing change for V1.45.  save-match-data is now in c-after-change.

cc-engine.el (c-forward-objc-directive): Replace c-forward-token-2 with
crude coding; c-f-t-2 doesn't move over a token at EOB.  Objc Mode was
hanging after typing, e.g., "@implementation".

cc-langs.el (c-filter-ops): Made it available at runtime too to work when
`c-make-init-lang-vars-fun' needs to evaluate from source.

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-mode-menu): Add menu items for Electric Mode and Subword Mode.

cc-mode.el (c-after-change): Protect the match data with save-match-data.
It was getting corrupted by c-after-change-check-<>-operators.

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-02-24 15:33:02 +00:00
Nick Roberts
d91362c9e0 Update copyright for 2006. 2006-02-10 09:00:31 +00:00
Alan Mackenzie
0386b551af Update CC Mode to release 5.31. 2005-12-02 12:30:36 +00:00
Stefan Monnier
6c715ec53e (c-setup-paragraph-variables): Make sure we do
not change the global value of those vars.
2005-10-03 21:21:35 +00:00
Nick Roberts
034babe1e1 Update copyright for release of 22.1 for progmodes directory. 2005-08-01 08:43:45 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Martin Stjernholm
3efc2cd768 2005-05-23 Martin Stjernholm <bug-cc-mode@gnu.org>
CC Mode update to 5.30.10:

	* 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.

	* cc-mode.el (c-make-inherited-keymap): Fixed cc-bytecomp bug when
	the file is evaluated interactively.

	* cc-engine.el (c-guess-basic-syntax): Handle operator
	declarations somewhat better in C++.

	* 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.

	* 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.

	* 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 Mode update to 5.30.10:

	* 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.

	* 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>.

	* cc-awk.el: Add character classes (e.g. "[:alpha:]") into AWK
	Mode's regexps.

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 00:03:59 +00:00
Martin Stjernholm
2a15eb73df Updated CC Mode to 5.30.9. 2004-08-11 16:22:21 +00:00
Martin Stjernholm
cfb966f42a (c-setup-paragraph-variables): Made it interactive. 2003-09-24 13:56:27 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Martin Stjernholm
2eb455ab32 (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.
2003-07-05 19:54:33 +00:00
Martin Stjernholm
d9e94c2273 Updated CC Mode to version 5.30. 2003-07-03 12:30:59 +00:00
Martin Stjernholm
ea7038228b (c-set-offset): Don't find a default syntactic element through
syntactic analysis if called outside a CC Mode buffer.
2003-02-10 00:51:25 +00:00
Juanma Barranquero
4793c36980 (c-make-styles-buffer-local): Fix typo. 2003-01-27 08:47:18 +00:00
Martin Stjernholm
6635cf6e49 (c-set-style, c-set-style-1): Added another state for the
`dont-override' flag where it only keeps globally set variables.
2002-06-08 23:38:42 +00:00
Martin Stjernholm
a66cd3ee16 CC Mode update to version 5.29. This is for testing; it's not a released
version.
2002-04-22 00:35:36 +00:00
Pavel Janík
3afbc435ac Some fixes to follow coding conventions. 2001-07-16 07:46:48 +00:00
Richard M. Stallman
7c2ef7338d (c-set-style): Don't specify initial contents for completing-read. 2001-06-23 16:22:04 +00:00
Gerd Moellmann
130c507e58 Update to version 5.28. 2001-03-21 12:59:36 +00:00
Dave Love
e7cff5504b Fix copyright years. 2000-12-06 20:24:23 +00:00
Gerd Moellmann
6cfd56b338 (c-style-alist): The basic offset for the BSD
style corrected to 8.

(c-style-alist): Adjusted the indentation of
brace list openers in the gnu style.

(c-make-styles-buffer-local): Flag style
variable localness in c-style-variables-are-local-p to make
the compatibility measure in c-common-init work well.

(c-set-style-1): c-special-indent-hook can no
longer contain set-from-style.
(c-initialize-builtin-style): Don't check for
set-from-style on c-special-indent-hook.
(c-copy-tree): Obsolete.  The standard function
copy-alist is sufficient now.

(c-set-style, c-set-style-1,
c-get-style-variables): Fixes to variable initialization so
that duplicate entries in styles have the same effect
regardless of DONT-OVERRIDE.

(c-set-style-2): Fixed bug where the
initialization of inheriting styles failed when the
dont-override flag is set.
2000-07-24 11:10:15 +00:00
Gerd Moellmann
51f606dea8 Installed version 5.26 1999-12-12 18:24:19 +00:00
Barry A. Warsaw
0ec8351b95 Installed CC Mode 5.25. 1999-02-08 16:53:18 +00:00
Richard M. Stallman
f014d22e07 (c-copy-tree): New function.
(c-initialize-builtin-style): Use c-copy-tree.
1998-02-17 07:26:46 +00:00
Richard M. Stallman
0bacd8d0b2 (c-make-styles-buffer-local): Take an optional argument which switches
between make-variable-buffer-local and make-local-variable.  Generalize.

(c-offsets-alist): Three new syntactic symbols: innamespace,
namespace-open, namespace-close.  These support C++ namespace blocks.
Also, 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.

(c-style-alist): "jdk" style for conformance with Sun's JDK style.

(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.
1998-02-17 07:13:59 +00:00
Karl Heuer
82aba9f42f (c-initialize-builtin-style):
Only use copy-tree if it is
funcall-able.  This is the right patch, and was given by Erik Naggum
<erik@naggum.no>
1997-10-23 07:50:28 +00:00
Karl Heuer
8220e74cf2 (c-initialize-builtin-style):
Use existing copy-tree if it's defined.

copy-sequence doesn't work; the
c-offsets-alist must be copied recursively.  Use copy-tree solution
given by Simon Marshall.
1997-10-23 07:32:07 +00:00
Richard M. Stallman
ecec411d9e (c-initialize-builtin-style): Don't ever try to use copy-tree. 1997-09-21 14:11:37 +00:00
Richard M. Stallman
f4a4c856ec (c-initialize-builtin-style):
Copy the whole tree instead of just copy-sequence.
1997-09-19 04:30:28 +00:00
Richard M. Stallman
62971612a2 (c-style-alist) <python>:, knr-argdecl-intro == +
fill-column = 78, arglist-intro <= +, inextern-lang <= 0.
Set c-comment-continuation-stars to "".
1997-09-08 03:22:22 +00:00
Richard M. Stallman
c3d3eea991 (c-style-alist): "python" style requires c-comment-continuation-stars be "". 1997-08-16 03:37:28 +00:00
Richard M. Stallman
b402d19f2f (c-style-alist) <gnu>:
Set c-comment-continuation-stars and c-hanging-comment-ender-p.
1997-08-14 22:10:02 +00:00
Richard M. Stallman
3900d73b85 (c-offsets-alist): Added template-args-cont syntactic symbol.
(c-styles-alist): In "java" style, set c-hanging-comment-starter-p to
nil to preserve Javadoc starter lines.
1997-08-11 22:15:23 +00:00
Richard M. Stallman
63add9c9fe (c-styles-alist): In "java" style, set
c-hanging-comment-starter-p to nil to preserve Javadoc starter lines.

(c-set-style-2): Fixed broken implementation of inherited styles.

(c-set-style): Call c-initialize-builtin-style.
(c-initialize-builtin-style): Handle c-style-variables-are-local-p.
1997-08-09 18:36:45 +00:00
Richard M. Stallman
275a02d412 (c-set-offset): Add autoload cookie. 1997-08-07 17:36:36 +00:00
Richard M. Stallman
31b2af0a3b (c-initialize-builtin-style): Use copy-sequence
instead of c-copy-tree.

(c-copy-tree): Function deleted.
1997-07-18 02:12:00 +00:00