From 554dbe8181db32f7f01f9dac082594e06874045a Mon Sep 17 00:00:00 2001 From: colin Date: Sun, 10 Sep 2023 08:17:58 -0700 Subject: Improved restart messages for some standard hooks --- src/standard-hooks.lisp | 10 ++++++---- testiere.asd | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/standard-hooks.lisp b/src/standard-hooks.lisp index fcf1367..691b537 100644 --- a/src/standard-hooks.lisp +++ b/src/standard-hooks.lisp @@ -21,8 +21,9 @@ ;; (:tests ...)) (defun defclass-restarts-expander (form) - (let ((name (second form))) - `((make-unbound + (let* ((name (second form)) + (restart-name (intern (format nil "UNBIND-FUNCTION-~a" (symbol-name name))))) + `((,restart-name () (setf (find-class ',name) nil))))) @@ -50,8 +51,9 @@ ;; (+ x y z)) (defun defun-restarts-expander (form) - (let ((name (second form))) - `((make-unbound + (let* ((name (second form)) + (restart-name (intern (format nil "UNBIND-CLASS-~a" (symbol-name name))))) + `((,restart-name () (fmakunbound ',name))))) diff --git a/testiere.asd b/testiere.asd index 147b556..374f2e7 100644 --- a/testiere.asd +++ b/testiere.asd @@ -4,7 +4,7 @@ :description "TDD system for Common Lisp" :author "Colin OKeefe " :license "GPLv3" - :version "1.0.0" + :version "1.0.1" :depends-on (:trivia) :pathname "src/" :serial t -- cgit v1.2.3