Inhibit quote autopairing more frequently
commit494e19783c2f366caaf703bbd71050ec3074b5d4
authorJoão Távora <joaotavora@gmail.com>
Wed, 2 Apr 2014 09:59:06 +0000 (2 10:59 +0100)
committerJoão Távora <joaotavora@gmail.com>
Wed, 2 Apr 2014 09:59:06 +0000 (2 10:59 +0100)
tree0c6a4f037e3bd6e62b277053661048e7ef8be833
parentad37c460d20670a00b8278d193ba58073b408eba
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