aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (timers_run): New variable, incremented when a timer isRichard M. Stallman1996-03-061-5/+33
| | | | | | | | | | | | | | run directly. (timer_check, swallow_events): Increment timers_run. (swallow_events): Redisplay if get_input_pending has run timers. (detect_input_pending_run_timers): New arg DO_DISPLAY. (init_keyboard): Initialize timer_idleness_start_time. (reinvoke_input_signal): Use getpid. (input_poll_signal): Use start_polling after first incrementing poll_suppress_count.
* (timer_check): Walk down both timer lists in parallel.Richard M. Stallman1996-02-281-94/+169
|
* (Fcommand_execute): New arg SPECIAL. All callers changed.Richard M. Stallman1996-02-271-12/+20
|
* (command_loop_1): Explicitly clear the echo areaRichard M. Stallman1996-02-251-2/+4
| | | | | with message2; don't just clear echo_area_glyphs. Don't set no_direct in that case.
* (swallow_events): New arg DO_DISPLAY.Karl Heuer1996-02-211-121/+206
| | | | | | | | | | | | | | | | | | (swallow_events): Process timer_event events here. (detect_input_pending_run_timers): New function. (Vtimer_idle_list): New variable. (syms_of_keyboard): Set up Lisp var. (timer_check): Check for idle-time timers too. Expect timers to have 8 slots. Initialize triggertime. (timer_start_idle, timer_stop_idle): New functions. (get_input_pending): New arg do_timers_now. (readable_events): Likewise. (Finput_pending_p): Use get_input_pending, so we can specify 1 for do_timers_now. (timer_check): Check for difference being zero.
* (syms_of_keyboard): Doc fix.Karl Heuer1996-02-171-1/+1
|
* (Fopen_dribble_file): Check for failure.Karl Heuer1996-02-171-0/+2
|
* (Fopen_dribble_file): Close dribble file beforeKarl Heuer1996-02-171-7/+4
| | | | opening new file.
* [HAVE_NTGUI] (lispy_function_keys): Add mappingsRichard M. Stallman1996-02-121-7/+18
| | | | for keypad function keys and new PC optional keys.
* (read_char, timer_check): Call any_kboard_stateRichard M. Stallman1996-02-101-0/+14
| | | | after calling Fcommand_execute, if was previously in that state.
* (read_char_minibuf_menu_prompt): Use malloc to allocateRichard M. Stallman1996-02-041-1/+21
| | | | | the echo-area prompt buffer. (read_char_minibuf_menu_text, read_char_minibuf_menu_width): New variables.
* (echo_now): Renamed from `echo'. All callers changed.Richard M. Stallman1996-02-011-6/+6
|
* (make_lispy_event): Timer event is a list, not just cons.Richard M. Stallman1996-02-011-10/+46
| | | | | | | | | (timer_check): When DO_IT_NOW is true, handle events by running the definition of timer-event. Don't get the current time if there are no pending timers. If an event was generated, return 0, If all timers were handled, return -1. Add gcpros. (readable_events): Tell timer_check to execute events.
* (Qtimer_event): New symbol.Richard M. Stallman1996-01-291-4/+124
| | | | | | | | | (read_char, kbd_buffer_get_event): Don't sleep past the next timer. (readable_events, kbd_buffer_get_event): Check for timer events. (make_lispy_event): Handle timer events. (timer_check): New function. (Vtimer_list): New variable. (syms_of_keyboard): Set up Qtimer_event and Vtimer_list.
* (safe_run_hooks): Use Qt, not Qerror, to avoid running the debugger.Richard M. Stallman1996-01-181-1/+1
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* (Fevent_convert_list, Fcommand_execute): Harmonize arguments withErik Naggum1996-01-091-9/+9
| | | | documentation.
* Comment fixes.Karl Heuer1996-01-051-1/+1
|
* (read_char_x_menu_prompt): HAVE_X_MENU renamed to HAVE_MENUS.Richard M. Stallman1995-12-261-2/+5
| | | | (Fexecute_extended_command): Nice error if empty cmd name.
* (Fcommand_execute): Undo previous change.Richard M. Stallman1995-12-251-2/+1
|
* (Fcommand_execute): Allow function + args list as cmd.Karl Heuer1995-12-211-47/+3
| | | | (cmd_error_internal): Use print_error_message.
* (read_char): Handle unread events from popup menus.Richard M. Stallman1995-11-241-0/+7
|
* (Fexecute_extended_command):Richard M. Stallman1995-11-181-9/+3
| | | | Call Fwhere_is_internal just once to handle all the maps.
* (interrupt_signal): Do special things in GC.Richard M. Stallman1995-11-101-7/+24
|
* [HAVE_NTGUI]: Include w32term.h.Geoff Voelker1995-11-071-16/+175
| | | | | | | | | | | | | | | | [HAVE_NTGUI] (KBD_BUFFER_SIZE): Increase for NT window system. [HAVE_NTGUI] (POLL_FOR_INPUT): Define. [HAVE_NTGUI] (kbd_buffer_get_event): Enable windowing and menu events. [HAVE_NTGUI] (lispy_function_keys): Define array for NT. [HAVE_NTGUI] (make_lispy_event): Enable menu bar events. [HAVE_NTGUI] (modify_event_symbol): Map symbol to keysym. [HAVE_NTGUI] (read_char_x_menu_prompt): Display menus. (FUNCTION_KEY_OFFSET): New macro. (make_lispy_event): Use FUNCTION_KEY_OFFSET to modify event codes before applying modifiers. Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
* (command_loop_1): No direct display if Column Number mode.Richard M. Stallman1995-10-291-0/+10
| | | | | (Vcolumn_number_mode): New variable. (syms_of_keyboard): Set up Lisp variable.
* Comment change.Richard M. Stallman1995-10-291-3/+1
|
* (Fcommand_execute): New arg KEYS. Callers changed.Richard M. Stallman1995-10-271-8/+10
| | | | (read_char): Specify KEYS when handling Vspecial_event_map.
* (ok_to_echo_at_next_pause): Make it a char *.Richard M. Stallman1995-10-241-8/+8
| | | | (read_char): Copy and compare with echo_area_glyphs.
* (read_char): If we reread a char, the next pauseRichard M. Stallman1995-10-211-2/+12
| | | | | | can start echoing despite a remaining echo area message. (ok_to_echo_at_next_pause): New variable. (cancel_echoing): Clear ok_to_echo_at_next_pause.
* (read_char): Let Vkeyboard_translate_table be char-table.Richard M. Stallman1995-10-191-2/+15
| | | | (syms_of_keyboard): Doc fix.
* (make_lispy_event) [!USE_X_TOOLKIT]: DraggingRichard M. Stallman1995-10-111-1/+10
| | | | | | the mouse into the menu-bar and releasing it there did not create a drag-mouse event. (set-input-mode) [MSDOS]: Do not call reset_sys_modes and init_sys_modes.
* (command_loop_1): Access display tables as char-tables.Richard M. Stallman1995-10-111-3/+3
|
* (Vsuggest_key_bindings): New variable.Richard M. Stallman1995-10-031-0/+79
| | | | | (syms_of_keyboard): Set up Lisp variable. (Fexecute_extended_command): When enabled, show an equivalent key binding.
* (safe_run_hooks): No longer static.Richard M. Stallman1995-09-251-2/+19
| | | | | | | (read_char_x_menu_prompt): When unreading events generated by a menu, turn symbols and integers into lists, for the sake of last_nonmenu_event and thus y-or-n-p.
* (command_loop_1): Set this_command to nil before reading a command.Richard M. Stallman1995-09-101-0/+2
|
* (Fcommand_execute): Ignore `disabled' property onRichard M. Stallman1995-08-311-2/+7
| | | | | | | commands if `disable-command-hook' is nil. (read_key_sequence): Validate the event position before calling get_local_map.
* (modifier_names): Add 4 bits to modifier bit positions.Richard M. Stallman1995-08-261-1/+1
|
* (Qpost_command_idle_hook, Vpost_command_idle_hook): New vars.Richard M. Stallman1995-08-211-12/+39
| | | | | (syms_of_keyboard): Set up new vars. (command_loop_1): Run Qpost_command_idle_hook.
* (read_key_sequence): Undo previous change.Richard M. Stallman1995-08-081-45/+63
| | | | | Instead, put back the orig_uppercase event if key is not defined. When downcasing, back up one step in key-translation processing.
* (read_key_sequence): Don't downshift an eventRichard M. Stallman1995-08-031-22/+66
| | | | | if that fails to make it bound. (follow_key): Don't alter contents of NEXT until the end.
* (kbd_buffer_get_event, swallow_events): Fix prev change.Richard M. Stallman1995-07-311-2/+2
|
* (kbd_buffer_get_event): Update input_pending afterRichard M. Stallman1995-07-281-9/+22
| | | | | | | | discarding one event from the queue, if we process the event here. (swallow_events): Likewise. (Vkey_translation_map): Just declare, don't define. (syms_of_keyboard): Don't set up Lisp var.
* (kbd_buffer_get_event) [USE_X_TOOLKIT]:Richard M. Stallman1995-07-251-0/+7
| | | | Handle menu_bar_activate_event by calling x_activate_menubar.
* (command_loop_1): Clear echo area after 2 secRichard M. Stallman1995-07-211-1/+2
| | | | only if the minibuffer is in the same place as the echo area.
* (mouse_moved): Variable deleted.Karl Heuer1995-07-171-17/+25
| | | | | | | | | (kbd_buffer_get_event, readable_events): Check mouse_moved in all frames. Check do_mouse_tracking for non-nil ness. (Ftrack_mouse): Set do_mouse_tracking to t. (kbd_buffer_get_event): Discard a selection_clear_event before processing it.
* (read_char): Temporarily clear Vquit_flagRichard M. Stallman1995-07-021-1/+4
| | | | while checking Vspecial_event_map.
* (Vspecial_event_map): New variable.Richard M. Stallman1995-07-021-0/+30
| | | | | | | | (syms_of_keyboard): Define Lisp var; init the map. (read_char): Look up each event in Vspecial_event_map; if bound, execute the binding here and read another event. (keys_of_keyboard): Make bindings for iconify-frame, make-frame-visible and delete-frame.
* (read_key_sequence): Don't use Vprefix_help_commandRichard M. Stallman1995-06-201-1/+1
| | | | for the first character in a key seq.
* (Freset_this_command_lengths): New function.Richard M. Stallman1995-06-201-0/+54
| | | | | | | | (before_command_key_count, before_command_echo_length) (before_command_restore_flag): New variables. (add_command_key): If requested, reset the lengths. (command_loop_1): Record current lengths before reading cmd. (read_char): Update the recorded length before echoing.