]> git.eshelyaron.com Git - emacs.git/commit
Inhibit quote autopairing more frequently
authorJoão Távora <joaotavora@gmail.com>
Mon, 7 Apr 2014 07:24:03 +0000 (08:24 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 7 Apr 2014 07:24:03 +0000 (08:24 +0100)
commit528c33b52868be1d01353f00996d8c63804f74e0
treeb45b765b3e2fc9ba2b88da2a2be3763e953d71f3
parenta9c921e66b68c4bdc699171d467be09ca327acb2
Inhibit quote autopairing more frequently

Backported from trunk 2014-04-02T09:59:06Z!joaotavora@gmail.com

* 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