Function: which-key--max-len

which-key--max-len is a byte-compiled function defined in which-key.el.gz.

Signature

(which-key--max-len KEYS INDEX &optional INITIAL-VALUE)

Documentation

Find the max length of the INDEX element in each of KEYS.

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defsubst which-key--max-len (keys index &optional initial-value)
  "Find the max length of the INDEX element in each of KEYS."
  (cl-reduce
   (lambda (x y) (max x (which-key--string-width (nth index y))))
   keys :initial-value (if initial-value initial-value 0)))