]> git.eshelyaron.com Git - emacs.git/commitdiff
* Define `cl-satisfies-deftype' mapping predicate -> type
authorAndrea Corallo <akrl@sdf.org>
Tue, 29 Dec 2020 10:39:26 +0000 (11:39 +0100)
committerAndrea Corallo <akrl@sdf.org>
Tue, 29 Dec 2020 13:47:16 +0000 (14:47 +0100)
* lisp/emacs-lisp/cl-macs.el (cl-satisfies-deftype): Define symbol
property as reverse of `cl-deftype-satisfies'.

lisp/emacs-lisp/cl-macs.el

index f4b22ffbea221574aa0108a97436e674b6e83dae..7dfcc288e6799fc9f85ca14620f81ab1c5f0aa38 100644 (file)
@@ -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)