X-Git-Url: https://git.hcoop.net/clinton/lisp-on-lines.git/blobdiff_plain/3d5707d5f8129d949a4d6fe48c1b3e5eda41edc9..2548f0540da69973512f1827b2bfd2360470bb27:/src/description.lisp diff --git a/src/description.lisp b/src/description.lisp index bb1f88a..d373ace 100644 --- a/src/description.lisp +++ b/src/description.lisp @@ -51,21 +51,22 @@ (find-attribute description 'active-attributes)) (attributes (when active-attributes (ignore-errors (attribute-value active-attributes))))) - (if attributes - (mapcar (lambda (spec) - (find-attribute - description - (if (listp spec) - (car spec) - spec))) - attributes) - (remove-if-not - (lambda (attribute) - (and (attribute-active-p attribute) - (some #'layer-active-p - (mapcar #'find-layer - (slot-definition-layers - (attribute-effective-attribute-definition attribute)))))) + (remove-if-not + (lambda (attribute) + (and attribute + (attribute-active-p attribute) + (some #'layer-active-p + (mapcar #'find-layer + (slot-definition-layers + (attribute-effective-attribute-definition attribute)))))) + (if attributes + (mapcar (lambda (spec) + (find-attribute + description + (if (listp spec) + (car spec) + spec))) + attributes) (description-attributes description))))))