aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoão Távora2014-04-02 10:59:06 +0100
committerJoão Távora2014-04-02 10:59:06 +0100
commit200c532bd04a67a89db602462d74706051c61178 (patch)
treeef02bee0c2b5aa0d8e9adc407d24a7e20a97b96a /test
parent2395f2b919f44cae22b2ca99cd779e69d79f710a (diff)
downloademacs-200c532bd04a67a89db602462d74706051c61178.tar.gz
emacs-200c532bd04a67a89db602462d74706051c61178.zip
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'.
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 75a3d0101c3..be845db162a 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
12014-04-02 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-03-26 Barry O'Reilly <gundaetiapo@gmail.com> 62014-03-26 Barry O'Reilly <gundaetiapo@gmail.com>
2 7
3 * automated/undo-tests.el (undo-test-marker-adjustment-nominal): 8 * automated/undo-tests.el (undo-test-marker-adjustment-nominal):
diff --git a/test/automated/electric-tests.el b/test/automated/electric-tests.el
index e3ffd1abd2e..c43b87f3f81 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