]> git.eshelyaron.com Git - emacs.git/commit
cl-types: Improve error messages
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 8 May 2025 21:11:05 +0000 (17:11 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 08:55:01 +0000 (10:55 +0200)
commitf9611553e4b8c608c2e7ed7f3e61ab578a024e36
tree0a8c8e372b96f858a72cf76d1b75c96fa600f47a
parenta680cb2a3a1e163fd346790db45ec006cc40b505
cl-types: Improve error messages

* lisp/emacs-lisp/cl-extra.el (cl--derived-type-generalizers):
Check that the type is valid and fully defined.

* lisp/emacs-lisp/cl-lib.el (cl-generic-generalizers) <derived-type>:
Don't delegate to another method just because the type is invalid.

* lisp/emacs-lisp/cl-preloaded.el (cl--define-derived-type):
Minor simplification, and improvement to an error message.

(cherry picked from commit ceba490da921399393200e704520d313eb1ac5c8)
lisp/emacs-lisp/cl-extra.el
lisp/emacs-lisp/cl-lib.el
lisp/emacs-lisp/cl-preloaded.el