Function: context-menu-buffers

context-menu-buffers is a byte-compiled function defined in mouse.el.gz.

Signature

(context-menu-buffers MENU CLICK)

Documentation

Populate MENU with the buffer submenus to buffer switching.

Source Code

;; Defined in /usr/src/emacs/lisp/mouse.el.gz
(defun context-menu-buffers (menu _click)
  "Populate MENU with the buffer submenus to buffer switching."
  (run-hooks 'activate-menubar-hook 'menu-bar-update-hook)
  (define-key-after menu [separator-buffers] menu-bar-separator)
  (map-keymap (lambda (key binding)
                (when (consp binding)
                  (define-key-after menu (vector key)
                    (copy-sequence binding))))
              (mouse-buffer-menu-keymap))
  menu)