Function: make-mode-line-mouse-map

make-mode-line-mouse-map is a byte-compiled function defined in bindings.el.gz.

Signature

(make-mode-line-mouse-map MOUSE FUNCTION)

Documentation

Return a keymap with single entry for mouse key MOUSE on the mode line.

MOUSE is defined to run function FUNCTION with no args in the buffer corresponding to the mode line clicked.

Source Code

;; Defined in /usr/src/emacs/lisp/bindings.el.gz
(defun make-mode-line-mouse-map (mouse function) "\
Return a keymap with single entry for mouse key MOUSE on the mode line.
MOUSE is defined to run function FUNCTION with no args in the buffer
corresponding to the mode line clicked."
  (let ((map (make-sparse-keymap)))
    (define-key map (vector 'mode-line mouse) function)
    map))