diff options
| author | Stefan Monnier | 2020-03-27 17:14:34 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2020-03-27 17:14:34 -0400 |
| commit | 09d67716e5492306c0bf704e6538d22a5bc76405 (patch) | |
| tree | b34bb6f594710859d01b6a5fe5754241cf5d14b4 | |
| parent | 3fdb53b13ac06af91763410925ca71158bcff6da (diff) | |
| download | emacs-09d67716e5492306c0bf704e6538d22a5bc76405.tar.gz emacs-09d67716e5492306c0bf704e6538d22a5bc76405.zip | |
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Declare the type immediately
| -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: | |||
| 2868 | (append pred-form '(t)) | 2868 | (append pred-form '(t)) |
| 2869 | `(and ,pred-form t))) | 2869 | `(and ,pred-form t))) |
| 2870 | forms) | 2870 | forms) |
| 2871 | (push `(put ',name 'cl-deftype-satisfies ',predicate) forms)) | 2871 | (push `(eval-and-compile |
| 2872 | (put ',name 'cl-deftype-satisfies ',predicate)) | ||
| 2873 | forms)) | ||
| 2872 | (let ((pos 0) (descp descs)) | 2874 | (let ((pos 0) (descp descs)) |
| 2873 | (while descp | 2875 | (while descp |
| 2874 | (let* ((desc (pop descp)) | 2876 | (let* ((desc (pop descp)) |
| @@ -3138,6 +3140,7 @@ Of course, we really can't know that for sure, so it's just a heuristic." | |||
| 3138 | ;; "Obvious" mappings. | 3140 | ;; "Obvious" mappings. |
| 3139 | (string . stringp) | 3141 | (string . stringp) |
| 3140 | (list . listp) | 3142 | (list . listp) |
| 3143 | (cons . consp) | ||
| 3141 | (symbol . symbolp) | 3144 | (symbol . symbolp) |
| 3142 | (function . functionp) | 3145 | (function . functionp) |
| 3143 | (integer . integerp) | 3146 | (integer . integerp) |