Function: cider-repl--help-section
cider-repl--help-section is a byte-compiled function defined in
cider-repl.el.
Signature
(cider-repl--help-section TITLE ROWS &optional KEYMAP)
Documentation
Format a refcard section: a faced TITLE over aligned ROWS.
Each row is a cons (KEY-OR-COMMAND . DESCRIPTION); a symbol is resolved to its
key in KEYMAP (default cider-repl-mode-map), a string is shown verbatim.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-repl.el
(defun cider-repl--help-section (title rows &optional keymap)
"Format a refcard section: a faced TITLE over aligned ROWS.
Each row is a cons (KEY-OR-COMMAND . DESCRIPTION); a symbol is resolved to its
key in KEYMAP (default `cider-repl-mode-map'), a string is shown verbatim."
(let* ((keymap (or keymap 'cider-repl-mode-map))
(cells (mapcar (lambda (row)
(cons (if (symbolp (car row))
(cider-repl--help-key (car row) keymap)
(car row))
(cdr row)))
rows))
(width (apply #'max 3 (mapcar (lambda (c) (string-width (car c))) cells))))
(concat
(propertize title 'face 'cider-repl-help-heading) "\n"
(mapconcat (lambda (c)
(format " %s%s %s"
(car c)
(make-string (- width (string-width (car c))) ?\s)
(cdr c)))
cells "\n")
"\n")))