Function: cider--debug-commands-in-group

cider--debug-commands-in-group is a function defined in cider-debug.el.

Signature

(cider--debug-commands-in-group GROUP)

Documentation

Return the cider--debug-commands entries belonging to GROUP.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-debug.el
;; The command catalog is the single source of truth for both the menu-bar
;; menu (`cider-debug-mode-menu') and the transient menu (`cider-debug-menu'),
;; so the two can no longer drift apart.  It is wrapped in `eval-and-compile'
;; because the transient prefix is generated from it at macroexpansion time.
(eval-and-compile
  (defconst cider--debug-commands
    '((?n cider-debug-next         "Next step"                         stepping)
      (?i cider-debug-in           "Step in"                           stepping)
      (?o cider-debug-out          "Step out"                          stepping)
      (?O cider-debug-force-out    "Step out (skip breakpoints)"       stepping)
      (?h cider-debug-move-here    "Continue to point"                 stepping)
      (?c cider-debug-continue     "Continue"                          stepping)
      (?C cider-debug-continue-all "Continue non-stop"                 stepping)
      (?e cider-debug-eval         "Eval in debug scope"               values)
      (?j cider-debug-inject       "Inject value"                      values)
      (?p cider-debug-inspect      "Inspect current value"             values)
      (?P cider-debug-inspect-expr "Inspect expression"                values)
      (?l cider-debug-locals       "Inspect locals"                    values)
      (?L cider-debug-toggle-locals "Toggle locals display"            values)
      (?s cider-debug-stacktrace   "Show stacktrace"                   session)
      (?t cider-debug-trace        "Trace (continue, printing values)" session)
      (?q cider-debug-quit         "Quit session"                      session))
    "Catalog of the debugger's user-facing commands.
Each entry is (KEY FUNCTION DESCRIPTION GROUP), where KEY is the character
that invokes FUNCTION during a session, DESCRIPTION is the label shown in
the menus, and GROUP is one of `stepping', `values', or `session'.")

  (defun cider--debug-commands-in-group (group)
    "Return the `cider--debug-commands' entries belonging to GROUP."
    (seq-filter (pcase-lambda (`(,_key ,_fn ,_desc ,g)) (eq g group))
                cider--debug-commands)))