Function: which-key-dump-bindings
which-key-dump-bindings is an autoloaded, interactive and
byte-compiled function defined in which-key.el.gz.
Signature
(which-key-dump-bindings PREFIX BUFFER-NAME)
Documentation
Dump bindings from PREFIX into buffer named BUFFER-NAME.
PREFIX should be a string suitable for kbd.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/which-key.el.gz
;;;###autoload
(defun which-key-dump-bindings (prefix buffer-name)
"Dump bindings from PREFIX into buffer named BUFFER-NAME.
PREFIX should be a string suitable for `kbd'."
(interactive "sPrefix: \nB")
(let* ((buffer (get-buffer-create buffer-name))
(keys (which-key--get-bindings (kbd prefix))))
(with-current-buffer buffer
(point-max)
(save-excursion
(dolist (key keys)
(insert (apply #'format "%s%s%s\n" key)))))
(switch-to-buffer-other-window buffer)))