1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-19 06:31:34 -08:00
emacs/doc/misc
Alan Mackenzie a8231e00cb 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
..
ada-mode.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
auth.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
autotype.texi Fix time-stamp-time-zone bugs introduced in July 2016-01-12 09:09:52 -08:00
bovine.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
calc.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
cc-mode.texi CC Mode now uses the new :after-hook feature of define-derived-mode 2016-05-09 17:49:45 +00:00
ChangeLog.1 Update copyright year to 2016 2016-01-01 01:34:24 -08:00
cl.texi Don't have the manual claim that it lists all CL incompatibilities 2016-05-01 19:27:08 +02:00
dbus.texi Expunge "allow" + infinitive without direct object from source and doc. 2016-01-24 20:30:39 +00:00
dired-x.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
doclicense.texi Update licenses to latest version from FSF. 2012-12-06 00:33:32 -08:00
ebrowse.texi Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]" 2016-05-01 19:27:08 +02:00
ede.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
ediff.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
edt.texi Fix a typo in edt.texi 2016-02-14 20:14:32 +02:00
efaq-w32.texi Remove the Meta-CVS VC backend 2016-04-19 01:22:39 +03:00
efaq.texi Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]" 2016-05-01 19:27:08 +02:00
eieio.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
emacs-gnutls.texi Spelling fixes 2016-04-03 23:17:09 -07:00
emacs-mime.texi New custom option for overriding mailcap choices 2016-04-10 18:15:45 +02:00
epa.texi Clarify GnuPG version compatibility chapter 2016-02-22 10:46:35 +09:00
erc.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
ert.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
eshell.texi Fix Bug#23032 2016-03-19 16:51:46 +01:00
eudc.texi Transform mentions of eval-after-load' to with-eval-after-load' 2016-05-01 19:27:14 +02:00
eww.texi Merge from origin/emacs-25 2016-03-03 23:53:08 -08:00
flymake.texi Expunge "allow" + infinitive without direct object from source and doc. 2016-01-24 20:30:39 +00:00
forms.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
gnus-coding.texi Resurrect GNUS-NEWS autogeneration 2016-03-23 00:08:21 -07:00
gnus-faq.texi Transform mentions of eval-after-load' to with-eval-after-load' 2016-05-01 19:27:14 +02:00
gnus-news.el Fix copyright years by hand 2016-01-01 01:38:07 -08:00
gnus-news.texi Update copyright year to 2016 2016-01-01 01:34:24 -08:00
gnus-overrides.texi gnus-overrides.texi: Renamed from overrides.texi and all the relevant manuals use it now. 2011-02-06 00:25:41 +00:00
gnus.texi Transform mentions of eval-after-load' to with-eval-after-load' 2016-05-01 19:27:14 +02:00
gpl.texi Update licenses to latest version from FSF. 2012-12-06 00:33:32 -08:00
htmlfontify.texi Update copyright year to 2016 2016-01-01 01:34:24 -08:00
idlwave.texi Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]" 2016-05-01 19:27:08 +02:00
ido.texi Update copyright year to 2016 2016-01-01 01:34:24 -08:00
info.texi Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]" 2016-05-01 19:27:08 +02:00
mairix-el.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
Makefile.in Merge changes from Tramp repository 2016-01-31 13:50:23 +01:00
message.texi Allow various Gnus and Message address variables to be functions 2016-02-08 13:28:37 +11:00
mh-e.texi Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]" 2016-05-01 19:27:08 +02:00
newsticker.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
nxml-mode.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
octave-mode.texi Expunge "allow" + infinitive without direct object from source and doc. 2016-01-24 20:30:39 +00:00
org.texi Expunge "allow" + infinitive without direct object from source and doc. 2016-01-24 20:30:39 +00:00
pcl-cvs.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
pgg.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
rcirc.texi Transform mentions of eval-after-load' to with-eval-after-load' 2016-05-01 19:27:14 +02:00
reftex.texi Expunge "allow" + infinitive from source and doc, part 2. 2016-01-25 12:35:15 +00:00
remember.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
sasl.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
sc.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
sem-user.texi Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]" 2016-05-01 19:27:08 +02:00
semantic.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
ses.texi Merge from origin/emacs-25 2016-01-11 22:48:07 -08:00
sieve.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
smtpmail.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
speedbar.texi Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]" 2016-05-01 19:27:08 +02:00
srecode.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
texinfo.tex * doc/misc/texinfo.tex: Sync from gnulib. 2016-05-01 17:59:04 -07:00
todo-mode.texi Update copyright year to 2016 2016-01-01 01:34:24 -08:00
tramp.texi tramp.texi: Revert last change due to backward compatibility 2016-05-01 19:27:17 +02:00
trampver.texi Merge changes from Tramp repository 2016-01-31 13:50:23 +01:00
url.texi Merge from origin/emacs-25 2016-05-01 18:14:22 -07:00
vhdl-mode.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
vip.texi Fix copyright years by hand 2016-01-01 01:38:07 -08:00
viper.texi Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]" 2016-05-01 19:27:08 +02:00
widget.texi Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]" 2016-05-01 19:27:08 +02:00
wisent.texi Expunge "allow" + infinitive without direct object from source and doc. 2016-01-24 20:30:39 +00:00
woman.texi Change all occurrences of "Mouse-[0-9]" to "mouse-[0-9]" 2016-05-01 19:27:08 +02:00