emacs/doc/misc
Phil Sainty 6a4477d057 Support mode line constructs for 'mode-name' in c-mode (bug#2034)
Also make the inclusion of minor mode flags in 'mode-name' optional.

* lisp/progmodes/cc-vars.el (c-modeline-display-flags): New user
option.
* lisp/progmodes/cc-cmds.el (c-modeline-flags): New variable.
(c--modeline-major-mode): New internal buffer-local variable.
(c-update-modeline): Use mode line constructs, rather than string
concatenation, to optionally include minor mode flags in 'mode-name'.

* lisp/progmodes/cc-cmds.el (c-toggle-auto-newline)
(c-toggle-hungry-state, c-toggle-auto-hungry-state)
(c-toggle-electric-state, c-toggle-comment-style):
* lisp/progmodes/cc-mode.el (c-electric-indent-mode-hook)
(c-electric-indent-local-mode-hook): Remove redundant calls to
'c-update-modeline'.  It is no longer necessary to call this function
every time one of the minor mode states changes.  The remaining calls
are in 'c-basic-common-init' (which is called via 'c-common-init' by
all the major modes defined in cc-mode.el), and in the :after-hook of
those modes (which ensures that 'mode-name' is still processed for a
derived mode that doesn't call 'c-common-init' itself).

* lisp/progmodes/cc-mode.el (c-submit-bug-report):
* lisp/progmodes/cc-styles.el (c-set-style): Format 'mode-name'.

* doc/misc/cc-mode.texi: Document 'c-modeline-display-flags'.

* etc/NEWS: Mention new user option and behaviors.

* lisp/progmodes/cc-engine.el:
* lisp/progmodes/cc-mode.el: Remove commented remnants of
'c-submode-indicators'.  This code was commented out in commit
cb694ab730 in which the indicators were
moved directly into 'mode-name' (to prevent lighter text for other
minor modes from appearing inbetween).  These indicators are now
replaced by 'c-modeline-flags'.
2018-07-08 01:20:10 +12:00
..
ada-mode.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
auth.texi Merge from origin/emacs-26 2018-01-01 01:13:04 -08:00
autotype.texi Fix typos in several manuals (Bug#31610) 2018-06-01 16:33:58 +03:00
bovine.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
calc.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
cc-mode.texi Support mode line constructs for 'mode-name' in c-mode (bug#2034) 2018-07-08 01:20:10 +12:00
ChangeLog.1 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
cl.texi Merge from origin/emacs-26 2018-06-23 07:50:59 -07:00
dbus.texi Further improvements on manuals 2018-03-01 09:25:55 +01:00
dired-x.texi Remove obsolete objects from dired-x.el 2018-05-14 17:06:33 +02:00
doclicense.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
ebrowse.texi * doc/misc/ebrowse.texi: Use @key{} for keys. 2018-02-24 17:56:43 +01:00
ede.texi Merge from origin/emacs-26 2018-02-28 09:40:40 -08:00
ediff.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
edt.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
efaq-w32.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
efaq.texi Merge from emacs-26 2018-06-10 18:43:49 -04:00
eieio.texi Fix @cindex entries in manuals 2018-02-24 20:52:21 +01:00
emacs-gnutls.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
emacs-mime.texi Fix a typo in emacs-mime.texi (Bug#31610) 2018-06-01 16:38:09 +03:00
epa.texi Fix @kindex entries in manuals 2018-02-25 16:29:39 +01:00
erc.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
ert.texi Merge from origin/emacs-26 2018-02-28 09:40:40 -08:00
eshell.texi Merge from origin/emacs-26 2018-04-20 08:07:43 -07:00
eudc.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
eww.texi Remove @key{} markups from @kindex entries in manuals 2018-02-26 09:24:39 +01:00
flymake.texi Mention use of C-h . (display-local-help) in Flymake manual 2018-06-25 12:29:04 +01:00
forms.texi Remove @key{} markups from @kindex entries in manuals 2018-02-26 09:24:39 +01:00
gnus-coding.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
gnus-faq.texi Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
gnus-news.el Fix copyright years by hand 2018-01-01 01:02:09 -08:00
gnus-news.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01: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 Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
gpl.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
htmlfontify.texi Doc fixes re obsolete items 2018-03-13 14:47:41 -04:00
idlwave.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
ido.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
info.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
mairix-el.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
Makefile.in Update copyright year to 2018 2018-01-01 00:57:59 -08:00
message.texi Revert part of the previous change 2018-05-20 21:27:42 +03:00
mh-e.texi Use “Cc” for email copies, as per RFC 5322. 2018-05-20 11:02:50 -07:00
newsticker.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
nxml-mode.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
octave-mode.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
org.texi Merge from origin/emacs-26 2018-06-02 10:29:37 -07:00
pcl-cvs.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
pgg.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
rcirc.texi Remove @key{} markups from @kindex entries in manuals 2018-02-26 09:24:39 +01:00
reftex.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
remember.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
sasl.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
sc.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
sem-user.texi Fix @cindex entries in manuals 2018-02-24 20:52:21 +01:00
semantic.texi Semantic manual fixes 2018-02-21 20:13:01 +01:00
ses.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
sieve.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
smtpmail.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
speedbar.texi Replace some obsolete aliases in documentation 2018-03-07 15:41:29 -05:00
srecode.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
texinfo.tex Update from Gnulib 2018-06-29 17:32:35 -07:00
todo-mode.texi Update copyright year to 2018 2018-01-01 00:57:59 -08:00
tramp.texi Implement command completion in remote shells. (Bug#31704) 2018-06-20 12:13:56 +02:00
trampver.texi Sync with Tramp 2.4.0 2018-06-29 10:17:46 +02:00
url.texi ; * doc/misc/url.texi (file/ftp): Remove stray '@end defopt'. 2018-04-14 01:58:38 -04:00
vhdl-mode.texi Mark keys consistently in manuals 2018-02-26 13:53:37 +01:00
vip.texi Fix use of @key in Texinfo manuals 2018-04-19 12:21:06 +03:00
viper.texi Fix typos in several manuals (Bug#31610) 2018-06-01 16:33:58 +03:00
widget.texi Fix copyright years by hand 2018-01-01 01:02:09 -08:00
wisent.texi Fix typos in several manuals (Bug#31610) 2018-06-01 16:33:58 +03:00
woman.texi Remove @key{} markups from @kindex entries in manuals 2018-02-26 09:24:39 +01:00