aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-02-14 12:00:22 +0100
committerLars Ingebrigtsen2022-02-14 12:00:22 +0100
commitd52d913fa032a6cd1b6422cbbd44169b318ca174 (patch)
treed7ffaade323b584e56ef31fd1fff4846c1d82ba0 /test
parent35bb4c1c3c64d09d9dea0ed7ba0314893e8f5f3c (diff)
downloademacs-d52d913fa032a6cd1b6422cbbd44169b318ca174.tar.gz
emacs-d52d913fa032a6cd1b6422cbbd44169b318ca174.zip
Don't signal errors in abbrev-table-p
* lisp/abbrev.el (abbrev-table-p): Ignore the error. * src/lread.c (oblookup): Signal `wrong-type-argument' instead of `error' if it turns out that we're not really in an obarray (bug#53988).
Diffstat (limited to 'test')
-rw-r--r--test/lisp/abbrev-tests.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lisp/abbrev-tests.el b/test/lisp/abbrev-tests.el
index 394eae48ee3..947178473e4 100644
--- a/test/lisp/abbrev-tests.el
+++ b/test/lisp/abbrev-tests.el
@@ -301,6 +301,10 @@
301 (inverse-add-abbrev table "Global" -1))) 301 (inverse-add-abbrev table "Global" -1)))
302 (should (string= (abbrev-expansion "text" table) "bar")))) 302 (should (string= (abbrev-expansion "text" table) "bar"))))
303 303
304(ert-deftest test-abbrev-table-p ()
305 (should-not (abbrev-table-p translation-table-vector))
306 (should (abbrev-table-p (make-abbrev-table))))
307
304(provide 'abbrev-tests) 308(provide 'abbrev-tests)
305 309
306;;; abbrev-tests.el ends here 310;;; abbrev-tests.el ends here