1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 00:51:50 -08:00
emacs/doc/misc
Alan Mackenzie aa1a4cceca Correct the indentation of CC Mode brace lists
while preserving the indentation of nested C++ uniform initialization.

* lisp/progmodes/cc-align.el (c-lineup-2nd-brace-entry-in-arglist)
(c-lineup-class-decl-init-+, c-lineup-class-decl-init-after-brace): New
indentation functions.

* lisp/progmodes/cc-engine.el (c-forward-class-decl): New function.
(c-do-declarators): New function, partially extracted from
c-font-lock-declarators, which now calls the new function.
(c-inside-bracelist-p): Amend the introductory comment.
(c-add-stmt-syntax): Add code to prevent the spurious recognition of a
'defun-block-intro when a brace pair is used as an initializer.
(c-evaluate-offset): No longer ignore vectors of length >= 2.
(c-calc-offset): Refactor clumsily nested `if'/`or' into a cond form.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Replace the bulk of
this function by a call to the new c-forward-class-decl.

* lisp/progmodes/cc-langs.el (c-type-decl-prefix-key): Recognize "~" as a
type decl operator.

* lisp/progmodes/cc-mode.el (c-fl-decl-start): While searching backward for a
"}" at an EOD, deal with actually finding the end of a brace list.

* doc/misc/cc-mode.texi (List Line-Up): document
c-lineup-2nd-brace-entry-in-arglist, c-lineup-class-decl-init-+, and
c-lineup-class-decl-init-after-brace.

* lisp/progmodes/cc-styles.el (c-style-alist): In styles "gnu", "bsd",
"stroustrup", "python", and "java", change the offset for brace-list-intro
from the default value or c-lineup-arglist-intro-after-paren to a list
beginning with the symbol first, followed by two of the new alignment
functions, followed by +.

* lisp/progmodes/cc-vars.el (c-offset-alist): Change the default value of
brace-list-entry from c-lineup-under-anchor back to 0.
2019-03-12 18:33:31 +00:00
..
ada-mode.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
auth.texi Remove gnus-overrides.texi 2019-03-05 21:55:09 -08:00
autotype.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
bovine.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
calc.texi Merge from origin/emacs-26 2019-03-01 09:40:22 -08:00
cc-mode.texi Correct the indentation of CC Mode brace lists 2019-03-12 18:33:31 +00:00
ChangeLog.1 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
cl.texi Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
dbus.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
dired-x.texi Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
doclicense.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
ebrowse.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
ede.texi Merge from origin/emacs-26 2019-03-09 10:07:46 -08:00
ediff.texi Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
edt.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
efaq-w32.texi Update copyright year to 2019 2019-01-01 01:01:13 +00:00
efaq.texi Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
eieio.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
emacs-gnutls.texi Check for client certificates when using GnuTLS 2019-01-24 11:36:47 +01:00
emacs-mime.texi Remove gnus-overrides.texi 2019-03-05 21:55:09 -08:00
epa.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
erc.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
ert.texi Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
eshell.texi Merge from origin/emacs-26 2019-02-20 12:07:22 -08:00
eudc.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
eww.texi Add documentation for last change in eww.el 2019-02-15 10:33:01 +02:00
flymake.texi Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
forms.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
gnus-coding.texi * doc/misc/gnus-coding.texi: Remove no longer relevant sections. 2019-03-05 22:27:35 -08:00
gnus-faq.texi Merge from origin/emacs-26 2019-03-09 10:07:46 -08:00
gnus.texi Merge from origin/emacs-26 2019-03-09 10:07:46 -08:00
gpl.texi Merge from Gnulib 2017-10-01 18:31:10 -07:00
htmlfontify.texi Update copyright year to 2019 2019-01-01 01:01:13 +00:00
idlwave.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
ido.texi Update copyright year to 2019 2019-01-01 01:01:13 +00:00
info.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
mairix-el.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
Makefile.in Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
message.texi Remove gnus-overrides.texi 2019-03-05 21:55:09 -08:00
mh-e.texi Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
newsticker.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
nxml-mode.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
octave-mode.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
org.texi Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
pcl-cvs.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
pgg.texi Remove gnus-overrides.texi 2019-03-05 21:55:09 -08:00
rcirc.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
reftex.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
remember.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
sasl.texi Remove gnus-overrides.texi 2019-03-05 21:55:09 -08:00
sc.texi Update citations of Internet RFCs 2019-02-16 12:00:02 -08:00
sem-user.texi Update copyright year to 2019 2019-01-01 01:01:13 +00:00
semantic.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
ses.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
sieve.texi Remove gnus-overrides.texi 2019-03-05 21:55:09 -08:00
smtpmail.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
speedbar.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
srecode.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
texinfo.tex Update from Gnulib 2019-03-10 23:05:30 -07:00
todo-mode.texi Update copyright year to 2019 2019-01-01 01:01:13 +00:00
tramp.texi Do not hardcode "/bin/sh" in compile. Bug#24338, Bug#29723 2019-03-09 16:44:24 +01:00
trampver.texi Respect setgid bit of the upper directory in Tramp 2019-01-22 10:38:49 +01:00
url.texi Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
vhdl-mode.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
vip.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
viper.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
widget.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
wisent.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00
woman.texi Fix copyright years by hand 2019-01-01 01:02:40 +00:00