1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-16 17:19:41 +00:00

(cl-make-type-test): Defer evaluation of cl-make-type-test to execution time.

This commit is contained in:
Eli Zaretskii 2005-07-16 11:53:25 +00:00
parent bfff13ab8f
commit cb35e5595f

View File

@ -2399,7 +2399,7 @@ The type name can then be used in `typecase', `check-type', etc."
(cl-make-type-test val (apply (get (car type) 'cl-deftype-handler)
(cdr type))))
((memq (car type) '(integer float real number))
(delq t (and (cl-make-type-test val (car type))
(delq t (list 'and (cl-make-type-test val (car type))
(if (memq (cadr type) '(* nil)) t
(if (consp (cadr type)) (list '> val (caadr type))
(list '>= val (cadr type))))