]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Don't propertize parens in macros incorrectly
authorAlan Mackenzie <acm@muc.de>
Wed, 29 Jan 2025 18:35:31 +0000 (18:35 +0000)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 Jan 2025 18:13:27 +0000 (19:13 +0100)
commitb041d0c557a766bf28fe4d9c348878d1850337a4
treedc300003bdfae36f9f043f0f510e252223214776
parent603fa0c00eb0d6ec70690c56d17aa5014e1d1dd7
CC Mode: Don't propertize parens in macros incorrectly

Parentheses in macros were getting incorrectly propertized with
the '(1) (punctuation) syntax-table text property.  This was
due to a typo in the patch "CC Mode: Rationalize and optimize
cache invalidation (1)" from 2024-10-06.  Correct this.

* lisp/progmodes/cc-mode.el (c-depropertize-CPP): Move the
first c-clear-syntax-table-with-value-trim-caches invocation
from inside the enclosing `when' form to after it.

(cherry picked from commit b34c069d8250e9557d5ef5e7997a5a7e370c7ad2)
lisp/progmodes/cc-mode.el