From 10696d0ac51b9a92359ab7cb2c2e0a28d186dd52 Mon Sep 17 00:00:00 2001 From: martin rudalics Date: Tue, 22 Sep 2020 16:44:15 +0200 Subject: Make delete-pair only delete pairs that are part of insert-pair-alist * lisp/emacs-lisp/lisp.el (delete-pair): Only delete pairs that are part of `insert-pair-alist' (bug#4136). --- test/lisp/emacs-lisp/lisp-tests.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/lisp/emacs-lisp/lisp-tests.el') diff --git a/test/lisp/emacs-lisp/lisp-tests.el b/test/lisp/emacs-lisp/lisp-tests.el index a2b8304c96a..1476574552f 100644 --- a/test/lisp/emacs-lisp/lisp-tests.el +++ b/test/lisp/emacs-lisp/lisp-tests.el @@ -136,8 +136,7 @@ (text-mode) (insert "\"foo\"") (goto-char (point-min)) - (delete-pair) - (should (string-equal "fo\"" (buffer-string))))) + (should-error (delete-pair)))) (ert-deftest lisp-delete-pair-quotes-text-mode-syntax-table () "Test \\[delete-pair] with modified Text Mode syntax for #15014." -- cgit v1.2.3