Commit 7e6992e0 authored by Jim Blandy's avatar Jim Blandy
Browse files

* keyboard.c (menu_bar_items, read_key_sequence): Use

	current_global_map, not global_map; the latter is only meant to be
	used for initial_define_key.
	* commands.h: Doc fix.
parent 6ce387e6
......@@ -3170,7 +3170,7 @@ menu_bar_items ()
#else
maps[nmaps-2] = current_buffer->keymap;
#endif
maps[nmaps-1] = global_map;
maps[nmaps-1] = current_global_map;
}
/* Look up in each map the dummy prefix key `menu-bar'. */
......@@ -3740,7 +3740,7 @@ read_key_sequence (keybuf, bufsize, prompt)
#else
submaps[nmaps-2] = current_buffer->keymap;
#endif
submaps[nmaps-1] = global_map;
submaps[nmaps-1] = current_global_map;
}
/* Find an accurate initial value for first_binding. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment