1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-14 18:10:32 -08:00
Commit graph

74 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
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
Miles Bader
1bad168e59 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1006
2008-01-22 23:53:46 +00:00
Dan Nicolaescu
fc9a928757 * progmodes/sh-script.el (sh-basic-offset):
* progmodes/cc-vars.el (c-syntactic-indentation)
(c-syntactic-indentation-in-macros): Mark as safe.
2008-01-19 18:32:34 +00:00
Alan Mackenzie
1d6c7cd7ee (c-constant-symbol): Put this defun inside an eval-and-compile, so as to
permit byte-compiling (e.g. in bootstrap).
2008-01-16 21:26:59 +00:00
Alan Mackenzie
3a3995f843 (c-constant-symbol): Put this defun inside an eval-and-compile, so as to
permit byte-compiling (e.g. in bootstrap).
2008-01-15 23:56:38 +00:00
Alan Mackenzie
b4d0e5173b * progmodes/cc-vars.el (c-constant-symbol): New function which supersedes
c-const-symbol.  During a customize-.. call it enables an element of
(e.g.) c-hanging-braces alist to have its name displayed, even when the
default value of c-h-b etc. doesn't include the elemnt.  Replace uses of
the old function by the new.

* progmodes/cc-vars.el (c-hanging-braces-alist): Remove the obscure
non-working fragment ":value c-".
2008-01-14 22:35:40 +00:00
Alan Mackenzie
43b829c118 * (c-constant-symbol): New function which supersedes c-const-symbol.
During a customize-.. call it enables an element of (e.g.)
c-hanging-braces alist to have its name displayed, even when the default
value of c-h-b etc. doesn't include the elemnt.  Replace uses of the old
function by the new.

* progmodes/cc-vars.el (c-hanging-braces-alist): Remove the obscure
non-working fragment ":value c-".
2008-01-14 22:31:07 +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
6e4fcd29a7 (defcustom-c-stylevar): Revert previous change (merge mistake). 2008-01-04 03:14:56 +00:00
Miles Bader
b17f53abc2 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-966
2007-12-28 22:26:14 +00:00
Thien-Thi Nguyen
d2f795854e * progmodes/cc-vars.el (defcustom-c-stylevar): Eval VAL.
(c-comment-continuation-stars): No longer declare with
cc-bytecomp-obsolete-var and cc-bytecomp-defvar.
(c-block-comment-prefix): Use symbol-value to
access c-comment-continuation-stars.
* progmodes/cc-mode.el (c-initialize-cc-mode):
Use symbol-value to access c-comment-continuation-stars.
2007-12-18 09:21:28 +00:00
Glenn Morris
6e1207a545 (defcustom-c-stylevar): Remove debugging message. 2007-12-18 02:31:15 +00:00
Thien-Thi Nguyen
1fae03f253 (defcustom-c-stylevar): Revert to pre-2007-12-12 version. 2007-12-17 09:16:57 +00:00
Thien-Thi Nguyen
d55f5fcfc2 (defcustom-c-stylevar): Remove debugging message. 2007-12-17 09:03:46 +00:00
Thien-Thi Nguyen
7d2a95143a Fix typo. 2007-12-12 10:12:51 +00:00
Thien-Thi Nguyen
f26920db7e (defcustom-c-stylevar): Rewrite. 2007-12-12 08:00:45 +00:00
Glenn Morris
e7f767c25e Replace `iff' in doc-strings and comments. 2007-08-08 07:34:30 +00:00
Glenn Morris
1a484753b2 Switch license to GPLv3 or later. 2007-07-25 04:29:40 +00:00
Alan Mackenzie
c788945f63 * (c-special-indent-hook): Amend doc-string to mention
c-syntactic-indentation.
2007-04-04 20:54:51 +00:00
Juanma Barranquero
12f5c601bf (c-offsets-alist): Fix typo in docstring. 2007-01-29 16:17:05 +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
Jan Djärv
aeef2654b6 (c-backslash-column): Add . at end of sentence. 2006-11-26 13:52:57 +00:00
Jan Djärv
d86b05e72d Mention c-backslash-max-column in documentation for c-backslash-column. 2006-11-25 12:07:21 +00:00
Eli Zaretskii
664a80e90a (c-backslash-column): Mark as safe if its value is an integer. 2006-05-20 17:46:07 +00:00
Reiner Steib
631c8020a5 Move `safe-local-variable' declarations to the respective files. 2006-05-11 15:01:41 +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
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
Nick Roberts
004e695aa5 (cc-define-list-program): Remove this
recent addition.
2005-05-03 06:45:54 +00:00
Nick Roberts
975e5c47ca (cc-define-list-program):
Change to "gcc -E -dM -". Make customizable.
2005-05-02 00:32:00 +00:00
Richard M. Stallman
876d19ef1d (c-require-final-newline): Fix custom type, doc. 2004-12-31 14:52:17 +00:00
Martin Stjernholm
2a15eb73df Updated CC Mode to 5.30.9. 2004-08-11 16:22:21 +00:00
Martin Stjernholm
037558bfd9 CC Mode update (5.30.8). 2003-11-16 16:55:08 +00:00
Martin Stjernholm
0923382c34 (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.
2003-09-24 13:56:48 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Martin Stjernholm
a02a0f3d29 (c-extra-types-widget): The doc string is mandatory in
`define-widget'.
2003-08-26 11:51:55 +00:00
Martin Stjernholm
f6c4327a0c #Updated to 5.30.4. 2003-07-16 21:00:21 +00:00
Martin Stjernholm
d9e94c2273 Updated CC Mode to version 5.30. 2003-07-03 12:30:59 +00:00
Juanma Barranquero
3a0ab10669 Revert last change. 2003-02-18 16:27:04 +00:00
Juanma Barranquero
6c019d3b03 (defcustom-c-stylevar): Fix character constant. 2003-02-18 15:48:21 +00:00
Martin Stjernholm
e2c21e666f (c-require-final-newline): Made this variable an alist to specify a value
for each language.  The default value causes `require-final-newline' to be
set to t only in languages where the standard requires a final newline.
2003-01-28 00:41:35 +00:00
Juanma Barranquero
82539cb7d2 (c-offsets-alist): Fix typo. 2003-01-27 08:48:02 +00:00
Martin Stjernholm
980a8a00df (c-require-final-newline): Added a variable to make the initialization of
require-final-newline' more configurable.
2003-01-26 21:36:39 +00:00