| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
lisp string data.
|
| |
|
|
|
| |
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
(Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
of XSYMBOL and name field.
(describe_command, describe_translation): Use SYMBOL_NAME and
assignment instead of XSYMBOL and name field and XSETSTRING.
|
| |
|
|
|
|
|
|
|
|
|
| |
(Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
(Fset_keymap_parent): Gcpro a bit more.
(access_keymap): Gcpro around meta_map call and around the main loop.
(get_keyelt): Gcpro when following indirect references.
(copy_keymap_item): New fun, extracted from Fcopy_keymap.
(copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
(Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
Remove useless ad-hoc remap code.
|
| |
|
|
|
|
|
|
| |
only update cmm_size if realloc actually succeeds.
Testing with initial size of 2 elements revealed that using
realloc on GNU/Linux would cause a random trap in xmalloc
later on, so I rewrote the code to use malloc/bcopy/free instead
of realloc.
|
| |
|
|
|
|
| |
(syms_of_keymap): DEFVAR_LISP it.
(current_minor_maps): Process keymap alists in that list before
minor-mode-overriding-map-alist and minor-mode-map-alist.
|
| |
|
|
|
|
| |
The validation of the event type was too strict as it didn't
allow string events; buffer names are used in bindings for
menu-bar-select-buffer (see `menu-bar-update-buffers').
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
remapped if it fulfills is_command_symbol.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
defining command remapping. Doc updated.
(Flookup_key): Remap command through keymap if KEY is a symbol.
(is_command_symbol): New function.
(Fkey_binding): Use it. New optional argument NO-REMAP. Doc
updated. Callers changed. Perform command remapping via
recursive call unless that arg is non-nil.
(where_is_internal): New argument no_remap. Callers changed.
Call recursively to find original key bindings for a remapped
comand unless that arg is non-nil.
(Fwhere_is_internal): New optional argument NO-REMAP. Doc
updated. Callers changed. Pass arg to where_is_internal.
|
| |
|
|
|
|
| |
(Fkey_binding): Try the `keymap' property map first.
(Fdescribe_buffer_bindings): Show `keymap' property bindings before
minor mode bindings.
|
| |
|
|
| |
Handle modifier bits. Correct typo in error message.
|
| |
|
|
|
|
| |
(Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
(exclude_keys): New variable.
(Flookup_key): Error message if key has wrong data type.
|
| | |
|
| | |
|
| |
|
|
|
| |
Make nil bindings in char-tables transparent.
(store_in_keymap): Turn a nil binding into a t binding for char-tables.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
(describe_command, describe_translation): Add dummy second param.
(describe_map): Call elt_describer with two arguments.
(describe_vector_princ): Add `fun' parameter.
Call it instead of the hardcoded `princ'.
(describe_vector): Add arg `args'.
Pass it as a new second argument to elt_describer.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
bindings along with or instead of the buffer local map.
Make the overriding maps override what they should.
|
| | |
|
| |
|
|
| |
correspondent in minor-mode-map-alist, not the whole tail.
|
| |
|
|
| |
with lisp system changes.
|
| |
|
|
|
| |
If a parent is reached and noinherit is set, exit immediately.
Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
|
| |
|
|
|
|
| |
(Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
(syms_of_keymap): Setup inheritance between maps.
Don't export Sdescribe_bindings_internal any more.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
(accessible_keymaps_1): New function.
(Faccessible_keymaps, accessible_keymaps_char_table): Use it.
(Fwhere_is_internal): Use Fcurrent_active_maps.
(Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
Insert in current buffer rather than standard-output.
Don't call `help-mode'. Export to elisp.
(describe_buffer_bindings): New wrapper.
(syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
and Sdescribe_buffer_bindings.
|
| | |
|
| |
|
|
| |
a generic character instead of its definition (KEY . BINDING).
|
| |
|
|
| |
IDX when it has modifiers.
|
| |
|
|
|
|
| |
. BINDING) exists, where GENERIC-CHAR is the generic character of
the charset of IDX, return BINDING, unless there exists or binding
for IDX itself.
|
| |
|
|
| |
buffer before calling build_string.
|
| |
|
|
| |
only if necessary.
|
| |
|
|
| |
a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
|
| |
|
|
|
| |
(accessible_keymaps_char_table): Obey `is_metized'.
(where_is_internal, Fwhere_is_internal): Don't confuse int and Lisp_Object.
|
| | |
|
| | |
|
| |
|
|
| |
if no ascii binding is found (when firstonly is t).
|
| | |
|
| |
|
|
| |
(where_is_internal, Fwhere_is_internal): Use it.
|
| | |
|