defstruct: be more ansi conformant with :predicate

Closes #385.
This commit is contained in:
Daniel Kochmanski 2017-05-30 19:31:55 +02:00
parent cf416f6fd4
commit b6a4d4a851

View file

@ -490,7 +490,7 @@ as a STRUCTURE doc and can be retrieved by (documentation 'NAME 'structure)."
;; Check the named option and set the predicate.
(when (and type (not named))
(when predicate-specified
(when (and predicate-specified predicate)
(error "~S is an illegal structure predicate."
predicate))
(setq predicate nil))