Commit graph

850 commits

Author SHA1 Message Date
Eli Zaretskii
9d56e0da1f (Venable_disabled_menus_and_buttons): New variable.
(syms_of_keyboard): DEVFAR_LISP and initialize it.
(parse_tool_bar_item, parse_menu_item): If that variable is
non-nil, don't disable menu items and tool-bar buttons.
2006-02-11 13:50:29 +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
c3be81c7f8 (echo_char): Don't omit the space between first two echoed chars. 2006-01-19 17:39:55 +00:00
Richard M. Stallman
bb0e1d19c7 (last_point_position_window): New variable.
(command_loop_1): Set last_point_position_window.
(syms_of_keyboard): Init it.
2005-12-26 16:31:36 +00:00
YAMAMOTO Mitsuharu
82de1de962 (make_lispy_event): Drag-and-drop items are now
stored in member `args' of struct input_event.
2005-12-19 08:30:17 +00:00
YAMAMOTO Mitsuharu
f66c49cc1c (Qmac_apple_event) [MAC_OS]: New variable.
(syms_of_keyboard) [MAC_OS]: Initialize it.
(make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
2005-12-10 01:49:24 +00:00
Richard M. Stallman
b0820d6af0 (command_loop_1): Don't set Vmemory_full here. 2005-10-29 19:34:58 +00:00
Kim F. Storm
6507c4c73d (make_lispy_position): Adjust wx for left margin if ON_TEXT.
(Fposn_at_x_y): Fix calculation of x coordinate.
(Fposn_at_point): Return nil if point is hscrolled out of view.
2005-10-13 22:42:01 +00:00
Kim F. Storm
a65fc2c397 (make_lispy_position): Fix buffer calculations for
mouse click or movement in right fringe and the margins.
2005-10-11 15:07:28 +00:00
Kim F. Storm
31ab1f0585 (make_lispy_position): Fix buffer position calculation for
mouse click or movement in fringe.
2005-10-10 22:54:03 +00:00
Stefan Monnier
4156359ea5 (make_lispy_event): If point has moved between down and up event, make it
a drag, not a click, to mirror what mouse-drag-region expects.
2005-10-04 04:23:12 +00:00
YAMAMOTO Mitsuharu
9e4239ea12 (init_keyboard) [MAC_OSX]: Don't install SIGINT handler. 2005-10-01 11:08:25 +00:00
Richard M. Stallman
9867523c82 (update_menu_bindings): Variable deleted.
(syms_of_keyboard): Don't defvar it.
(parse_menu_item): Don't test it.
2005-09-25 23:49:15 +00:00
YAMAMOTO Mitsuharu
fca32d15e2 (kbd_buffer_get_event) [MAC_OS]: Make events for
ICONIFY/DEICONIFY_EVENT.
2005-08-25 08:20:12 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Richard M. Stallman
c8e16a028e (read_char): Test gc_cons_threshold.
(syms_of_keyboard): staticpro Qecho_area_clear_hook.
2005-07-23 19:09:50 +00:00
Stefan Monnier
2a7a50eaea (read_char): Use gc_cons_combined_threshold. 2005-07-13 05:30:56 +00:00
Kim F. Storm
7320c7deb0 (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
(syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
2005-07-08 14:48:03 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Richard M. Stallman
dfbfad25bf (read_char): Call restore_getcjmp after jump occurs. 2005-06-17 14:06:22 +00:00
Luc Teirlinck
f840fb39d6 (command_loop_1): Adapt call to Fselect_frame. 2005-06-10 02:26:58 +00:00
Richard M. Stallman
9d13865997 Clean up whitespace. 2005-06-08 15:18:49 +00:00
Luc Teirlinck
6e005d5617 (command_loop_1): Update Vthis_original_command. 2005-06-06 16:17:44 +00:00
Juanma Barranquero
6e604a9b78 (Frecursive_edit): Fix typo in docstring.
(Fposn_at_x_y): Make arguments match the docstring.
2005-05-26 14:56:28 +00:00
Nick Roberts
a24ce15168 (syms_of_keyboard): Remove lisp variables
post-command-idle-hook and post-command-idle-delay.
(command_loop_1): Don't try to execute post-command-idle-hook.
2005-05-18 23:19:56 +00:00
Kim F. Storm
4ca39724e0 (adjust_point_for_property): Skip empty overlay string. 2005-05-16 21:25:32 +00:00
YAMAMOTO Mitsuharu
354344a20a (readable_events) [USE_TOOLKIT_SCROLL_BARS]: Regard
toolkit scroll bar thumb drag events as squeezable and prevent
redisplay from being paused by them.
2005-05-13 08:44:49 +00:00
Kim F. Storm
649d952dcc (executing_kbd_macro_index): Rename from executing_macro_index.
(executing_kbd_macro_iterations): Rename from executing_macro_iterations.
(executing_kbd_macro): Rename from executing_macro.

* macro.c (syms_of_macros): Rename Lisp var executing-macro-index to
executing-kbd-macro-index.
2005-05-02 10:32:40 +00:00
Richard M. Stallman
ce0d285898 Change Vexecuting_macro to Vexecuting_kbd_macro. 2005-05-01 18:47:16 +00:00
YAMAMOTO Mitsuharu
c16dab62b2 (Qlanguage_change) [MAC_OS]: New variable.
(syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
(kbd_buffer_get_event) [MAC_OS]: Make event for	LANGUAGE_CHANGE_EVENT.
2005-04-12 10:25:05 +00:00
YAMAMOTO Mitsuharu
a42bf89089 (poll_for_input) [SYNC_INPUT]: Don't call poll_for_input_1. Set
interrupt_input_pending to 1 instead.
2005-04-12 08:07:13 +00:00
Richard M. Stallman
bb8c48650e Comment change. 2005-04-10 00:41:34 +00:00
Kim F. Storm
c22237f77e (Qmouse_fixup_help_message): New var.
(syms_of_keyboard): Intern and staticpro it.
(show_help_echo): Apply mouse-fixup-help-message to help string.
2005-03-31 10:11:14 +00:00
Stefan Monnier
a18bf8979e (keys_of_keyboard): Just use ignore' instead of the redundant ignore-event'. 2005-03-19 16:36:01 +00:00
Stefan Monnier
d5161e8c9b (read_char): Only do the 7-bit-meta -> 27-bit-meta
translation for chars in the 0-255 range.
2005-03-16 21:39:49 +00:00
Jan Djärv
a25e44b279 * keyboard.c (Fexecute_extended_command): Restart hourglass
after call to Fcompleting_read if already started.
2005-03-10 19:08:31 +00:00
Richard M. Stallman
85d964de72 (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT. 2005-03-06 16:04:21 +00:00
Stefan Monnier
f4a5a4857b (Fposn_at_x_y): Check integerness of X and Y. 2005-03-01 13:17:47 +00:00
Richard M. Stallman
0b5d283ff2 (command_loop_1): Always use safe_run_hooks to run Qdeferred_action_function. 2005-02-15 06:41:26 +00:00
Dan Nicolaescu
e31d908ff2 If HAVE_FCNTL_H include fcntl.h. 2005-02-13 00:21:11 +00:00
Jan Djärv
a2d5fca044 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
(READABLE_EVENTS_FILTER_EVENTS)
(READABLE_EVENTS_IGNORE_SQUEEZABLES): New flags for readable_events.
get_filtered_input_pending, readable_filtered_events): Removed.
(tracking_off): Call readable_events and get_input_pending with
flag READABLE_EVENTS_DO_TIMERS_NOW.
(readable_events): Move code from old readable_filtered_events here,
but check new READABLE_EVENTS_* in argument flags instead of previous
two boolean arguments do_timers_now and filter_events.
If we are doing mouse tracking and the mouse moved, return only if
READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
(swallow_events): Call get_input_pending with flag
READABLE_EVENTS_DO_TIMERS_NOW.
(get_input_pending): Move code from old   get_filtered_input_pending
here.  Replace boolean arguments do_timers_now, filter_events with
flags, and pass flags to readable_events.  Document new
READABLE_EVENTS_* flags.
(detect_input_pending_ignore_squeezables): New function.
(detect_input_pending_run_timers): Call get_input_pending with flag
READABLE_EVENTS_DO_TIMERS_NOW.
(Finput_pending_p): Call get_input_pending with flags
READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.

* dispnew.c (update_window, update_frame_1): Replace calls to
detect_input_pending with detect_input_pending_ignore_squeezables
so that redisplay is not paused if the event queue contains only
mouse movements.

* lisp.h: Declare detect_input_pending_ignore_squeezables.
2005-01-16 09:17:02 +00:00
Kim F. Storm
a25f766aa3 (Fposn_at_x_y): Add optional arg WHOLE. 2005-01-14 12:11:15 +00:00
Richard M. Stallman
5a45dd33e3 (syms_of_keyboard): Doc fix. 2005-01-13 19:43:09 +00:00
Jan Djärv
bd55c35cc1 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
before touching input_available_clear_time, to avoid accessing it
from multiple threads.
2004-12-23 22:17:56 +00:00
Richard M. Stallman
85e7f4776a (kbd_buffer_store_event_hold):
In the code for while-no-input, handle immediate_quit.
2004-12-21 11:34:42 +00:00
Jan Djärv
333f1b6f78 * syssignal.h: Declare main_thread.
(SIGNAL_THREAD_CHECK): New macro.

* keyboard.c (input_available_signal): Move thread checking code
to macro SIGNAL_THREAD_CHECK and call that macro.
(interrupt_signal): Call SIGNAL_THREAD_CHECK.

* alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.

* emacs.c: Define main_thread.
(main): Initialize main_thread.
(handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
(memory_warning_signal): Call SIGNAL_THREAD_CHECK.

* floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.

* dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.

* sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.

* process.c (send_process_trap, sigchld_handler): Call
SIGNAL_THREAD_CHECK.

* data.c (arith_error): Call SIGNAL_THREAD_CHECK.

* atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
2004-12-15 21:40:41 +00:00
Kim F. Storm
dc29116a4b (read_char): Save and restore echo_string when
handling input method.
2004-12-15 00:07:15 +00:00
Kim F. Storm
2a84c6da58 (Vthrow_on_input): New variable.
(syms_of_keyboard): Defvar and initialize it.
(kbd_buffer_store_event_hold): Handle Vthrow_on_input.
2004-12-15 00:06:46 +00:00
Stefan Monnier
d7031edcfa (handle_async_input): Remove pthread mutex handling.
(input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
2004-12-11 23:43:21 +00:00