]> git.eshelyaron.com Git - emacs.git/commit
Cleanup some type predicates
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 12 Mar 2024 19:43:43 +0000 (15:43 -0400)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Mar 2024 08:58:43 +0000 (09:58 +0100)
commit854816e4057d0f65dfa70b57dcb8048cd70b2c59
treebfde0612f2634d56fddccd0f1e03f819b59f0d2d
parentb45a9a9106cee4c50b9a854bd5755ffa7c9b1b1a
Cleanup some type predicates

Use the new `cl--define-built-in-type` to reduce the manually
maintained list of built-in type predicates.
Also tweak docstrings to use "supertype" rather than "super type",
since it seems to be what we use elsewhere.

* lisp/subr.el (special-form-p): Remove redundant `fboundp` test.
(compiled-function-p): Don'Return nil for subrs that aren't functions.

* lisp/emacs-lisp/cl-macs.el (type predicates): Trim down the list.

* lisp/emacs-lisp/cl-preloaded.el (cl--define-built-in-type):
Register the corresponding predicate if applicable.
(atom, null): Specify the predicate name explicitly.

(cherry picked from commit 8df673907781bce8b080b91b056cb9987587387c)
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/cl-preloaded.el
lisp/emacs-lisp/oclosure.el
lisp/subr.el