mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-17 17:58:46 +00:00
(cl-make-type-test): Defer evaluation of cl-make-type-test to execution time.
This commit is contained in:
parent
bfff13ab8f
commit
cb35e5595f
@ -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))))
|
||||
|
Loading…
Reference in New Issue
Block a user