Function: transient-copy-menu-text

transient-copy-menu-text is an interactive and byte-compiled function defined in transient.el.

Signature

(transient-copy-menu-text)

Documentation

Copy the contents of the menu buffer to the kill ring.

To make this available in all menus, bind it in transient-map

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(defun transient-copy-menu-text ()
  "Copy the contents of the menu buffer to the kill ring.
To make this available in all menus, bind it in `transient-map'"
  (interactive)
  (transient--show)
  (with-current-buffer (get-buffer transient--buffer-name)
    (copy-region-as-kill (point-min) (point-max))))