Function: make-keymap

make-keymap is a function defined in keymap.c.

Signature

(make-keymap &optional STRING)

Documentation

Construct and return a new keymap, of the form (keymap CHARTABLE . ALIST).

CHARTABLE is a char-table that holds the bindings for all characters without modifiers. All entries in it are initially nil, meaning
"command undefined". ALIST is an assoc-list which holds bindings for
function keys, mouse events, and any other things that appear in the input stream. Initially, ALIST is nil.

The optional arg STRING supplies a menu name for the keymap in case you use it as a menu with x-popup-menu.

View in manual

Source Code

// Defined in /usr/src/emacs/src/keymap.c
{
  Lisp_Object tail = !NILP (string) ? list1 (string) : Qnil;
  return Fcons (Qkeymap,
		Fcons (Fmake_char_table (Qkeymap, Qnil), tail));
}