aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoão Távora2014-04-07 08:24:03 +0100
committerJoão Távora2014-04-07 08:24:03 +0100
commit528c33b52868be1d01353f00996d8c63804f74e0 (patch)
treeb45b765b3e2fc9ba2b88da2a2be3763e953d71f3 /test
parenta9c921e66b68c4bdc699171d467be09ca327acb2 (diff)
downloademacs-528c33b52868be1d01353f00996d8c63804f74e0.tar.gz
emacs-528c33b52868be1d01353f00996d8c63804f74e0.zip
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'.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/automated/electric-tests.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index d483b0b2f9e..c94bf21fd36 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
12014-04-07 João Távora <joaotavora@gmail.com>
2
3 * automated/electric-tests.el (inhibit-if-strings-mismatched):
4 New test, change from `inhibit-only-of-next-is-mismatched'.
5
12014-04-06 João Távora <joaotavora@gmail.com> 62014-04-06 João Távora <joaotavora@gmail.com>
2 7
3 * automated/python-tests.el (python-triple-quote-pairing): New test. 8 * automated/python-tests.el (python-triple-quote-pairing): New test.
diff --git a/test/automated/electric-tests.el b/test/automated/electric-tests.el
index 184a91f5105..301130747f3 100644
--- a/test/automated/electric-tests.el
+++ b/test/automated/electric-tests.el
@@ -295,9 +295,9 @@ Should %s |%s| and point at %d"
295 :bindings `((electric-pair-text-syntax-table 295 :bindings `((electric-pair-text-syntax-table
296 . ,prog-mode-syntax-table))) 296 . ,prog-mode-syntax-table)))
297 297
298(define-electric-pair-test inhibit-only-if-next-is-mismatched 298(define-electric-pair-test inhibit-if-strings-mismatched
299 "\"foo\"\"bar" "\"" 299 "\"foo\"\"bar" "\""
300 :expected-string "\"\"\"foo\"\"bar" 300 :expected-string "\"\"foo\"\"bar"
301 :expected-point 2 301 :expected-point 2
302 :test-in-strings nil 302 :test-in-strings nil
303 :bindings `((electric-pair-text-syntax-table 303 :bindings `((electric-pair-text-syntax-table