Function: tool-bar-make-keymap

tool-bar-make-keymap is a byte-compiled function defined in tool-bar.el.gz.

Signature

(tool-bar-make-keymap &optional IGNORE)

Documentation

Generate an actual keymap from tool-bar-map.

Its main job is to figure out which images to use based on the display's color capability and based on the available image libraries.

Source Code

;; Defined in /usr/src/emacs/lisp/tool-bar.el.gz
(defun tool-bar-make-keymap (&optional _ignore)
  "Generate an actual keymap from `tool-bar-map'.
Its main job is to figure out which images to use based on the display's
color capability and based on the available image libraries."
  (let ((key (cons (frame-terminal) tool-bar-map)))
    (or (gethash key tool-bar-keymap-cache)
	(puthash key (tool-bar-make-keymap-1) tool-bar-keymap-cache))))