1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 16:41:45 -08:00
Commit graph

355 commits

Author SHA1 Message Date
Juanma Barranquero
de47a796fe (Fkey_description): Use empty_unibyte_string. 2007-06-08 20:10:01 +00:00
Andreas Schwab
d6d8548d54 (Flookup_key): Fix typo in last change. 2007-05-07 20:50:08 +00:00
Stefan Monnier
5df3999833 (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
mapping for unibyte strings.
2007-05-07 15:41:37 +00:00
Richard M. Stallman
00b7c149fe (Fdefine_key): Minor doc fix. 2007-04-22 16:53:57 +00:00
Glenn Morris
01681a4152 (Fdefine_key): Fix info ref in doc string. 2007-04-21 19:29:26 +00:00
Chong Yidong
55665fe72a (Fcommand_remapping): New optional argument.
(where_is_internal): Use new keymaps argument.
(Fkey_binding): Caller changed.
2007-04-01 22:03:22 +00:00
Chong Yidong
bee27b4de3 (where_is_internal): Scan provided keymaps for command remappings
rather than calling Fcommand_remapping.
2007-04-01 15:58:29 +00:00
Eli Zaretskii
f6f11d1ca3 Fix a comment before `current_minor_maps'. 2007-03-24 16:23:01 +00:00
Juanma Barranquero
2fa7d369ba (Fdescribe_buffer_bindings): Check that BUFFER is valid. 2007-03-09 17:31:12 +00:00
David Kastrup
b9b263874c *** empty log message *** 2007-03-02 08:45:13 +00:00
Kim F. Storm
0af1451662 (describe_map): Don't consider prefix keys to be shadowed. 2007-01-24 00:26:30 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
Richard M. Stallman
b23916e76b (Fdefine_key): Doc fix. 2006-12-30 06:25:06 +00:00
Juanma Barranquero
64b2caa5fe (Flookup_key): Doc fix. 2006-12-10 23:33:46 +00:00
Chong Yidong
eae637ecd3 * keymap.c (Fkey_binding): Check Lisp_Object types before doing
XCAR and XINT.
2006-10-13 01:45:37 +00:00
Stefan Monnier
7ae8428d90 (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM). 2006-09-28 19:00:10 +00:00
Kenichi Handa
4ccaff6744 (Fsingle_key_description): For an invalid char, retuen
"Invalid char code NNNNN".
2006-09-26 04:17:41 +00:00
Kenichi Handa
8bb3035f33 (Fsingle_key_description): Fix the last change. 2006-09-25 04:38:18 +00:00
Kenichi Handa
173517c6c1 (Fsingle_key_description): Return unique names for
generic characters.
2006-09-25 02:52:03 +00:00
Kenichi Handa
b50685893e (Fmap_keymap): Docstring mentions about generic
character.
2006-09-23 05:37:18 +00:00
Stefan Monnier
08e26e8bfa Include alloca.h if available.
(Fkey_binding): Only use AREF after checking it's a vector.
Remove unused var `window'.
2006-09-19 10:19:34 +00:00
David Kastrup
b74e16a384 * NEWS: explain new behavior and arguments of `key-binding' and
`command-remapping'.

* keymaps.texi (Active Keymaps): Adapt description to use
`get-char-property' instead `get-text-property'.  Explain how
mouse events change this.  Explain the new optional argument of
`key-binding' and its mouse-dependent lookup.
(Searching Keymaps): Adapt description similarly.  Explain the new
optional argument of `command-remapping'.

* Makefile.in (keymap.o): Add "keymap.h" and "window.h"
dependencies.

* keymap.c: include "window.h".
(Fcommand_remapping): New optional POSITION argument.
(Fkey_binding): New optional POSITION argument.  Completely rework
handling of mouse clicks to get the same order of keymaps as
`read-key-sequence' and heed POSITION.  Also temporarily switch
buffers to location of mouse click and back.

* keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
for additional argument.
(parse_menu_item): Adjust call of `Fkey_binding' for additional
argument.
(read_key_sequence): If there are both `local-map' and `keymap'
text properties at some buffer position, heed both.

* keymap.h: Declare additional optional arguments of
`Fcommand_remapping' and `Fkey_binding'.
2006-09-15 07:19:15 +00:00
Chong Yidong
91197db4cb * keymap.c (Fkey_binding): Use string position for string objects. 2006-09-11 13:03:40 +00:00
Kim F. Storm
4d32309c14 (Fkey_binding): Fix last change. 2006-09-11 08:52:42 +00:00
Chong Yidong
b067ddb637 * keymap.c (Fkey_binding): Check for local keymap for mouse click
events.
2006-09-11 02:34:05 +00:00
Stefan Monnier
2db8f17387 (Fdefine_key): If the key binding definition looks like an
XEmacs-style key sequence, convert it to Emacs's format.
2006-07-22 21:22:52 +00:00
Kim F. Storm
fb53f3543b (Fmap_keymap): Use xsignal1. 2006-07-18 13:28:21 +00:00
Kim F. Storm
ce5a29a111 (Fdefine_key, Flookup_key): Use CHECK_VECTOR_OR_STRING. 2006-07-12 13:19:15 +00:00
Chong Yidong
d3ee989e85 * keymap.c (describe_map): Avoid generating duplicate entries if
the shadowed binding has the same definition.
2006-05-10 03:32:06 +00:00
Kenichi Handa
5f2c7b2a65 (push_key_description): Fix previous change. 2006-05-09 13:20:25 +00:00
Kenichi Handa
f39a0b4301 (push_key_description): Handle invalid character key. 2006-05-09 13:17:24 +00:00
Richard M. Stallman
9abc5f4519 (Fdefine_key): Improve error message when KEY begins with a non-prefix key. 2006-04-30 22:15:21 +00:00
Stefan Monnier
e89e07ccac (store_in_keymap): Change def' arg to not be register'.
Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
keymap.c:895: error: address of register variable `def' requested.
2006-04-26 20:50:25 +00:00
Richard M. Stallman
5615dcc03b (describe_map): Make "shadowed" warning more verbose. 2006-04-18 20:58:59 +00:00
Stefan Monnier
15fdcac722 (describe_map): Don't use XINT if we haven't checked INTEGERP. 2006-04-08 14:20:10 +00:00
Kenichi Handa
d89b5760af (map_keymap): Set tail to Qnil before GCPRO it. 2006-03-20 06:24:31 +00:00
Richard M. Stallman
7857982c9f (describe_map): Shorten string to indicate shadowed binding. 2006-03-11 15:25:03 +00:00
Kim F. Storm
a7f96a358b * data.c (Findirect_function): Add NOERROR arg. All callers changed
to pass Qnil for NOERROR.

* keymap.c (current_minor_maps_error): Remove.
(current_minor_maps): Pass Qt for NOERROR to Findirect_function
instead of using internal_condition_case_1+current_minor_maps_error.
2006-02-10 00:00:31 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Richard M. Stallman
bb9c8a997a (Fmap_keymap): Doc fix. 2006-01-26 17:50:50 +00:00
Richard M. Stallman
05f5847bd2 (Fmap_keymap): Doc fix. 2006-01-19 17:41:40 +00:00
Stefan Monnier
ccf0250b2f (describe_map_compare): Yet another int/Lisp_Object mixup. 2006-01-03 16:54:47 +00:00
Richard M. Stallman
c36238ee75 (describe_map): Put sparse map elements into an array,
sort them, then output a sequence of identical bindings on one line.
(struct describe_map_elt): New data type.
(describe_map_compare): New function.
2005-12-30 04:52:32 +00:00
Stefan Monnier
addcdb7c89 (Vfunction_key_map): Docstring fix: mention that bindings can be functions. 2005-12-19 15:46:13 +00:00
Richard M. Stallman
49daa5b162 (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
(Flookup_key): Doc fix.
(syms_of_keymap) <function-key-map>: Doc fix.
2005-12-11 15:35:14 +00:00
Eli Zaretskii
3d866cebd2 (Vminibuffer_local_filename_completion_map)
(Vminibuffer_local_must_match_filename_map): New variables.
(syms_of_keymap): DEFVAR_LISP them, initialize them, and set their parent to
be Vminibuffer_local_completion_map and Vminibuffer_local_must_match_map,
respectively.
2005-12-02 13:47:11 +00:00
Ken Raeburn
d7c0be75d3 (shadow_lookup): Use make_number to pass a number to Fsubstring. 2005-11-21 23:33:01 +00:00
Juri Linkov
d35f78c989 (shadow_lookup): If Flookup_key returns a number,
call it again with a sub-key-sequence, and if its return value
is non-nil (sub-key is bound), return nil.
2005-11-09 07:48:38 +00:00
Kim F. Storm
d6a31e9ffd (Fdescribe_buffer_bindings): Reload `translate'
after insert which runs signal_after_change.
2005-09-12 10:26:35 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00