1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-23 04:53:12 -08:00
emacs/doc/misc
Alan Mackenzie dc842a71ed Improve C++ concept indentation.
This fixes bug #62386.

* lisp/progmodes/cc-engine.el (c-forward-over-compound-identifier): Don't
move forward over whitespace following the identifier.
(c-forward-primary-expression): Add parameter stop-at-end meaning don't move
forward over whitespace after the construct when non-nil.  Don't recognise a
primary expression when an open brace follows a parenthesized expression.
(c-forward-constraint-clause): Extracted from c-forward-c++-requires-clause.
Add parameter stop-at-end as above.
(c-forward-c++-requires-clause): New stop-at-end parameter as above.  Call the
new function c-forward-constraint-clause.
(c-forward-concept-fragment, c-looking-at-concept)
(c-in-requires-or-at-end-of-clause, c-c++-vsemi-p): New functions.
(c-guess-basic-syntax): New CASE 5A.7: "defun" open in a requires expression.
CASE 5F: Close of a non-class declaration level block: Move to earlier in the
function.
CASE 5D: Also check for being in or at end of a constraint.
New CASE 20: A C++ requires sub-clause.
New CASE 16G: The closing brace of a requires clause.
New CASE 17J: First "statement" inside a requires "function".
(c-forward-primary-expression, c-forward-declarator, c-forward-decl-or-cast-1)
(c-looking-at-or-maybe-in-bracelist): Amend the method of detecting end of
symbol "requires" (aka c-fun-name-substitute-key).

* lisp/progmodes/cc-fonts.el (c-get-fontification-context): Amend the method
of detecting end of symbol "requires".

* lisp/progmodes/cc-langs.el (c-at-vsemi-p-fn): Change the C++ entry to
c-c++-vsemi-p.
(c-fun-name-substitute-key): Change to an unadorned regexp.

* lisp/progmodes/cc-vars.el (c-offsets-alist): Add new syntactic symbol
constraint-cont.

* doc/misc/cc-mode.texi (Syntactic Symbols): Add an entry for contraint-cont.
(Constraint Symbols): New node under Syntactic Symbols.
2023-04-14 16:37:33 +00:00
..
auth.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
autotype.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bovine.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
calc.texi Merge from origin/emacs-29 2023-02-19 11:38:09 +01:00
cc-mode.texi Improve C++ concept indentation. 2023-04-14 16:37:33 +00:00
ChangeLog.1 ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
cl.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
dbus.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
dired-x.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
doclicense.texi
ebrowse.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ede.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ediff.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
edt.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
efaq-w32.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
efaq.texi Update the Emacs FAQ for Emacs 29 2023-02-05 10:50:12 +02:00
eglot.texi ; Minor copyedits to Eglot manual 2023-03-23 10:26:50 +00:00
eieio.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-gnutls.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-mime.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
epa.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
erc.texi Optionally prompt for more ERC entry-point params 2023-04-08 14:23:51 -07:00
ert.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eshell.texi eshell: Add 'rgrep' builtin 2023-04-10 21:00:17 -07:00
eudc.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
eww.texi Teach 'eww-open-file' about prefix argument 2023-01-14 11:48:55 +02:00
flymake.texi ; * doc/misc/flymake.texi (Customizable variables): fix broken list 2023-04-13 21:38:47 +02:00
forms.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
gnus-faq.texi Delete redundant question from Gnus FAQ 2023-02-18 13:35:37 +01:00
gnus.texi ; * doc/misc/gnus.texi: Fix last change. 2023-02-27 14:32:57 +02:00
gpl.texi
htmlfontify.texi ; Fix last change: remove unused @anchor. 2023-01-15 11:52:46 +02:00
idlwave.texi Refer to EWW instead of w3 and w3m 2023-03-16 14:24:45 +01:00
ido.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
info.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mairix-el.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
Makefile.in ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
message.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mh-e.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
modus-themes.org Update Modus themes to version 4.1.0 2023-02-22 20:00:13 +02:00
newsticker.texi Run newsticker's ticker only periodically (bug#59856) 2023-01-16 09:20:11 +01:00
nxml-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
octave-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
org-setup.org ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
org.org Update to Org 9.6.1-40-g3d817c 2023-03-05 17:34:13 -05:00
pcl-cvs.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
pgg.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
rcirc.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
reftex.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
remember.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sasl.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sc.texi Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
sem-user.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
semantic.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
ses.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sieve.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
smtpmail.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
speedbar.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
srecode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
texinfo.tex Update from Gnulib by running admin/merge-gnulib 2023-03-10 16:53:07 -08:00
todo-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
tramp.texi Merge from origin/emacs-29 2023-04-03 00:33:03 +01:00
trampver.texi Remove Emacs 26 compatibility from Tramp 2023-01-06 13:34:33 +01:00
transient.texi Update to Transient v0.3.7-218-g3dbb22a 2023-03-26 23:53:03 +02:00
url.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
use-package.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vhdl-mode.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vip.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
viper.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
vtable.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
widget.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
wisent.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
woman.texi ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00