From: Andrea Corallo Date: Wed, 1 Dec 2021 10:23:25 +0000 (+0100) Subject: * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Decl struct predicates as pure X-Git-Tag: emacs-29.0.90~3630^2~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c35c86a353c7dd6d4130913c532aba026a5a6562;p=emacs.git * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Decl struct predicates as pure --- diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el index 1852471bcbb..9c9a778f045 100644 --- a/lisp/emacs-lisp/cl-macs.el +++ b/lisp/emacs-lisp/cl-macs.el @@ -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)))