From 8e4553269a4d2a14b0160ec9def80cade6648245 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 19 Mar 2021 18:49:52 -0700 Subject: run :HOSTATTRS subroutines even when unapplying Signed-off-by: Sean Whitton --- src/propspec.lisp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/propspec.lisp') diff --git a/src/propspec.lisp b/src/propspec.lisp index db8f81e..8572cae 100644 --- a/src/propspec.lisp +++ b/src/propspec.lisp @@ -337,6 +337,12 @@ apply the elements of REQUIREMENTS in reverse order." :desc (lambda (&rest args) (strcat "Unapply: " (apply #'propdesc psym args))) :check (complement (get psym 'check)) + :hostattrs (lambda (&rest args) + ;; run the :HOSTATTRS subroutine but throw away any + ;; new hostattrs; when unapplying, the :HOSTATTRS + ;; subroutine is only to check compatibility + (let ((*host* (shallow-copy-host *host*))) + (apply #'propattrs psym args))) :apply (get psym 'unapply) :unapply (get psym 'papply) :args args))) -- cgit v1.2.3