]> git.eshelyaron.com Git - emacs.git/commit
Fontify C function identifiers in parentheses correctly (e.g. in lisp.h)
authorAlan Mackenzie <acm@muc.de>
Sun, 17 Feb 2019 18:57:10 +0000 (18:57 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 17 Feb 2019 18:57:10 +0000 (18:57 +0000)
commitadeea448bcbf12b8f6f33af0ddc9867fa49f5b4a
tree336d1cf816e3f414055879fa43b6a035a5b5a440
parent7898568bbb62acc6e6c44513a06ddf2b7b656c22
Fontify C function identifiers in parentheses correctly (e.g. in lisp.h)

Fix handling of CC Mode's syntactic WS cache.  Make noise-macro option
variables buffer local.

* lisp/progmodes/cc-engine.el (c-put-is-sws, c-put-in-sws, c-remove-is-sws)
(c-remove-in-sws c-remove-is-and-in-sws): Add edebug specs.
(c-invalidate-sws-region-before): Add a `beg' parameter.  Handle noise
macros like other literals.
(c-invalidate-sws-region-after-del): Move the adjustment of (cdr
c-sws-lit-limits) due to buffer change to c-invalidate-sws-region-after.
(c-invalidate-sws-region-after-ins): Move (goto-char end) to the correct
place.
(c-invalidate-sws-region-after): Adjust (cdr c-sws-lit-limits) due to buffer
change.  Handle noise macros.
(c-backward-sws): Set simple-ws-beg appropriately when the start point is in
the middle of a noise macro.
(c-forward-decl-or-cast-1): Recognize a function identifier being declared in
parentheses.

* lisp/promodes/cc-mode.el (c-before-change): Supply a `beg' argument to
c-invalidate-sws-region-before.

* lisp/progmodes/cc-vars.el (c-noise-macro-with-parens-name-re)
(c-noise-macro-name-re, c-noise-macro-names, c-noise-macro-with-parens-names):
Make these buffer local variables.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-mode.el
lisp/progmodes/cc-vars.el