]> git.eshelyaron.com Git - emacs.git/commit
Improve on previous quote autopairing change
authorJoão Távora <joaotavora@gmail.com>
Mon, 7 Apr 2014 07:29:50 +0000 (08:29 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 7 Apr 2014 07:29:50 +0000 (08:29 +0100)
commit190f899aed4eeb62286874bda47a92236d52ad4c
tree1fad7c0081bf964b85ab7e34683866ca2285c66c
parent528c33b52868be1d01353f00996d8c63804f74e0
Improve on previous quote autopairing change

Backported from trunk 2014-04-04T23:31:02Z!joaotavora@gmail.com

* lisp/elec-pair.el:
(electric-pair--syntax-ppss): When inside comments parse from
comment beginning.
(electric-pair--balance-info): Fix typo in comment.
(electric-pair--in-unterminated-string-p): Delete.
(electric-pair--unbalanced-strings-p): New function.
(electric-pair-string-bound-function): New var.
(electric-pair-inhibit-if-helps-balance): Decide quote pairing
according to `electric-pair--in-unterminated-string-p'

* test/automated/electric-tests.el (define-electric-pair-test): Don't
overtest..
(inhibit-in-mismatched-string-inside-ruby-comments): New test.
(inhibit-in-mismatched-string-inside-c-comments): New test.
lisp/ChangeLog
lisp/elec-pair.el
test/ChangeLog
test/automated/electric-tests.el