mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 15:00:34 -08:00
* Define `cl-satisfies-deftype' mapping predicate -> type
* lisp/emacs-lisp/cl-macs.el (cl-satisfies-deftype): Define symbol property as reverse of `cl-deftype-satisfies'.
This commit is contained in:
parent
ba41a183dd
commit
e83c6994e1
1 changed files with 2 additions and 1 deletions
|
|
@ -3198,7 +3198,8 @@ Of course, we really can't know that for sure, so it's just a heuristic."
|
|||
;; FIXME: Do we really want to consider this a type?
|
||||
(integer-or-marker . integer-or-marker-p)
|
||||
))
|
||||
(put type 'cl-deftype-satisfies pred))
|
||||
(put type 'cl-deftype-satisfies pred)
|
||||
(put pred 'cl-satisfies-deftype type))
|
||||
|
||||
;;;###autoload
|
||||
(define-inline cl-typep (val type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue