aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use display_hourglass_p, start_hourglass,Gerd Moellmann2001-02-211-18/+18
| | | | cancel_hourglass instead of the old names.
* (read_char): When an event from unread-command-eventsGerd Moellmann2001-02-201-0/+6
| | | | is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
* (recursive_edit_1): Bind `inhibit-redisplay' andGerd Moellmann2001-02-191-12/+12
| | | | | | set redisplaying_p to 0 here instead of in Frecursive_edit. (Frecursive_edit): Don't bind `inhibit-redisplay' and don't set redisplaying_p.
* Call redisplay_preserve_echo_area with additional arg.Gerd Moellmann2001-01-161-6/+6
|
* Call get_local_map with new argument list.Gerd Moellmann2001-01-121-21/+19
|
* (Fexecute_extended_command): Use aGerd Moellmann2001-01-091-1/+5
| | | | record_unwind_protect to ensure that pop_message is called.
* (Fread_key_sequence_vector): Avoid newline inDave Love2001-01-071-2/+2
| | | | arglist, for documentation's sake.
* (record_char): Remove unused function-scope variableEli Zaretskii2001-01-021-5/+1
| | | | | | `help'. (kbd_buffer_get_event): Remove unused block-scope variable `idx'. (menu_bar_items): Remove unused function-scope variable `tem'.
* (echo_char): If C is an integer, always callGerd Moellmann2000-12-281-10/+1
| | | | | push_key_description. Former code could signal an invalid character error.
* (echo_prompt): Always set current_kboard->echoptr toGerd Moellmann2000-12-231-16/+17
| | | | | the end of the prompt. Set echo_after_prompt to the offset of echoptr in echobuf.
* (echo_prompt): Prevent a compiler warning.Gerd Moellmann2000-12-201-1/+1
|
* (echo_prompt): Argument type changed to Lisp_Object.Kenichi Handa2000-12-141-10/+40
| | | | | | | | Always store string in multibyte representation in echobuf. (echo_char): Always store string in multibyte representation in echobuf. (echo_now): Call message2_nolog with the arg MULTIBYTE 1. (read_key_sequence): Adjusted for the change of echo_prompt.
* (do_mouse_tracking): Make externally visible.Gerd Moellmann2000-12-131-1/+1
|
* (menu_bar_items, tool_bar_items):Stefan Monnier2000-12-131-4/+3
| | | | Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
* (record_char): Don't record identical help-echoGerd Moellmann2000-12-051-6/+31
| | | | events in recent_keys.
* (Fread_key_sequence): Don't start the busy cursorGerd Moellmann2000-12-041-0/+4
| | | | | timer after having read a key. It's not good for code reading several keys in a loop, like an input method.
* (record_char): Record `help-echo' input eventsGerd Moellmann2000-12-041-5/+16
| | | | | in recent_keys only if they display some help. Don't record `help-echo' events as macro char.
* (lucid_event_type_list_p): Handle `help-echo',Gerd Moellmann2000-11-271-1/+7
| | | | `vertical-line', `mode-line' and `header-line' events.
* (make_lispy_event) [mouse_wheel, drag_n_drop]: Args toJason Rumney2000-11-251-5/+5
| | | | window_from_coordinates should be pixel coordinates.
* (Vminibuffer_message_timeout): New variable.Miles Bader2000-11-221-3/+13
| | | | | (command_loop_1): Use it to determine message timeout. (syms_of_keyboard): Initialize it.
* (show_help_echo): Call message3_nolog with number ofGerd Moellmann2000-11-131-1/+1
| | | | | bytes in the help string as 2nd parameter, instead of the number of characters.
* (read_char) <wrong_kboard>: Make sure that weGerd Moellmann2000-10-311-1/+1
| | | | process idle timers while waiting for another event.
* (syms_of_keyboard): Change DEFVAR_LISP ofGerd Moellmann2000-10-301-1/+1
| | | | update_menu_bindings to DEFVAR_BOOL.
* * lisp.h (KEYMAPP): New macro.Stefan Monnier2000-10-271-28/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (get_keymap): Remove. (get_keymap_1): Rename get_keymap. * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype. * xterm.c (note_mode_line_highlight): Use KEYMAPP. * xmenu.c (single_submenu): Use KEYMAPP. (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp. Use KEYMAPP rather than Fkeymapp. * w32term.c (note_mode_line_highlight): Use KEYMAPP. * w32menu.c (True, False): Remove (use TRUE and FALSE instead). (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp. Use KEYMAPP rather than Fkeymapp. (single_submenu): Use KEYMAPP. (w32_menu_show, w32_dialog_show): Use TRUE. * minibuf.c (Fread_from_minibuffer): Update call to get_keymap. * keymap.c (KEYMAPP): Remove (moved to lisp.h). (Fkeymapp): Use KEYMAPP. (get_keymap): Rename from get_keymap_1. Remove old def. Return t when autoload=0 and error=0 and the keymap needs autoloading. (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp. (Fminor_mode_key_binding): Don't raise an error if the binding is not a keymap. (Fuse_global_map, Fuse_local_map): Allow autoloading. (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp. * keyboard.c (read_char): get_keymap_1 -> get_keymap. Allow Vspecial_event_map to be autoloaded. (menu_bar_items): Fetch the keymap rather than using keymapp. (menu_bar_one_keymap): No need to follow func-indirect any more. (parse_menu_item): get_keymap_1 -> get_keymap. (tool_bar_items): Fetch the keymap rather than using keymapp. (read_key_sequence): Use KEYMAPP. * intervals.c (get_local_map): Use get_keymap rather than following function-indirections explicitly. * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
* Initial check-in: changes for building Emacs under Mac OS.Andrew Choi2000-10-221-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-23 Andrew Choi <akochoi@i-cable.com> * dispextern.h [macintosh]: Include macgui.h instead of macterm.h. * dispnew.c [macintosh]: Include macterm.h. (init_display) [macintosh]: initialization for window system. * emacs.c (main) [macintosh]: Call syms_of_textprop, syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm, syms_of_search, x_term_init, and init_keyboard before calling init_window_once. Also, call syms_of_xmenu. * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of default fontset to Monaco. * frame.c [macintosh]: Include macterm.h. Remove declarations of NewMacWindow and DisposeMacWindow. (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame instead of calling NewMacWindow and setting fields of f->output_data.mac directly. Call init_frame_faces. (Fdelete_frame) [macintosh]: Remove unused code. (Fmodify_frame_parameters) [macintosh]: Call x_set_frame_parameters instead of mac_set_frame_parameters. * frame.h [macintosh]: Define menu_bar_lines field in struct frame. Define FRAME_EXTERNAL_MENU_BAR macro. * keyboard.c [macintosh]: Include macterm.h. (kbd_buffer_get_event) [macintosh]: Generate delete_window_event and menu_bar_activate_event type events as for X and NT. (make_lispy_event) [macintosh]: Construct lisp events of type MENU_BAR_EVENT as for X and NT. * sysdep.c [macintosh]: Remove declaration for sys_signal. Include stdlib.h. Remove definition of Vx_bitmap_file_path. (sys_subshell) [macintosh]: Remove definition entirely. (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and Vwindow_system_version here. Remove initialization of Vx_bitmap_file_path. (read_input_waiting): Correct the number of parameters passed to read_socket_hook. Move all Macintosh functions to mac/mac.c. * term.c [macintosh]: Include macterm.h. * window.c [macintosh]: Include macterm.h. * xdisp.c [macintosh]: Include macterm.h. Declare set_frame_menubar and pending_menu_activation. (echo_area_display) [macintosh]: Do not return if terminal frame is the selected frame. (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f). Allow only the selected frame to set menu bar. (redisplay_window) [macintosh]: Obtain menu bar to redisplay by calling FRAME_EXTERNAL_MENU_BAR (f). (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f). * xfaces.c [macintosh]: Include macterm.h. Define x_display_info and check_x. Declare XCreateGC. Define x_create_gc and x_free_gc. Initialize font_sort_order. (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT, but call x_list_fonts instead of w32_list_fonts. (Finternal_face_x_get_resource) [macintosh]: Do not call display_x_get_resource. (prepare_face_for_display) [macintosh]: Set xgcv.font. (realize_x_face) [macintosh]: Load the font if it is specified in ATTRS. (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt. * cus-edit.el (custom-button-face): Use 3D look for mac. (custom-button-pressed-face): Likewise. * faces.el (set-face-attributes-from-resources): Handle mac frames in the same way as x and w32 frames. (face-valid-attribute-values): Likewise. (read-face-attribute): Likewise. (defined-colors): Likewise. (color-defined-p): Likewise. (color-values): Likewise. (display-grayscale-p): Likewise. (face-set-after-frame-default): Likewise. (mode-line): Same default face as for x and w32. (tool-bar): Likewise. * frame.el: Remove call to frame-notice-user-settings at end of the file. * info.el (Info-fontify-node): make underlines invisible for mac as for x, pc, and w32 frame types. * term/mac-win.el: New file.
* * keymap.c (access_keymap): Add AUTOLOAD parameter.Stefan Monnier2000-10-151-61/+8
| | | | | | | | | | | | | | | | | | | Do the meta->esc mapping. Call get_keyelt before returning. Start scanning from the second element (the first is always `keymap') to make it easier to detect when we reach a parent map. Handle the case of inheriting from a symbol whose function is a map. (Fkeymap_parent): Also handle the `inherit from symbol' case. (fix_submap_inheritance, Fdefine_key): Update call to access_keymap. (get_keyelt, Flookup_key): Update call to access_keymap. Remove the meta->esc mappings. (define_as_prefix): Delete old disabled code. (menu_item_p): New function. (where_is_internal_1): Skip over the few remaining menu items. * lisp.h (access_keymap): Update prototype. * keyboard.c (read_char, menu_bar_items, tool_bar_items): Update call to access_keymap. (follow_key, read_key_sequence): Update calls to access_keymap. Remove the meta->esc mappings.
* (Frecursive_edit): Make sure redisplay can happen.Gerd Moellmann2000-10-051-2/+14
| | | | | (show_help_echo): Use safe_call instead of call_function; use safe_eval instead of eval_form.
* (update_menu_bindings): New variable.Gerd Moellmann2000-10-041-38/+46
| | | | | | (parse_menu_item): Use AREF. If update_menu_bindings is 0, don't update menu bindings. (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
* (menu_bar_one_keymap): If KEYMAP is a symbol,Gerd Moellmann2000-09-291-11/+18
| | | | | use its function definition. (tool_bar_items): Likewise.
* (show_help_echo): Set help_echo_showing_p.Gerd Moellmann2000-09-251-2/+7
| | | | | (read_char): If help-echo is showing, preserve the echo area when redisplaying.
* (menu_bar_items, tool_bar_items)Dave Love2000-09-181-3/+3
| | | | (current_active_maps): Remove redundant get_local_map call.
* Avoid some more compiler warnings.Gerd Moellmann2000-09-131-39/+53
| | | | (parse_tool_bar_item): Ignore cached key bindings.
* (read_char_minibuf_menu_prompt): Call read_char withKenichi Handa2000-08-281-1/+1
| | | | the 4th arg (PREV_EVENT) Qt to suppress input method.
* (menu_bar_item): Detect duplicate entries for all itemsStefan Monnier2000-08-271-12/+10
| | | | to better match the key-lookup behavior.
* Fix a typo in a comment.Eli Zaretskii2000-08-271-1/+1
|
* Include keyboard.h before frame.h.Andrew Innes2000-08-221-1/+3
| | | | | [USE_CRT_DLL]: Remove unnecessary extern, which screws up dllimport attributes.
* (gen_help_event): Add parameter SIZE.Gerd Moellmann2000-08-211-43/+74
| | | | | | | | | | | (kbd_buffer_events_waiting): Slightly rewritten. (clear_event): New function. (kbd_buffer_get_event): Use it, and clear the input_events of HELP_EVENTs. (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and don't fill the newly created array with nils. (toplevel): Convert some old-style function forward declarations to prototypes.
* (kbd_buffer_get_event): Handle the case that theGerd Moellmann2000-08-181-7/+11
| | | | second half of a HELP_EVENT is found at the start of kbd_buffer.
* (make_lispy_event): Handle the new event typeKenichi Handa2000-08-111-1/+9
| | | | multibyte_char_keystroke.
* (kbd_buffer_events_waiting): New function.Eli Zaretskii2000-08-091-0/+25
|
* (syms_of_keyboard): Initialize last_point_position_buffer.Ken Raeburn2000-08-081-0/+2
|
* (read_char_minibuf_menu_prompt): Add new parameterGerd Moellmann2000-08-021-1/+1
| | | | in call to Fsingle_key_description.
* (show_help_echo, gen_help_event): Extend comments.Gerd Moellmann2000-07-211-6/+12
|
* (show_help_echo): Add parameter WINDOW.Gerd Moellmann2000-07-181-20/+26
| | | | | | (read_char): Call show_help_echo with window extracted from Lisp help event. (gen_help_event): Add parameter WINDOW.
* (show_help_echo): Add parameters OBJECT and POS.Gerd Moellmann2000-07-141-20/+109
| | | | | | | | if HELP is a function, call it with OBJECT and POS as parameters to get the help to display. (gen_help_event, kbd_buffer_store_help_event): New functions. (kbd_buffer_get_event): Construct the Lisp help-event differently. (read_char): Call show_help_echo with new parameters.
* (show_help_echo): Use eval_form. Add comment.Gerd Moellmann2000-07-131-29/+49
|
* (kbd_buffer_gcpro): Renamed fromGerd Moellmann2000-07-131-48/+75
| | | | | | | | | | | | | | | | | | | kbd_buffer_frame_or_window. Now used for all Lisp objects referenced from the input queue. (kbd_buffer_store_event): Always use structure assignment for copying input events. Record all Lisp objects referenced from events in kbd_buffer_gcpro. (kbd_buffer_get_event): Construct Lisp `help-echo' events differently from input events. Test for prefix menu_bar_events and TOOL_BAR_EVENTs differently. Reset all slots used by an input event in kbd_buffer_gcpro to nil. (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose frame_or_window is equal to its arg member as prefix events. (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro used by an input event to nil. (init_keyboard): Use two times the size of the input queue for kbd_buffer_gcpro. (syms_of_keyboard): Likewise.
* (show_help_echo): Accept additional parameterEli Zaretskii2000-07-111-3/+4
| | | | | | ok_to_overwrite_keystroke_echo. (read_char): Call show_help_echo with a zero ok_to_overwrite_keystroke_echo argument.
* (show_help_echo): New function, extracted from read_char.Stefan Monnier2000-07-051-24/+32
| | | | | | Feval its `msg' argument if it's a cons cell. (read_char): Use it. (follow_key): Pass `autoload' to get_keyelt.
* (adjust_point_for_property): Check if displayGerd Moellmann2000-06-201-0/+1
| | | | | property should be treated as intangible by looking at its value.