1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-12 06:21:02 -08:00
emacs/doc/misc
Alan Mackenzie 643e32340d CC Mode: Fix various minor indentation bugs
As part of this, introduce a second anchor point to the
syntactic symbols brace-list-intro and enum-intro, the position
of the opening brace.

* lisp/progmodes/cc-align.el
(c-lineup-item-after-paren-at-boi): New function.

* /lisp/progmodes/cc-engine.el
(c-foreign-truncate-lit-pos-cache)
(c-foreign-init-lit-pos-cache): Use
c-truncate-lit-pos/state-cache in place of an older function.
(c-no-bracelist-cache): Update its definition to exclude
conses.
(c-strip-conses): New function.
(c-inside-bracelist-p): Use c-strip-conses.
(c-add-stmt-syntax): In the "go out a block" loop, go out of a
brace at BOI when there's non-whitespace text after it.
Refactor an `if' form containing a cond form into a cond form.
Add the new second second anchor point into syntactic contexts
with brace-list-intro and enum-intro.  Anchor brace-list-close
and enum-close elements on the individual declarations in
struct, etc., variable declarations.
(c-guess-basic-syntax, CASE 20): Use the new constraint-cont
syntactic symbol.
(c-guess-basic-syntax, CASE 9B): Anchor brace-list-close and
enum-close elements on the individual declarations in struct,
etc., variable declarations.
(c-guess-basic-syntax, CASEs 9C, 9D): Add the new second anchor
point into brace-list-intro and enum-intro syntactic contexts.

* lisp/progmodes/cc-mode.el (c-locate-first-punctuation-prop):
New function.
(c-depropertize-CPP): Use c-locate-first-punctuation-prop.

* lisp/progmodes/cc-vars.el (c-offsets-alist): Amend the
entries for constraint-cont, brace-list-intro, and enum-intro,
using c-lineup-item-after-paren-at-boi.

* doc/misc/cc-mode.texi (List Line-Up): Add a description of
c-lineup-item-after-paren-at-boi.
2024-12-31 18:39:57 +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: Fix various minor indentation bugs 2024-12-31 18:39:57 +00:00
ChangeLog.1 Update Arni Magnusson's email address 2024-10-05 02:30:41 +02:00
cl.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
dbus.texi Merge from origin/emacs-30 2024-12-28 08:30:31 -05: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-12-28 08:30:31 -05:00
eglot.texi Eglot: minor changes to doc and docstrings 2024-10-09 06:26:27 -05:00
eieio.texi ; Fix typos 2024-10-27 07:49:32 +01: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 ; Improve documentation of 'epa-mail-verify' 2024-12-04 15:21:13 +02:00
erc.texi Reuse process in erc-server-delayed-check-reconnect 2024-12-27 15:14:21 -08:00
ert.texi Improve documentation of ERT 2024-08-15 11:30:48 +03:00
eshell.texi Rework history Isearch for Eshell 2024-12-11 11:56:45 -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 Improve gnus.texi indexing 2024-12-08 14:52:25 +01: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 Delete some libraries obsolete since Emacs 24.4/24.5 2024-09-30 03:28:17 +02: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 ; Fix typos 2024-11-21 10:06:19 +01: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-12-26 16:29:02 -08:00
todo-mode.texi ; Fix punctuation in docs 2024-07-21 17:35:13 +02:00
tramp.texi Merge from origin/emacs-30 2024-12-28 08:30:31 -05:00
trampver.texi Remove Emacs 27 compatibility from Tramp 2024-07-24 15:25:55 +02:00
transient.texi ; Set Transient's version and add admin/MAINTAINERS entry 2024-09-14 19:23:40 +02:00
url.texi Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
use-package.texi Document issues with 'use-package's ':custom' and byte compilation 2024-11-09 11:55:49 +02:00
vhdl-mode.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 Update vtable documentation 2024-11-09 12:14:39 +02: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