Inhibit quote autopairing more frequently
authorJoão Távora <joaotavora@gmail.com>
Wed, 2 Apr 2014 09:59:06 +0000 (10:59 +0100)
committerJoão Távora <joaotavora@gmail.com>
Wed, 2 Apr 2014 09:59:06 +0000 (10:59 +0100)
commit200c532bd04a67a89db602462d74706051c61178
treeef02bee0c2b5aa0d8e9adc407d24a7e20a97b96a
parent2395f2b919f44cae22b2ca99cd779e69d79f710a
Inhibit quote autopairing more frequently

* lisp/elec-pair.el (electric-pair-inhibit-if-helps-balance): Inhibit
quote pairing if point-max is inside an unterminated string.
(electric-pair--looking-at-unterminated-string-p):
Delete.
(electric-pair--in-unterminated-string-p): New function.

* test/automated/electric-tests.el (inhibit-if-strings-mismatched):
New test, change from `inhibit-only-of-next-is-mismatched'.
lisp/ChangeLog
lisp/elec-pair.el
test/ChangeLog
test/automated/electric-tests.el