Function: embark--verbose-indicator-update
embark--verbose-indicator-update is a byte-compiled function defined
in embark.el.
Signature
(embark--verbose-indicator-update KEYMAP TARGETS)
Documentation
Update verbose indicator buffer.
The arguments are the new KEYMAP and TARGETS.
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defun embark--verbose-indicator-update (keymap targets)
"Update verbose indicator buffer.
The arguments are the new KEYMAP and TARGETS."
(with-current-buffer (get-buffer-create embark--verbose-indicator-buffer)
(let* ((inhibit-read-only t)
(bindings
(embark--formatted-bindings keymap embark-verbose-indicator-nested))
(bindings (car bindings))
(shadowed-targets (mapcar
(lambda (x) (symbol-name (plist-get x :type)))
(cdr targets)))
(cycle (let ((ck (where-is-internal #'embark-cycle keymap)))
(and ck (key-description (car ck))))))
(setq-local cursor-type nil)
(setq-local truncate-lines t)
(setq-local buffer-read-only t)
(erase-buffer)
(dolist (section embark-verbose-indicator-buffer-sections)
(insert
(if (stringp section)
section
(or (funcall
(let ((prefixed (intern (format
"embark--verbose-indicator-section-%s"
section))))
(cond
((fboundp prefixed) prefixed)
((fboundp section) section)
(t (error "Undefined verbose indicator section `%s'"
section))))
:targets targets :shadowed-targets shadowed-targets
:bindings bindings :cycle cycle)
""))))
(goto-char (point-min)))))