I would like to define my own hook, where the result of each caller is collected (when the hook is run).
Is there a way to do this?
Currently I pass in a function to the hook, that function can be run with the result of the hook, but this feels quite awkward,
(defun my-hook (fn-result) ;; This allows me to emit a result for each function, but isn't nice. (funcall fn-result (+ 1 1))) (add-hook 'my-custom-hook #'my-hook)