aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* (access_keymap): Return the cdr of the binding ofGerd Moellmann2001-08-241-1/+1
| | | | a generic character instead of its definition (KEY . BINDING).
* (access_keymap): Fix last change to not considerGerd Moellmann2001-08-221-3/+3
| | | | IDX when it has modifiers.
* (access_keymap): If a binding of the form (GENERIC-CHARGerd Moellmann2001-08-211-2/+25
| | | | | | . BINDING) exists, where GENERIC-CHAR is the generic character of the charset of IDX, return BINDING, unless there exists or binding for IDX itself.
* (Fsingle_key_description): NUL-terminate the stringGerd Moellmann2001-05-291-1/+4
| | | | buffer before calling build_string.
* (Fsingle_key_description): Create a multibyte stringGerd Moellmann2001-05-281-8/+12
| | | | only if necessary.
* (Fsingle_key_description): Replace a build_string withGerd Moellmann2001-05-161-2/+6
| | | | a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
* (Faccessible_keymaps): Pass `is_metized' to accessible_keymaps_char_table.Stefan Monnier2001-02-261-3/+4
| | | | | (accessible_keymaps_char_table): Obey `is_metized'. (where_is_internal, Fwhere_is_internal): Don't confuse int and Lisp_Object.
* *** empty log message ***Stefan Monnier2001-02-261-8/+34
|
* (where_is_internal): Accept non-ascii integer prefixes.Stefan Monnier2001-02-241-2/+3
|
* (Fwhere_is_internal): Use the first valid bindingStefan Monnier2001-01-311-5/+10
| | | | if no ascii binding is found (when firstonly is t).
* Undo last change.Gerd Moellmann2001-01-291-53/+4
|
* (mouse_key_p): New function.Gerd Moellmann2001-01-291-4/+53
| | | | (where_is_internal, Fwhere_is_internal): Use it.
* (Fwhere_is_internal): Declare gcpro3, gcpro4.Dave Love2001-01-251-1/+1
|
* (Fwhere_is_internal): Don't nreverse the cachedGerd Moellmann2001-01-241-12/+27
| | | | | value in where_is_cache; the next lookup in the cache returns something bogus if we do.
* Call get_local_map with new argument list.Gerd Moellmann2001-01-121-12/+13
| | | | (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
* (push_key_description): Add parameter FORCE_MULTIBYTE.Gerd Moellmann2000-12-281-12/+21
| | | | | | | If set, print multibyte text. (Fsingle_key_description): Call push_key_description with FORCE_MULTIBYTE set. (describe_buffer_bindings): Likewise.
* (push_key_description): Don't convert eight-bit-controlKenichi Handa2000-12-211-3/+0
| | | | and eight-bit-graphic to multibyte character.
* (where_is_internal): Check ascii_sequence_p rather thanStefan Monnier2000-12-201-22/+8
| | | | | | | excluding menu-bar and tool-bar. (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache. (menu_item_p): Remove. (where_is_internal_1): Don't ignore menu-items.
* (get_keyelt): Only eval the filter if `autoload' is set.Stefan Monnier2000-12-131-6/+2
|
* (Fkey_description): If KEYS is an empty key sequence,Gerd Moellmann2000-12-111-0/+2
| | | | return an empty string.
* (current_minor_maps): Use malloc. Prevent a leak.Gerd Moellmann2000-12-081-10/+12
|
* * undo.c (record_delete): Check that last_undo_buffer is really a buffer beforeKen Raeburn2000-10-271-1/+1
| | | | | | applying XBUFFER to it. * keymap.c (where_is_internal): Pass lisp object, not integer, to Faref.
* * lisp.h (KEYMAPP): New macro.Stefan Monnier2000-10-271-98/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (get_keymap): Remove. (get_keymap_1): Rename get_keymap. * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype. * xterm.c (note_mode_line_highlight): Use KEYMAPP. * xmenu.c (single_submenu): Use KEYMAPP. (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp. Use KEYMAPP rather than Fkeymapp. * w32term.c (note_mode_line_highlight): Use KEYMAPP. * w32menu.c (True, False): Remove (use TRUE and FALSE instead). (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp. Use KEYMAPP rather than Fkeymapp. (single_submenu): Use KEYMAPP. (w32_menu_show, w32_dialog_show): Use TRUE. * minibuf.c (Fread_from_minibuffer): Update call to get_keymap. * keymap.c (KEYMAPP): Remove (moved to lisp.h). (Fkeymapp): Use KEYMAPP. (get_keymap): Rename from get_keymap_1. Remove old def. Return t when autoload=0 and error=0 and the keymap needs autoloading. (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp. (Fminor_mode_key_binding): Don't raise an error if the binding is not a keymap. (Fuse_global_map, Fuse_local_map): Allow autoloading. (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp. * keyboard.c (read_char): get_keymap_1 -> get_keymap. Allow Vspecial_event_map to be autoloaded. (menu_bar_items): Fetch the keymap rather than using keymapp. (menu_bar_one_keymap): No need to follow func-indirect any more. (parse_menu_item): get_keymap_1 -> get_keymap. (tool_bar_items): Fetch the keymap rather than using keymapp. (read_key_sequence): Use KEYMAPP. * intervals.c (get_local_map): Use get_keymap rather than following function-indirections explicitly. * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
* (where_is_cache, where_is_cache_keymaps): New vars.Stefan Monnier2000-10-251-47/+122
| | | | | | | | | (Fset_keymap_parent, store_in_keymap): Flush the where-is cache. (where_is_internal): Renamed from Fwhere_is_internal. Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'. (Fwhere_is_internal): New function wrapping where_is_internal. (where_is_internal_1): Handle the case where we're filling the cache. (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
* Use AREF, ASET and ASIZE macros.Stefan Monnier2000-10-251-158/+92
| | | | | | | | | | | | (Fmake_sparse_keymap): Docstring fix. (synkey): Remove. (shadow_lookup): Move up. Handle the case where lookup-key returns an integer. (where_is_internal_1): Drop arg `keymap'. Don't check shadowing. (where_is_internal_2): Adapt to fewer args for where_is_internal_1. (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps. Simplify/rewrite the keymap-finding code. Add check for command shadowing, using shadow_lookup.
* (fix_submap_inheritance): Use get_keymap_1 on parent_entryStefan Monnier2000-10-251-2/+3
| | | | | rather than KEYMAPP, to allow EQ to work correctly if parent_entry is a symbol.
* Update copyright.Gerd Moellmann2000-10-241-3/+4
|
* (fix_submap_inheritance): Don't do anything if parent_entryStefan Monnier2000-10-221-13/+17
| | | | | | | is nil: since we go to the end of submap anyway, we'd end up setting nil to nil. (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP doesn't obey autoload.
* (access_keymap): If IDX has a meta prefix, and there'sGerd Moellmann2000-10-181-5/+20
| | | | | | no map for meta_prefix_char, don't try to use it as a keymap. Instead, if T_OK is non-zero, look up a default binding, if any, otherwise, if T_OK is zero, return nil.
* (keymap_memberp): Ensure that nil is not a member.Stefan Monnier2000-10-161-0/+1
|
* (Fkeymap_parent): Undefined autoload -> 1.Stefan Monnier2000-10-151-1/+1
|
* * keymap.c (access_keymap): Add AUTOLOAD parameter.Stefan Monnier2000-10-151-86/+44
| | | | | | | | | | | | | | | | | | | Do the meta->esc mapping. Call get_keyelt before returning. Start scanning from the second element (the first is always `keymap') to make it easier to detect when we reach a parent map. Handle the case of inheriting from a symbol whose function is a map. (Fkeymap_parent): Also handle the `inherit from symbol' case. (fix_submap_inheritance, Fdefine_key): Update call to access_keymap. (get_keyelt, Flookup_key): Update call to access_keymap. Remove the meta->esc mappings. (define_as_prefix): Delete old disabled code. (menu_item_p): New function. (where_is_internal_1): Skip over the few remaining menu items. * lisp.h (access_keymap): Update prototype. * keyboard.c (read_char, menu_bar_items, tool_bar_items): Update call to access_keymap. (follow_key, read_key_sequence): Update calls to access_keymap. Remove the meta->esc mappings.
* (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.Stefan Monnier2000-10-041-23/+9
| | | | (where_is_internal_1): Don't bother ignoring menu-items any more.
* (keymap_memberp): New function.Stefan Monnier2000-09-301-47/+22
| | | | | | | (Fset_keymap_parent): Use it. (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP. Use keymap_memberp to avoid creating cycles. (access_keymap): Use KEYMAPP.
* Remove the line "#undef NULL".Kenichi Handa2000-09-291-1/+0
|
* Avoid some more compiler warnings.Gerd Moellmann2000-09-211-4/+8
|
* (Fset_keymap_parent): Check for cycles in keymapGerd Moellmann2000-09-081-1/+13
| | | | inheritance.
* (store_in_keymap): Add `static' to declaration.Dave Love2000-08-281-1/+1
|
* (store_in_keymap, fix_submap_inheritance): New prototypes.Stefan Monnier2000-08-271-7/+15
| | | | | | | | (KEYMAPP): New macro. (Fkeymap_parent, Fset_keymap_parent): Use it. (fix_submap_inheritance): Mark it static. (define_as_prefix, describe_buffer_bindings, describe_command) (describe_translation, describe_map): Complete prototypes.
* (push_key_description): If C without modifiers is < 32,Gerd Moellmann2000-08-141-4/+8
| | | | make sure to print `C-' before `M-', like in the manual.
* (current_minor_maps): Use xmalloc instead of malloc.Gerd Moellmann2000-08-051-2/+2
|
* (Fsingle_key_description): Add parameter NO_ANGLES.Gerd Moellmann2000-08-021-14/+24
| | | | Callers changed.
* (get_keymap_1): Add comment that this function can GC.Gerd Moellmann2000-07-101-12/+30
| | | | | | (where_is_internal_2, where_is_internal_1): Add GCPROs, add comment that functions can GC. (Fset_keymap_parent): GCPRO arg KEYMAP.
* (get_keyelt): Temporarily inhibit GC while evaluatingGerd Moellmann2000-07-041-1/+5
| | | | a menu filter.
* (get_keyelt): For menu-items containing a `:filterGerd Moellmann2000-06-261-2/+17
| | | | | FILTER', apply FILTER to the menu-item's definition to get the real definition to use.
* * keyboard.c (follow_key, read_key_sequence): Use XUINT on key value, or checksKen Raeburn2000-06-191-1/+1
| | | | | for CHAR_META will fail. * keymap.c (get_keyelt): Likewise.
* fix shadowing of 'keymap' enum valueKen Raeburn2000-06-181-9/+9
|
* (describe_buffer_bindings): Add `\f\n' in front of titles.Gerd Moellmann2000-06-161-4/+6
|
* (Fsingle_key_description): Enclose function key andGerd Moellmann2000-06-141-1/+5
| | | | event symbol names in angle brackets.
* Include intervals.h.Dave Love2000-05-291-3/+23
| | | | (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.