]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Fix interplay between string fences and electric-pair-mode.
authorAlan Mackenzie <acm@muc.de>
Tue, 24 May 2022 16:33:20 +0000 (16:33 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 24 May 2022 16:37:50 +0000 (16:37 +0000)
commit881aa943e58abb338375d30789373506726c28ba
tree28a3615c762bdcb674ee8eb3857a3e6cb04d7ed6
parent5c1c614940c35432d048d3879abdcab39c4d4229
CC Mode: Fix interplay between string fences and electric-pair-mode.

This is an amendment to the fix for bug #55230.

* lisp/progmodes/cc-defs.el: (c-with-string-fences): Add an edebug spec.

* lisp/progmodes/cc-cmds.el: (c-electric-pound, c-electric-brace)
(c-electric-slash, c-electric-star, c-electric-semi&comma, c-electric-colon)
(c-electric-lt-gt, c-electric-paren): Put the final
c--call-post-self-insert-hook-more-safely outside of the functions'
c-with-string-fences.
(c-electric-brace, c-electric-lt-gt, c-electric-paren): Put the calls to
electric-pair-post-self-insert-function outside of c-with-string-fences.
lisp/progmodes/cc-cmds.el
lisp/progmodes/cc-defs.el