mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-10 00:00:39 -08:00
* lisp/emacs-lisp/cl-macs.el (cl-defstruct): Decl struct predicates as pure
This commit is contained in:
parent
ec3b6fa8e1
commit
c35c86a353
1 changed files with 1 additions and 1 deletions
|
|
@ -3050,7 +3050,7 @@ To see the documentation for a defined struct type, use
|
|||
`(,predicate cl-x))))
|
||||
(when pred-form
|
||||
(push `(,defsym ,predicate (cl-x)
|
||||
(declare (side-effect-free error-free))
|
||||
(declare (side-effect-free error-free) (pure t))
|
||||
,(if (eq (car pred-form) 'and)
|
||||
(append pred-form '(t))
|
||||
`(and ,pred-form t)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue