aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* (quit_throw_to_read_char): Turn off the error checkRichard M. Stallman1995-06-181-0/+4
| | | | testing poll_suppress_count.
* (quit_throw_to_read_char): Use do_switch_frame directly.Richard M. Stallman1995-06-171-1/+2
|
* (init_kboard): Initialize it.Karl Heuer1995-06-161-38/+47
| | | | | | | | | (syms_of_keyboard): Defvar it. (read_key_sequence, menu_bar_items): Check Voverriding_terminal_local_map before Voverriding_local_map. (command_loop_1): In special handling for commands that create a prefix arg, don't handle commands that merely preserve one that was previously created.
* (command_loop_1): Clear prefix arg (undo Feb 1 change).Karl Heuer1995-06-141-0/+1
|
* (read_char_minibuf_menu_prompt):Karl Heuer1995-06-111-32/+70
| | | | | If the char to type doesn't match the prompt string, show the char explicitly.
* (system_key_syms): Deleted; now part of struct kboard.Karl Heuer1995-06-091-7/+5
| | | | | | (make_lispy_event): Use the struct member. (init_kboard): Initialize it. (syms_of_keyboard): Delete initialization and staticpro.
* (modify_event_symbol): Mask out high bits here,Karl Heuer1995-06-091-4/+16
| | | | | | | and only for certain purposes. table_size now unsigned. (modify_event_symbol) [HAVE_X_WINDOWS]: Use x_get_keysym_name. (make_lispy_event): Don't mask high bits here. Supply -1 as table_size for system-specific keys.
* (last_command): Var deleted; now part of struct kboard.Karl Heuer1995-06-091-13/+8
| | | | | | (command_loop_1): Make last_command be kboard-local. (syms_of_keyboard): Defvar it. (init_kboard): Initialize it.
* (Fevent_convert_list): Renamed from convert_event_type_list.Karl Heuer1995-06-091-2/+9
| | | | (syms_of_keyboard): defsubr it.
* (Vhelp_event_list): New var.Karl Heuer1995-06-091-3/+27
| | | | | | (syms_of_keyboard): Set up Lisp var. (help_char_p): New function. (read_char, echo_char, read_key_sequence): Use help_char_p.
* (read_key_sequence): Don't run activate-menubar-hookKarl Heuer1995-06-091-7/+0
| | | | or call recompute-lucid-menubar.
* (cmd_error, command_loop_1, Fcommand_execute)Karl Heuer1995-06-071-35/+11
| | | | | (Fexecute_extended_command, init_kboard, syms_of_keyboard): Undo Feb 28 change; prefix arg handling is now in Lisp code again.
* (cmd_error): Use NULL, not 0, as arg to cmd_error_internal.Karl Heuer1995-06-061-3/+3
| | | | | (menu_bar_items): Likewise, for arg of current_minor_maps. (record_char): Add cast.
* (make_lispy_event, make_lispy_movement):Karl Heuer1995-05-291-2/+3
| | | | Use NULL, not 0, as arg of pixel_to_glyph_coords.
* (Fset_input_mode): When read_socket_hook, ignoreKarl Heuer1995-05-291-3/+11
| | | | | what the user specified, and set interrupt_input in the preferred way for this system.
* (syms_of_keyboard): Always define track-mouse.Karl Heuer1995-05-171-4/+2
| | | | (do_mouse_tracking): Always declare this var.
* (init_kboard): Initialize Vdefault_minibuffer_frame.Karl Heuer1995-05-091-0/+1
|
* [MULTI_KBOARD] (read_char): If the character was forKarl Heuer1995-05-091-0/+1
| | | | the wrong kboard, don't let it get processed twice.
* (Fread_key_sequence): Doc fix.Richard M. Stallman1995-05-081-1/+1
|
* (Fexecute_extended_command): Handle long EMACS_INT in sprintf.Richard M. Stallman1995-05-051-2/+16
|
* (parse_modifiers, apply_modifiers): Don't assume 32-bit EMACS_INT.Richard M. Stallman1995-05-041-4/+4
| | | | | (parse_modifiers): modifiers is an int, not an EMACS_INT. (read_key_sequence): Pass modifiers as int, not EMACS_INT.
* (reorder_modifiers): Cast apply_modifiers arg to int.Richard M. Stallman1995-05-041-1/+1
|
* (reorder_modifiers): Use XINT.Richard M. Stallman1995-05-041-1/+1
|
* (kbd_buffer_get_event): New arg USED_MOUSE_MENU.Karl Heuer1995-05-021-6/+18
| | | | | | | [USE_X_TOOLKIT]: Set *USED_MOUSE_MENU if returning menu-bar symbols. (read_char): Pass used_mouse_menu to kbd_buffer_get_event. This variable is now meaningful for toolkit menus as well as non-toolkit menus.
* (read_char, read_char_x_menu_prompt): ExcludeKarl Heuer1995-04-291-2/+5
| | | | menu-bar clicks when processing mouse clicks.
* (Vsystem_key_alist): Delete global variable.Karl Heuer1995-04-241-5/+4
| | | | | | (init_kboard): Initialize Vsystem_key_alist member. (syms_of_keyboard): Change DEFVAR_LISP to DEFVAR_KBOARD. (make_lispy_event): Use the kboard's alist instead of the global.
* (safe_run_hooks_1, safe_run_hooks_error): New subroutines.Richard M. Stallman1995-04-241-8/+22
| | | | | (safe_run_hooks): Handle errors to clear the hook, instead of always clearing it temporarily.
* (map_event_to_object): Declaration deleted.Richard M. Stallman1995-04-181-4/+0
|
* (kbd_buffer_get_event): Don't use prototype.Richard M. Stallman1995-04-141-74/+79
| | | | | | | (read_char): Rearrange code so that getcjmp is set only around sit_for and kbd_buffer_get_event, and and polling is stopped only around the kbd_buffer_get_event call. (Ftrack_mouse, tracking_off, read_char): Don't call prepare_menu_bars.
* (push_frame_kboard, pop_frame_kboard): Do nothing if !MULTI_KBOARD.Karl Heuer1995-04-101-0/+4
|
* (init_keyboard): Don't malloc a new structure;Karl Heuer1995-04-101-8/+2
| | | | initial_kboard should already exist for that.