Electric-pair-mode lets modes choose how to skip whitespace
commit6353387835f6cb34765ac525ac3e9edf3239e589
authorJoão Távora <joaotavora@gmail.com>
Tue, 19 Jun 2018 01:18:43 +0000 (19 02:18 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 19 Jun 2018 01:19:24 +0000 (19 02:19 +0100)
tree22119b3a67890a65ef2f837cca1b242e2e11a5b8
parent5498acb5a2b4a19060d17c0e2ce0aec36ee684f9
Electric-pair-mode lets modes choose how to skip whitespace

cc-mode.el-based major-modes with stricter syntax for invalid
NL-terminated strings might choose to have electric-pair-mode skip
some of whitespace into non-string-syntax regions, for the sake of
letting electric-pair-mode chomp that whitespace and make the string
valid again.

* lisp/elec-pair.el (electric-pair-post-self-insert-function): Call it.
(electric-pair-skip-whitespace-function): New buffer-local variable.
lisp/elec-pair.el