aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fcurrent_active_maps): Put the `keymap' property map first.Richard M. Stallman2002-01-031-23/+23
| | | | | | (Fkey_binding): Try the `keymap' property map first. (Fdescribe_buffer_bindings): Show `keymap' property bindings before minor mode bindings.
* (silly_event_symbol_error): New subrtn, from Fdefine_key.Richard M. Stallman2001-12-291-5/+49
| | | | Handle modifier bits. Correct typo in error message.
* Fix previous change; also correct its change log:Richard M. Stallman2001-12-281-3/+3
| | | | | | (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.
* (Flookup_key): Add error message for trying to bind [DEL], [RET], etc.Richard M. Stallman2001-12-281-1/+22
|
* Doc fix.Pavel Janík2001-12-201-1/+1
|
* (access_keymap): Handle t bindings like nil bindings.Stefan Monnier2001-11-261-8/+20
| | | | | Make nil bindings in char-tables transparent. (store_in_keymap): Turn a nil binding into a t binding for char-tables.
* (access_keymap): Remove unused variables `c1' and `c2'.Pavel Janík2001-11-231-1/+0
|
* (Fdescribe_vector): Add `describer' parameter.Stefan Monnier2001-11-191-29/+32
| | | | | | | | | (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.
* Change doc-string comments to `new style' [w/`doc:' keyword].Pavel Janík2001-11-131-225/+227
|
* (access_keymap): Fix compilation error.Pavel Janík2001-11-071-1/+1
|
* (access_keymap): Don't use initializers on Lisp_Object.Richard M. Stallman2001-11-071-2/+11
|
* Update usage of CHECK_ macros (remove unused second argument).Pavel Janík2001-11-021-4/+4
|
* (Fdescribe_buffer_bindings): Print character propertyRichard M. Stallman2001-11-011-47/+67
| | | | | bindings along with or instead of the buffer local map. Make the overriding maps override what they should.
* (access_keymap): Remove unused variable `charset'.Pavel Janík2001-10-281-1/+1
|
* (current_minor_maps): `override' only shadows itsStefan Monnier2001-10-181-1/+1
| | | | correspondent in minor-mode-map-alist, not the whole tail.
* Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimentingKen Raeburn2001-10-161-23/+23
| | | | with lisp system changes.
* (access_keymap): Unify handling of `t' and generic-char.Stefan Monnier2001-10-141-40/+29
| | | | | If a parent is reached and noinherit is set, exit immediately. Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
* (Fkey_description): Use empty_string.Stefan Monnier2001-10-121-35/+8
| | | | | | (Fdescribe_bindings_internal, describe_buffer_bindings): Remove. (syms_of_keymap): Setup inheritance between maps. Don't export Sdescribe_bindings_internal any more.
* current-active-maps: quote newlinesSam Steingold2001-10-081-2/+2
|
* Include keymap.h.Stefan Monnier2001-10-081-0/+1
|
* (Fkeymap_prompt, Fcurrent_active_maps): New funs.Stefan Monnier2001-10-081-177/+175
| | | | | | | | | | | | (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.
* Don't define min/max.Gerd Moellmann2001-10-081-2/+0
|
* (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.