Using the nhooks system from quicklisp there is a bug while using the :append key on add-hook. My use case depends on preserving the order handlers are added to hooks.
Before the patch, using add-hooks without :append works as intended:
CL-USER> (progn
(defun bar () (print "Running bar"))
(defun foo () (print "Running foo"))
(let ((foo-hook (make-instance 'nhooks:hook)))
(nhooks:add-hook foo-hook 'foo :append t)
(nhooks:add-hook foo-hook 'bar :append t)
(nhooks:run-hook foo-hook)))
The value
#<NHOOKS:HOOK {1001635CE3}>
is not of type
SYMBOL
With the patch, the expected ordering occurs.
Note: the rest of the is patch basically indented code for legibility (automatic), so feel free to reject it.
Using the
nhooks
system from quicklisp there is a bug while using the:append
key onadd-hook
. My use case depends on preserving the order handlers are added to hooks.Before the patch, using add-hooks without
:append
works as intended:But using :append t results in an error:
With the patch, the expected ordering occurs.
Note: the rest of the is patch basically indented code for legibility (automatic), so feel free to reject it.