diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-03-27 17:14:34 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2020-03-27 17:14:34 -0400 |
commit | 09d67716e5492306c0bf704e6538d22a5bc76405 (patch) | |
tree | b34bb6f594710859d01b6a5fe5754241cf5d14b4 /lisp/emacs-lisp | |
parent | 3fdb53b13ac06af91763410925ca71158bcff6da (diff) | |
download | emacs-09d67716e5492306c0bf704e6538d22a5bc76405.tar.gz emacs-09d67716e5492306c0bf704e6538d22a5bc76405.tar.bz2 emacs-09d67716e5492306c0bf704e6538d22a5bc76405.zip |
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Declare the type immediately
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/cl-macs.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 954731b06b8..7f5d197b532 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el @@ -2868,7 +2868,9 @@ Supported keywords for slots are: (append pred-form '(t)) `(and ,pred-form t))) forms) - (push `(put ',name 'cl-deftype-satisfies ',predicate) forms)) + (push `(eval-and-compile + (put ',name 'cl-deftype-satisfies ',predicate)) + forms)) (let ((pos 0) (descp descs)) (while descp (let* ((desc (pop descp)) @@ -3138,6 +3140,7 @@ Of course, we really can't know that for sure, so it's just a heuristic." ;; "Obvious" mappings. (string . stringp) (list . listp) + (cons . consp) (symbol . symbolp) (function . functionp) (integer . integerp) |