Commit graph

24 commits

Author SHA1 Message Date
Richard M. Stallman
0b8fc2d451 (Fdefine_key): Use proper meta-bit to clear.
(access_keymap): Handle ints beyond the ASCII range.
(store_in_keymap): Likewise.
(Faccessible_keymaps): Use meta_modifier.
Use vectors for the key sequences.
(Fwhere_is_internal): Use meta_modifier.
(append_key): Always return a vector.
1993-03-10 05:24:42 +00:00
Richard M. Stallman
6ba6e250c9 Include termhooks.h.
(push_key_description): Handle all modifiers.
Handle large character codes.
(Fkey_description): Move the meta bit, if arg is string.
(Fsingle_key_description): Don't alter integer value.
Make tem long enough.

(Flookup_key): Use meta_modifier as meta-bit if from vector.
(Fdefine_key): Likewise.
1993-03-07 23:32:54 +00:00
Jim Blandy
92cc37e8ce * keymap.c (Fdescribe_vector): Pass the proper number of arguments
to describe_vector.
	* syntax.c (describe_syntax_1): Same.
1993-02-22 14:44:52 +00:00
Richard M. Stallman
5cba3869f5 (describe_map): Call Fkey_description before build_string. 1993-02-19 05:43:54 +00:00
Jim Blandy
7c1402521d * keymap.c (Flookup_key, Fkey_binding, Flocal_key_binding,
Fglobal_key_binding, Fminor_mode_key_binding): Add a new optional
	argument ACCEPT_DEFAULT, to control whether this function sees
	bindings for t.
	(Fwhere_is_internal, describe_map_tree, describe_map_2,
	describe_vector): Pass the proper arguments to Flookup_key.
1993-02-14 14:38:43 +00:00
Jim Blandy
dbc4e1c129 JimB's changes since January 18th 1993-01-26 01:58:16 +00:00
Jim Blandy
8e4dfd5403 * keymap.c (get_keymap_1): Don't try to autoload OBJECT's function
unless the autoload form indicates that it's a keymap.
1992-11-07 07:34:58 +00:00
Jim Blandy
d09b20248d * keymap.c (Fdefine_key, Flookup_key, describe_map): Don't assume
that Flength returns an integer.

	* keymap.c: Deal with autoloaded keymaps properly.
        (get_keymap_1): Renamed to inner_get_keymap; made
	static.  New argument AUTOLOAD says to pursue autoloads if
	non-zero.
	(Fkeymapp, get_keymap, get_keyelt, Flookup_key): Ask get_keymap_1
	not to perform autoloads.
	(Fdefine_key): Ask get_keymap_1 to perform autoloads.  Since
	autoloading may GC, remember that we have to GCPRO our local
	variables now.
	(Fminor_mode_key_binding): Call get_keymap instead of calling
	get_keymap_1 with equivalent arguments.
1992-10-31 05:24:47 +00:00
Jim Blandy
0188441d06 * keymap.c (store_in_keymap): Don't forget to QUIT in the
keymap-scanning loop.  Don't treat vectors as binding tables if
	they're the wrong length.

	* keymap.c (store_in_keymap): Don't forget to QUIT in the
	keymap-scanning loop.  Don't treat vectors as binding tables if
	they're the wrong length.
1992-10-19 18:41:06 +00:00
Jim Blandy
e25c4e44b8 * keymap.c (initial_define_lispy_key): New function, for defining
non-ascii keys.

	* keymap.c (access_keymap): Treat bindings for Qt as default
	bindings, when new argument T_OK is non-zero.
	(get_keyelt, Fdefine_key, Flookup_key): Call access_keymap with
	T_OK false.
1992-10-11 06:43:30 +00:00
Jim Blandy
cebd887d3a * keymap.c (access_keymap, store_in_keymap,
Fsingle_key_description): No need to check for
	EVENT_HAS_PARAMETERS before using EVENT_HEAD; the latter now
	works properly on all sorts of events.
1992-10-03 00:05:39 +00:00
Jim Blandy
20218e2f8a * keymap.c (access_keymap): Don't forget to QUIT while scanning
the keymap.
1992-09-29 16:01:03 +00:00
Jim Blandy
fde3a52f24 * keymap.c (access_keymap): Remove code to notice bindings for
Qt.

	* keymap.c (Fwhere_is_internal): Don't forget to advance map to
	the next element when we find something that is neither a vector
	nor a cons.  Don't forget to QUIT in the appropriate places,
	either.
1992-09-28 02:20:23 +00:00
Jim Blandy
f5b79c1c36 * keymap.c (DENSE_TABLE_SIZE): Doc fix.
(keymap_table): Function removed; this function exists only to
	support an incorrect understanding of the format of keymaps.
	(access_keymap, store_in_keymap, Fcopy_keymap,
	Faccessible_keymaps): Correctly handle vectors at any point in the
	keymap; don't assume it must be at the front.
	(describe_map): Instead of calling describe_vector on the vector
	in the cadr of the keymap (if present) and then calling
	describe_alist to do the rest, just call describe_map_2.
	(describe_alist): Renamed to describe_map_2; call describe_vector
	when we encounter a vector in the list.

	* keymap.c (access_keymap, store_in_keymap): Clarify error message
	for non-ASCII characters.

	* keymap.c (access_keymap): Return the binding of Qt as the
	binding for all unbound characters.
1992-09-23 12:46:52 +00:00
Richard M. Stallman
1a8c3f100a (get_keyelt): Skip menu help string after menu item name. 1992-09-18 07:29:36 +00:00
Jim Blandy
4726a9f1c0 * keymap.c (describe_buffer_bindings): Adjust key_heading to match
the format used by describe_map_tree.  Also, don't reprint the
	"key    binding" header above the global bindings if we've already
	printed it for the local bindings; it's clear enough that the
	columns mean the same thing as above.

	* keymap.c (describe_buffer_bindings): Declare buf and bufend...

	* keymap.c (describe_buffer_bindings): Set the current buffer to
	descbuf before calling current_minor_maps; that function's value
	depends on the values of buffer-local variables.  Don't set the
	current buffer to Vstandard_output until afterwards.

	* keymap.c (describe_buffer_bindings): If
	Vkeyboard_translate_table is in effect, describe its effects.
1992-09-13 12:33:23 +00:00
Richard M. Stallman
ce6e5d0b57 (Fmake_sparse_keymap, Fmake_keymap): New optional arg. Callers changed.
(keymap_table): No longer static.
1992-09-11 23:30:25 +00:00
Jim Blandy
502ddf238f entered into RCS 1992-05-18 08:13:37 +00:00
Jim Blandy
6bbbd9b0ee *** empty log message *** 1992-01-28 17:14:13 +00:00
Jim Blandy
265a9e559d *** empty log message *** 1992-01-13 21:48:08 +00:00
Jim Blandy
cc0a8174ba *** empty log message *** 1991-12-20 07:15:37 +00:00
Jim Blandy
6e8290aada *** empty log message *** 1991-07-31 17:51:28 +00:00
Jim Blandy
1d8d96fa60 *** empty log message *** 1991-07-28 14:50:08 +00:00
Jim Blandy
2c6f1a390d Initial revision 1991-05-06 03:30:56 +00:00