]> git.eshelyaron.com Git - emacs.git/commit
Fix bug #36474, such that CC Mode quotes work properly in electric-pair-mode
authorAlan Mackenzie <acm@muc.de>
Mon, 8 Jul 2019 09:24:29 +0000 (09:24 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 8 Jul 2019 09:24:29 +0000 (09:24 +0000)
commit8d5cdd688f5dd39c8e667f9c6c2c4876c7fdc564
tree1261035b3ff985122b75a1409161e136517d5b81
parentee883189d441b45dc343905074db5187ec900e26
Fix bug #36474, such that CC Mode quotes work properly in electric-pair-mode

Also finishes the fix for bug #36423.

* lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Add an `eval-after-load'
to set electric-pair-inhibit-predicate for existing CC Mode buffers when
elec-pair.elc gets loaded.
(c-basic-common-init): Set electric-pair-inhibit-predicate when a CC Mode mode
gets initialized.
(c-electric-pair-inhibit-predicate): New function.
lisp/progmodes/cc-mode.el