Function: embark--run-action-hooks

embark--run-action-hooks is a byte-compiled function defined in embark.el.

Signature

(embark--run-action-hooks HOOKS ACTION TARGET QUIT)

Documentation

Run HOOKS for ACTION.

The HOOKS argument must be alist. The keys t and :always are treated specially. The :always hooks are executed always and the t hooks are the default hooks, for when there are no command-specific hooks for ACTION. The QUIT, ACTION and TARGET arguments are passed to the hooks as keyword arguments.

Source Code

;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defun embark--run-action-hooks (hooks action target quit)
  "Run HOOKS for ACTION.
The HOOKS argument must be alist.  The keys t and :always are
treated specially.  The :always hooks are executed always and the
t hooks are the default hooks, for when there are no
command-specific hooks for ACTION.  The QUIT, ACTION and TARGET
arguments are passed to the hooks as keyword arguments."
  (mapc (lambda (h) (apply h :action action :quit quit target))
        (or (alist-get action hooks)
            (alist-get t hooks)))
  (mapc (lambda (h) (apply h :action action :quit quit target))
        (alist-get :always hooks)))