The following changes rework my patch of 2002-02-06 which
authorKim F. Storm <storm@cua.dk>
Sat, 23 Feb 2002 22:00:37 +0000 (22:00 +0000)
committerKim F. Storm <storm@cua.dk>
Sat, 23 Feb 2002 22:00:37 +0000 (22:00 +0000)
commita1df473f03585f099f2921bcf268294349941630
tree01bec0a3942287379213ea0d2cf7a30e5a54edc8
parent0edda6b89df6af82bb35b02f3aa79278805bd3cf
The following changes rework my patch of 2002-02-06 which
added command remapping by entering the commands directly into
the keymaps.  Now, command remapping uses an explicit `remap'
prefix in the keymaps, i.e. [remap COMMAND].

(Qremap, remap_command_vector): New variables.
(is_command_symbol): Removed function.
(Fdefine_key): No longer accept a symbol for KEY.  Added
validation of [remap COMMAND] argument for KEY.  The DEF is no
longer required to be a symbol when remapping a command.
(Fremap_command): New function to remap command through keymaps.
(Flookup_key): Perform command remapping initiated by
Fremap_command directly for speed.
(Fkey_binding): Use Fremap_command for command remapping.
(where_is_internal): Handle new command remapping representation.
(syms_of_keymap): Intern Qremap, initialize remap_command_vector,
staticpro them.  Defsubr Fremap_command.
src/keymap.c