diff options
author | Alan Mackenzie <acm@muc.de> | 2022-09-24 12:23:32 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2022-09-24 12:23:32 +0000 |
commit | e4b1445f4301a4a672442d29f93983d804a80982 (patch) | |
tree | c98cecd1221a8d9b6259d8feaf10f2d7b2057e38 /test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args-until-failure.el | |
parent | 1556b4376457db409a0a15765e89b2a209007d7b (diff) | |
download | emacs-e4b1445f4301a4a672442d29f93983d804a80982.tar.gz emacs-e4b1445f4301a4a672442d29f93983d804a80982.tar.bz2 emacs-e4b1445f4301a4a672442d29f93983d804a80982.zip |
CC Mode. Make AWK Mode work with electric-pair-mode
Also fix some minor anomalies with other CC Mode modes in electric-pair-mode.
This fixes bug #53446.
* lisp/progmodes/cc-mode.el (c-open-string-opener): New buffer local
variable.
(c-after-change-mark-abnormal-strings): Set c-open-string-opener when an
unbalanced string is detected.
(c-before-change): Initilize c-open-string-opener to nil, each buffer change.
(c-electric-pair-inhibit-predicate): Use the value of c-open-string-opener to
flag an unbalaced string rather than trying to calculate it again.
* lisp/progmodes/cc-awk.el (c-awk-syntax-tablify-string): Set
c-open-string-opener when an unbalanced string is detected.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-resources/error-lexical-var-with-run-hook-with-args-until-failure.el')
0 files changed, 0 insertions, 0 deletions