2009-01-09 05:05:28 +00:00
|
|
|
((nil . ((tab-width . 8)
|
2010-10-05 02:40:34 +00:00
|
|
|
(sentence-end-double-space . t)
|
2011-04-24 18:34:57 +00:00
|
|
|
(fill-column . 70)))
|
CC Mode now uses the new :after-hook feature of define-derived-mode
It now runs internal variable setting functions after the mode hooks, no
longer runs the mode hooks twice, and declares the configuration variables for
noise macros and macros with semicolons as safe variables (when given suitable
arguments).
Fixes bug #16759 and bug #23476.
* .dir-locals: Put the c-noise-macros-with-paren-names setting back into the C
Mode value.
* lisp/progmodes/cc-mode.el: (c-basic-common-init): Remove the call to
c-make-macro-with-semi-re.
(c-mode, c++-mode, objc-mode, java-mode, idl-mode, pike-mode, awk-mode): Move
c-make-noise-macro-regexps and c-make-macro-with-semi-re (where appropriate)
and c-update-modeline into the :after-hook form. Remove the explicit settings
of the syntax table, the abbreviation table and the local key map, since they
duplicate forms generated by define-derived-mode. Remove the explicit
invocation of each mode's mode hook, since they duplicate ones generated by
define-derived-mode.
* lisp/progmodes/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
save-local-variable property c-string-list-p.
(c-macro-names-with-semicolon): give the save-local-variable property
c-string-or-string-list-p.
* doc/misc/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-09 17:49:45 +00:00
|
|
|
(c-mode . ((c-file-style . "GNU")
|
2016-08-09 18:50:44 +00:00
|
|
|
(c-noise-macro-names . ("UNINIT"))))
|
2012-07-09 19:56:14 +00:00
|
|
|
(objc-mode . ((c-file-style . "GNU")))
|
2015-04-19 02:08:53 +00:00
|
|
|
(log-edit-mode . ((log-edit-font-lock-gnu-style . t)
|
2013-12-01 04:13:50 +00:00
|
|
|
(log-edit-setup-add-author . t)))
|
2008-12-27 17:10:24 +00:00
|
|
|
(change-log-mode . ((add-log-time-zone-rule . t)
|
2009-01-14 00:37:28 +00:00
|
|
|
(fill-column . 74)
|
2009-12-17 04:12:40 +00:00
|
|
|
(bug-reference-url-format . "http://debbugs.gnu.org/%s")
|
2010-03-19 09:46:08 +00:00
|
|
|
(mode . bug-reference)))
|
2015-04-14 22:40:52 +00:00
|
|
|
(diff-mode . ((mode . whitespace)))
|
|
|
|
(emacs-lisp-mode . ((indent-tabs-mode . nil))))
|