summaryrefslogtreecommitdiff
path: root/src/keymap.c
Commit message (Collapse)AuthorAgeFilesLines
* (Flookup_key): Check INTEGERP before XINT.Stefan Monnier2004-11-231-1/+1
|
* (Fmap_keymap): New arg SORT-FIRST. UseRichard M. Stallman2004-11-161-4/+8
| | | | map-keymap-internal to implement that.
* (Fkeymap_prompt): Accept symbol keymaps.Stefan Monnier2004-11-101-3/+3
|
* (get_keymap): An autoload form is not a keymap.Stefan Monnier2004-10-131-1/+2
|
* (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.Luc Teirlinck2004-08-091-8/+12
|
* (Flocal_key_binding, Fglobal_key_binding)Luc Teirlinck2004-08-081-3/+3
| | | | (syms_of_keymap) <key-translation-map>: Doc fixes.
* (Fset_keymap_parent): Minor doc fix.Luc Teirlinck2004-07-311-2/+1
|
* (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.Luc Teirlinck2004-07-311-1/+3
|
* (Ftext_char_description): Doc fix.Luc Teirlinck2004-06-231-1/+5
|
* (Fdescribe_vector): Fix docstring.Juanma Barranquero2004-06-051-3/+4
| | | | (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
* (Fdefine_key): Doc fix.Juanma Barranquero2004-05-221-4/+4
|
* (Fkey_description): Fix the usual int/Lisp_Object mixup.Stefan Monnier2004-04-201-3/+3
|
* (Fkey_description): Add optional PREFIX arg.Kim F. Storm2004-04-161-94/+133
| | | | | | | | | | | | | Combine prefix with KEYS to make up the full key sequence to describe. Correlate meta_prefix_char and following (simple) key to describe as meta modifier. All callers changed. (describe_map): Rename arg `keys' to `prefix'. Remove local `elt_prefix' var. Use Fkey_description with prefix instead of elt_prefix combined with Fsingle_key_description. (describe_vector): Declare static. Replace arg `elt_prefix' with `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it if !KEYMAP_P. Use Fkey_description with prefix instead of Fsingle_key_description.
* (Vmouse_events): Rename from Vmenu_events.Stefan Monnier2004-02-041-10/+14
| | | | (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
* (map_keymap): Don't abort when binding is a vector.John Paul Wallington2003-10-031-1/+0
|
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (Fset_keymap_parent, map_keymap, Fcopy_keymap)Richard M. Stallman2003-05-171-5/+6
| | | | (Faccessible_keymaps): Pass new arg to map_char_table.
* (map_keymap): Doc fix.Stefan Monnier2003-05-051-1/+2
|
* (map_keymap_item, map_keymap_char_table_item, map_keymap)Stefan Monnier2003-05-041-0/+97
| | | | | (map_keymap_call, Fmap_keymap): New functions. (syms_of_keymap): Defsubr map-keymap.
* (Faccessible_keymaps): Remove unused var.Stefan Monnier2003-03-181-1/+1
|
* (accessible_keymaps_1): Break cycles but without preventingStefan Monnier2003-03-181-61/+44
| | | | | multiple occurrences of the same keymap under different prefixes. (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
* (Vmenu_events): New var.Stefan Monnier2003-03-161-3/+14
| | | | | (syms_of_keymap): Initialize it. (where_is_internal): Check more carefully what is a menu event.
* (copy_keymap_1): Make it static.Stefan Monnier2003-02-221-1/+1
|
* (Fdefine_key): Clarification of formulation.Kai Großjohann2003-02-211-1/+1
|
* (Fdefine_key): Doc fix.Kai Großjohann2003-02-211-2/+3
|
* Typo in docstring for define-key.Kai Großjohann2003-02-191-1/+1
|
* Renamed remap-command to command-remapping. All uses changed.Kim F. Storm2003-02-121-10/+10
|
* (Fremap_command): Return nil if arg is not a symbol.Kim F. Storm2003-02-111-1/+4
|
* (apropos_predicate, apropos_accumulate): Make them static.Richard M. Stallman2003-01-061-6/+11
| | | | | | (syms_of_keymap): staticpro them. (Fapropos_internal): Initialize them and clear them out. Don't GCPRO them.
* (Fdescribe_buffer_bindings): Use const for pointer toKen Raeburn2002-07-161-1/+1
| | | | lisp string data.
* Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-17/+17
| | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* (Fkey_binding): Fix typo.Markus Rost2002-07-121-1/+1
|
* Use macro SPECPDL_INDEX.Juanma Barranquero2002-07-111-1/+1
|
* (Fdefine_key): Doc fix.Richard M. Stallman2002-07-021-0/+2
|
* (syms_of_keymap): Fix typo.Juanma Barranquero2002-07-021-1/+1
|
* (describe_command): Cast `current_column' return value to int.Thien-Thi Nguyen2002-06-031-14/+14
|
* * keymap.c (silly_event_symbol_error, Fsingle_key_description)Ken Raeburn2002-05-201-10/+10
| | | | | | | (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.
* (keymap_parent): New fun, extracted from Fkeymap_parent.Stefan Monnier2002-05-141-170/+153
| | | | | | | | | | | (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.
* (current_minor_maps): Fixed resizing of cmm_maps;Kim F. Storm2002-05-101-27/+28
| | | | | | | | 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.
* (Vemulation_mode_map_alists): New variable.Kim F. Storm2002-05-101-62/+88
| | | | | | (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.
* (Flookup_key): Fixed problem in 2001-12-28 patch:Kim F. Storm2002-02-241-1/+3
| | | | | | 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').
* The following changes rework my patch of 2002-02-06 whichKim F. Storm2002-02-231-89/+69
| | | | | | | | | | | | | | | | | | | 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.
* (where_is_internal): Only check if definition isKim F. Storm2002-02-071-1/+1
| | | | remapped if it fulfills is_command_symbol.
* (Fdefine_key): Allow symbol as KEY argument forKim F. Storm2002-02-061-30/+158
| | | | | | | | | | | | | | 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.
* (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.