mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Declare the type immediately
This commit is contained in:
parent
3fdb53b13a
commit
09d67716e5
1 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue