diff options
author | Alan Mackenzie <acm@muc.de> | 2024-12-31 18:39:57 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2024-12-31 18:39:57 +0000 |
commit | 643e32340d1342cee8af3f1f604ea1c1ad12837a (patch) | |
tree | e5597d78930ed7a734892da7d33b2ee621d4b8d5 /test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el | |
parent | 2f1052d9b0de551dc3a463ed54e21c63517497ab (diff) | |
download | emacs-643e32340d1342cee8af3f1f604ea1c1ad12837a.tar.gz emacs-643e32340d1342cee8af3f1f604ea1c1ad12837a.tar.bz2 emacs-643e32340d1342cee8af3f1f604ea1c1ad12837a.zip |
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.
Diffstat (limited to 'test/lisp/emacs-lisp/edebug-resources/edebug-test-code.el')
0 files changed, 0 insertions, 0 deletions