Function: cider--menu-add-help-strings

cider--menu-add-help-strings is a byte-compiled function defined in cider-util.el.

Signature

(cider--menu-add-help-strings MENU-LIST)

Documentation

Add a :help entries to items in MENU-LIST.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-util.el
(defun cider--menu-add-help-strings (menu-list)
  "Add a :help entries to items in MENU-LIST."
  (mapcar (lambda (x)
            (cond
             ((listp x) (cider--menu-add-help-strings x))
             ((and (vectorp x)
                   (not (plist-get (append x nil) :help))
                   (functionp (elt x 1)))
              (vconcat x `[:help ,(documentation (elt x 1))]))
             (t x)))
          menu-list))