aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* (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
|