mirrored from git://git.sv.gnu.org/emacs.git
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CC Mode: correct the calculation and handling of c-use-category.
This fixes bug #56629. The use of c-use-category was inconsistent, with the result that it would be nil at compilation time, but t at run time. This resulted in wrongly writing syntax-table text properties to <s and >s, yet testing for category properties on them. * lisp/progmodes/cc-defs.el (c-use-category): Move to after the definition of c-<-as-paren-syntax and c->-as-paren-syntax so as correctly to be able to use their values. Put an eval-when-compile around the calculation of its value, to reduce the chances of future failure. (c-mark-<-as-paren, c-mark->-as-paren, c-unmark-<->-as-paren, c-sc-scan-lists) (c-sc-parse-partial-sexp): Wrap c-use-category in (eval-when-compile ...) as an optimization, preventing the XEmacs code also being generated.
- Loading branch information
Alan Mackenzie
committed
Jul 26, 2022
1 parent
058d3c0
commit 004ee6b
Showing
1 changed file
with
33 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters