From d8f12a2c350ad788e1c9ce532f42460273990424 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 16 Sep 2021 18:23:55 -0700 Subject: IGNORING-HOSTATTRS: accept calling properties using APPLY & similar Signed-off-by: Sean Whitton --- src/property.lisp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/property.lisp b/src/property.lisp index 660a23e..245c440 100644 --- a/src/property.lisp +++ b/src/property.lisp @@ -331,7 +331,11 @@ subroutine, muffle warnings about calling a property with a :HOSTATTRS subroutine programmatically. Use this only when you know that the :HOSTATTRS subroutine does not push any new hostattrs." (unless - (and (listp form) (or (not (fboundp (car form))) (isprop (car form)))) + (and (listp form) (or (not (fboundp (car form))) + (isprop (car form)) + (and (listp (cadr form)) + (eql 'function (caadr form)) + (isprop (cadadr form))))) (simple-program-error "~A is not a programmatic call to a property." form)) `(handler-bind ((programmatic-apply-hostattrs #'muffle-warning)) ,form)) -- cgit v1.2.3