1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 22:40:46 -08:00
emacs/doc/misc
Alan Mackenzie c2d6f191d4 CC Mode: Separate indentation of enums from that of brace lists
This will allow enums to be indented as in the GNU coding
standards without affecting brace lists.

* lisp/progmodes/cc-align.el
(c-lineup-arglist-intro-after-paren)
(c-lineup-arglist-close-under-paren)
(c-lineup-whitesmith-in-block)
(c-lineup-after-whitesmith-blocks): Amend doc strings to
indicate they can be used for enum-* syntactic symbols too.

* lisp/progmodes/cc-engine.el (c-looking-at-decl-block)
(c-backward-typed-enum-colon, c-backward-over-enum-header):
Rename c-after-brace-list-key to c-after-enum-list-key and
c-brace-list-key to c-enum-list-key.
(c-at-enum-brace): New function.
(c-inside-bracelist-p): Don't check for enums any more.
(c-add-stmt-syntax): New cond arm for enums.
(c-guess-continued-construct CASE B.6) New code for enum-open.
(c-guess-basic-syntax CASE 5A.3, CASE 7B, CASE 9, CASE 9B)
(CASE 9C, CASE 9D): Use the new function c-at-enum-brace, and
use enum-* syntactic symbols rather than brace-list-* ones
where appropriate.
(c-used-syntactic-symbols): New dynamic variable.
(c-evaluate-offset): Add handling for a different syntactic
symbol as the cdr of a c-offsets-alist element.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context):
Add a call to c-at-enum-brace since c-inside-bracelist-p no
longer handles enums.
(c-font-lock-enum-body, c-font-lock-enum-tail): Condense calls
to c-backward-over-enum-header to c-at-enum-brace.
(c-basic-matchers-after): Replace a c-brace-list-decl-kwds with
c-enum-list-kwds.

* lisp/progmodes/cc-langs.el (c-enum-list-kwds)
(c-enum-list-key): New names for c-brace-list-decl-kwds and
c-brace-list-key.
(c-after-enum-list-kwds, c-after-enum-list-key): New names for
c-after-brace-list-decl-kwds and c-after-brace-list-key.
(c-enum-list-key, c-after-enum-list-key): Add code to
use a value of an old name, should a derived mode still use
that.
(c-defun-type-name-decl-kwds, c-typedef-decl-kwds)
(c-typeless-decl-kwds, c-prefix-spec-kwds)
(c-brace-id-list-kwds, c-enum-clause-introduction-re): Use
c-enum-list-kwds rather than c-brace-list-decl-kwds.

* lisp/progmodes/cc-styles.el (c-read-offset): Add "a
syntactic symbol" into an error message text.

* lisp/progmodes/cc-vars.el (c-valid-offset): Allow for a
syntactic symbol as the parameter.
(c-offsets-alist): Add new syntactic symbols enum-open,
enum-close, enum-intro, and enum-entry.

* doc/misc/cc-mode.texi (Syntactic Symbols): Add a note that
anchor points are briefly documented in cc-vars.el.  Correct
the suffix "-block-intro" to "-intro".  Remove "an enum or"
from the descriptions of the brace-list-* syntactic symbols.
Add in new descriptions for the enum-* syntactic symbols.
(Brace List Symbols): Remove references to enums.  Add a note
that enums are no longer brace-lists.
(Enum Symbols): A new subsection documenting the new enum-*
syntactic symbols.
(c-offsets-alist): Document the new possibility, syntactic
symbol, for the cdr of an alist entry.
(Brace/Paren Line-Up, List Line-Up): Note that the new enum
syntactic symbols can be handled by these lineup functions.
2024-09-24 20:45:29 +00:00
..
auth.texi * doc/misc/auth.texi: Minor copy edits. 2024-09-13 00:18:37 +02:00
autotype.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
bovine.texi ; Fix bad references to other manuals 2024-08-25 13:59:22 +03:00
calc.texi ; Fix bad references to other manuals 2024-08-25 13:59:22 +03:00
cc-mode.texi CC Mode: Separate indentation of enums from that of brace lists 2024-09-24 20:45:29 +00:00
ChangeLog.1 ; Fix typos 2024-07-18 11:46:50 +02:00
cl.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
dbus.texi ; Fix bad references to other manuals 2024-08-25 13:59:22 +03:00
dired-x.texi ; Fix markup in recent change to dired-x.texi. 2024-03-23 20:17:01 +01:00
doclicense.texi
ebrowse.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
ede.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
ediff.texi Add Ediff feature for copying all differences 2024-09-11 10:44:25 +02:00
edt.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
efaq-w32.texi Standardize possessive apostrophe usage in manuals, docs, and comments 2024-07-25 03:35:18 +02:00
efaq.texi Merge from origin/emacs-30 2024-09-07 06:25:15 -04:00
eglot.texi Fix a typo in Eglot manual 2024-08-17 13:07:56 +03:00
eieio.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs-gnutls.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs-mime.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
epa.texi ; Fix last change 2024-02-17 11:31:20 +02:00
erc.texi Merge from savannah/emacs-30 2024-08-13 09:12:30 +08:00
ert.texi Improve documentation of ERT 2024-08-15 11:30:48 +03:00
eshell.texi Merge from savannah/emacs-30 2024-07-24 11:41:58 +08:00
eudc.texi ; Fix bad references to other manuals 2024-08-25 13:59:22 +03:00
eww.texi Slice images based on their height in SHR, not their zoom level 2024-07-04 12:14:37 -07:00
flymake.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
forms.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
gnus-faq.texi Correctly typeset nil and t in texinfo 2024-07-22 10:14:51 +02:00
gnus.texi ; Fix typos 2024-08-29 00:17:10 +02:00
gpl.texi
htmlfontify.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
idlwave.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
ido.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
info.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
mairix-el.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
Makefile.in Fix generation of org.texi from org.org 2024-06-14 14:38:01 +03:00
message.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
mh-e.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
modus-themes.org Update to modus-themes version 4.5.0 2024-08-21 11:07:47 +03:00
newsticker.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
nxml-mode.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
octave-mode.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
org-setup.org ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
org.org Update FSF's address 2024-09-02 21:02:09 +02:00
pcl-cvs.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
pgg.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
rcirc.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
reftex.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
remember.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sasl.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
sc.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
sem-user.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
semantic.texi ; Fix typos 2024-07-18 11:46:50 +02:00
ses.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
sieve.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
smtpmail.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
speedbar.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
srecode.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
texinfo.tex Update from Gnulib by running admin/merge-gnulib 2024-02-14 22:05:06 -08:00
todo-mode.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
tramp.texi * doc/misc/tramp.texi (Frequently Asked Questions): Improve indices. 2024-09-23 09:53:17 +02:00
trampver.texi Remove Emacs 27 compatibility from Tramp 2024-07-24 15:25:55 +02:00
transient.texi Update to Transient v0.7.4-1-g3d9e9358 2024-08-05 14:41:02 +02:00
url.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
use-package.texi Standardize possessive apostrophe usage in manuals, docs, and comments 2024-07-25 03:35:18 +02:00
vhdl-mode.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
vip.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
viper.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
vtable.texi Fix alignment and documentation of vtable.el 2024-09-07 11:27:03 +03:00
widget.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
wisent.texi ; Fix bad references to other manuals 2024-08-25 13:59:22 +03:00
woman.texi ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00