Commit graph

907 commits

Author SHA1 Message Date
Richard M. Stallman
3a704bd7e3 (Fcurrent_idle_time): Doc fix. 2007-10-24 08:23:01 +00:00
Martin Rudalics
15d814840f (kbd_buffer_get_event): Break loop waiting for input
when there's an unread command event.
2007-10-06 09:43:17 +00:00
Jan Djärv
4a46077fa2 (abs): #undef before #define. 2007-09-14 06:22:20 +00:00
Jan Djärv
54c1ec7263 Qrtl is new.
(parse_tool_bar_item): Handle :rtl keyword.
(syms_of_keyboard): Intern :rtl keyword.
2007-09-02 16:59:00 +00:00
Martin Rudalics
d0d3a31145 (syms_of_keyboard): Set up new Lisp variable
last-repeatable-command.
(init_kboard): Initialize Vlast_repeatable_command.
(command_loop_1): Set it to real_this_command unless that was
bound to an input event.
(mark_kboards): Mark it.
2007-08-29 09:01:48 +00:00
Glenn Morris
e0f24100c7 Replace `iff' in comments. 2007-08-08 07:49:21 +00:00
Glenn Morris
684d6f5bcc Switch license to GPLv3 or later. 2007-07-25 05:19:07 +00:00
Juanma Barranquero
a0efc5b9e3 (Ftrack_mouse): Doc fix. 2007-07-16 10:39:15 +00:00
Chong Yidong
9be34f7f08 (command_loop_1): Fcommand_remapping has new arg; caller changed. 2007-04-01 22:03:03 +00:00
Eli Zaretskii
9de5eb68fb Fix a comment before `read_key_sequence'. 2007-03-24 16:24:54 +00:00
YAMAMOTO Mitsuharu
34f5c10fbc (record_char): Add BLOCK_INPUT around fwrite.
(Fopen_dribble_file): Add BLOCK_INPUT around fclose.
2007-03-20 08:50:10 +00:00
Richard M. Stallman
0721f23048 (NUM_RECENT_KEYS): Bump up to 300. 2007-03-19 05:29:34 +00:00
Chong Yidong
329492668f (read_key_sequence): Store original event into keybuf when replaying
sequence with local keymap(s) from string.
2007-03-17 18:26:21 +00:00
Chong Yidong
638d3da04b (help_form_saved_window_configs): New var.
(read_char_help_form_unwind): New function.
(read_char): Don't restore window configuration if a mouse click
arrives while the help form is being displayed.
2007-03-10 04:57:18 +00:00
Richard M. Stallman
7d8d091434 (syms_of_keyboard): Doc fix. 2007-03-08 22:58:12 +00:00
Eli Zaretskii
65849ada63 (Fthis_command_keys, Fthis_command_keys_vector): Doc fix. 2007-01-27 18:19:16 +00:00
YAMAMOTO Mitsuharu
cf2db1459f (interrupt_input_blocked): Declare volatile. 2007-01-26 08:36:18 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
Chong Yidong
602ae44c18 (read_key_sequence): Extract local map only if the
given position is in an accessible buffer region.
2007-01-20 02:11:03 +00:00
Jan Djärv
4c1803901d (init_keyboard): Initialize interrupt_input_blocked and
interrupt_input_pending.
2007-01-08 17:58:38 +00:00
Eli Zaretskii
e2bb07db78 (some_mouse_moved): Fix last change. 2006-12-23 01:57:15 +00:00
Juanma Barranquero
05e0ac998a (syms_of_keyboard) <double-click-time>: Doc fix. 2006-12-19 16:09:02 +00:00
Kim F. Storm
b809d9e75e (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
(make_lispy_event): Don't generate Qsignal prefix for code 0.
Abort if signal code is unknown.
(store_user_signal_events): Don't make Qsignal prefix (code 0).
(Qsignal): Move declaration back to process.c.
(syms_of_keyboard): Don't intern or staticpro it here.
2006-12-19 15:37:20 +00:00
Kim F. Storm
3b0cdcef37 (ignore_mouse_drag_p): New global var.
(some_mouse_moved): Return 0 if it is non-zero.
(make_lispy_event): Generate click event on mouse up if
ignore_mouse_drag_p is non-zero, even if mouse moved.
Clear ignore_mouse_drag_p on mouse down/up.
2006-12-15 00:22:57 +00:00
YAMAMOTO Mitsuharu
23479b40da (make_lispy_event): Use find_user_signal_name.
(read_avail_input): Store pending user signal events.
(struct user_signal_info): New struct.
(user_signals): New variable.
(add_user_signal, store_user_signal_events find_user_signal_name):
New functions.
(handle_user_signal): Move function from emacs.c.  Don't store
USER_SIGNAL_EVENT here, but increment number of pending signals.
2006-12-14 08:41:46 +00:00
Kim F. Storm
5945f1f455 Fix last change. 2006-12-04 12:37:55 +00:00
Kim F. Storm
8ddd297d1d (kbd_buffer_store_event_hold): Don't throw-on-input
if first event in [signal xxx] sequence.
(lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
(syms_of_keyboard): Don't intern and staticpro them.
(Qsignal, Qusr1, Qusr2): Declare.
(syms_of_keyboard): Intern and staticpro them.
(make_lispy_event): Return them for USER_SIGNAL_EVENTs.
2006-12-04 12:26:58 +00:00
Juanma Barranquero
db9cd97ad4 Space/tab mixup. 2006-11-24 10:31:26 +00:00
Kim F. Storm
96f4f7ecf1 (read_char): Make an element (t . EVENT) in
unread-command-events add EVENT to the current command's key sequence.
(syms_of_keyboard) <unread-command-events>: Update doc.
2006-10-22 22:25:03 +00:00
Chong Yidong
2bcac7667a * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
* keyboard.c (command_loop_1): Handle non-number values of
	`minibuffer-message-timeout'.
	(Fexecute_extended_command): Fix typo.

	* minibuf.c (temp_echo_area_glyphs): Sit for
	`minibuffer-message-timeout' seconds.
2006-10-10 01:20:20 +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
Richard M. Stallman
4c0240d20a (read_char): If end_time specified, don't put the
event into this_command_keys.
(read_key_sequence): If Voverriding_terminal_local_map is specified,
don't check Voverriding_local_map at all.
2006-09-13 15:12:59 +00:00
Kim F. Storm
182f67def5 (Finput_pending_p): Check Vunread_input_method_events
and Vunread_post_input_method_events.
2006-09-10 21:10:50 +00:00
YAMAMOTO Mitsuharu
cc4d4639cf (in_sighandler): Remove variable.
(Fcurrent_idle_time): Add missing `doc:'.
(input_available_signal, init_keyboard): Undo previous change.
2006-08-27 07:09:06 +00:00
Kim F. Storm
966949b00f (Fcurrent_idle_time): Simplify. 2006-08-25 10:05:50 +00:00
Jan Djärv
922fd3cb7b Clarify difference between in_sighandler and handling_signal. 2006-08-21 12:54:47 +00:00
Kenichi Handa
748726f4d0 (syms_of_keyboard): Docstring of
Vunread_post_input_method_events and Vunread_input_method_events
fixed.
2006-08-21 02:09:31 +00:00
Chong Yidong
c5b76d6cf7 * keyboard.c (show_help_echo): Preserve mouse movement flag if
tracking mouse.
2006-08-20 17:58:09 +00:00
Richard M. Stallman
ff458d812f (Fcurrent_idle_time): New function.
(syms_of_keyboard): defsubr it.
2006-08-20 12:06:20 +00:00
Chong Yidong
3236e6b849 * keyboard.c (read_char): Don't change idle timer state at all if
end_time is supplied.
2006-08-15 17:39:21 +00:00
Chong Yidong
70282fce62 * keyboard.c (read_char): Don't reset idle timers if a time limit
is supplied.
2006-08-14 18:32:23 +00:00
Jan Djärv
90b03d5896 * keyboard.c: Define in_sighandler.
(input_available_signal): Set in_sighandler.
2006-08-10 06:07:15 +00:00
Richard M. Stallman
c2028ac64f (keyremap_step): No-op if fkey->parent = nil.
(read_key_sequence): Always start fkey.start and fkey.end at 0,
and likewise for keytran.
2006-08-09 04:55:10 +00:00
Eli Zaretskii
6b657e423e (kbd_buffer_get_event): Return Qnil when current time is exactly equal to
end_time, not only when it is past that.
2006-08-05 12:00:32 +00:00
Chong Yidong
092869b973 * keyboard.c (read_char): Rebalance specpdl after receiving jump. 2006-08-05 01:38:21 +00:00
Richard M. Stallman
5e093f4432 (safe_run_hooks_1): Don't crash if Vrun_hooks is nil. 2006-07-29 01:54:16 +00:00
Chong Yidong
179f689c0a * keyboard.c (read_char): New arg END_TIME specifying timeout.
All callers changed.  Turn off echoing if END_TIME is non-NULL.
	(kbd_buffer_get_event): New arg END_TIME.
2006-07-26 18:13:33 +00:00
Kim F. Storm
43cae48c41 (recursive_edit_1): Use xsignal1. 2006-07-18 13:28:16 +00:00
Richard M. Stallman
04d8c47ded (Vcommand_error_function): New variable.
(syms_of_keyboard): Defvar it.
(cmd_error_internal): Simplify, and handle Vcommand_error_function.
2006-07-17 21:00:58 +00:00
Kim F. Storm
592c0e80ab (access_keymap_keyremap): Use ARRAYP. 2006-07-12 13:19:04 +00:00