aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (x_alloc_nearest_color): Fix last change to compareGerd Moellmann2000-10-301-1/+3
| | | | RGB values.
* (x_alloc_nearest_color): If allocation succeeds, andGerd Moellmann2000-10-301-0/+17
| | | | | we have a color cache, check that the cached color equals the allocated color. If not, clear the color cache.
* * lisp.h (KEYMAPP): New macro.Stefan Monnier2000-10-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as aGerd Moellmann2000-10-271-12/+22
| | | | | signed value, and use a default value computed from the font's maximum descent.
* (x_draw_glyph_string): Add a workaround so that fonts that specify aMiles Bader2000-10-271-1/+6
| | | | negative underline position can still use underlines.
* (x_connection_closed): Reset handling_signal.Gerd Moellmann2000-10-231-0/+1
|
* (VCENTER_BASELINE_OFFSET): Bias the division by two, so that when a fontMiles Bader2000-10-231-1/+1
| | | | can't be exactly centered, it errs up rather than down.
* (x_find_ccl_program): Check also fontp->full_name.Kenichi Handa2000-10-191-2/+4
|
* (x_color_cells, x_query_colors, x_query_color): NewGerd Moellmann2000-10-181-8/+83
| | | | | | | functions. (x_alloc_nearest_color): Use it to reduce calls to XQueryColors which can be slow. (x_copy_color, x_alloc_lighter_color): Likewise.
* (x_draw_box_rect): Fix the calculation of width and height forKenichi Handa2000-10-161-4/+4
| | | | XFillRectangle.
* (x_produce_glyphs): Handle unibyte_display_via_language_environmentKenichi Handa2000-10-121-0/+14
| | | | correctly.
* (x_make_frame_visible): Try harder to make the frameGerd Moellmann2000-09-281-0/+17
| | | | visible.
* (x_clear_mouse_face): Blick/unblock input.Gerd Moellmann2000-09-251-0/+2
|
* [SOLARIS2]: Remove redundant include of string.h.Dave Love2000-09-221-7/+0
|
* (x_display_and_set_cursor): Don't show a hollow boxGerd Moellmann2000-09-181-1/+3
| | | | cursor for buffers whose cursor_type is nil.
* (x_draw_image_glyph_string): Remove a comment describingGerd Moellmann2000-09-181-8/+6
| | | | | | a feature to implement that is already implemented. (note_mouse_highlight, x_find_ccl_program): Avoid some compiler warnings.
* (x_produce_glyphs): If the distance from the currentGerd Moellmann2000-09-141-0/+6
| | | | | position to the next tab stop is less than a canonical character width, use the tab stop after that.
* (x_draw_glyphs): Handle case START and END are outGerd Moellmann2000-09-081-2/+4
| | | | of bounds more carefully.
* (x_alloc_lighter_color_for_widget): New function.Miles Bader2000-09-031-0/+21
|
* (XTread_socket): Change calls to gen_help_event.Gerd Moellmann2000-08-211-2/+3
|
* Include coding.h.Kenichi Handa2000-08-111-15/+80
| | | | | | (XTread_socket): Work around a bug of XmbLookupString. If the input is from XIM, decode it according to the current locale. In that case, generate multibyte_char_keystroke events.
* (x_draw_bar_cursor): If cursor is on an image, draw aGerd Moellmann2000-08-101-19/+28
| | | | box cursor because that's better visible for large images.
* (note_mouse_highlight): Update call to overlays_at.Miles Bader2000-08-081-2/+2
|
* (x_draw_image_foreground): Avoid drawing outsideGerd Moellmann2000-08-071-2/+12
| | | | of the clip area when image doesn't have a mask.
* (note_mouse_highlight): Process overlays in the rightGerd Moellmann2000-07-211-3/+4
| | | | order of priority.
* (note_mouse_highlight): If help-echo was found in anGerd Moellmann2000-07-211-3/+6
| | | | | overlay, use that overlay as the object in which the help was found.
* Add some more prototypes.Gerd Moellmann2000-07-191-5/+12
|
* (help_echo_window): New variable.Gerd Moellmann2000-07-181-4/+11
| | | | | | | (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window. (XTread_socket): Pass help_echo_window to gen_help_event. (syms_of_xterm): Initialize and staticpro help_echo_window.
* (help_echo_object, help_echo_pos): New variables.Gerd Moellmann2000-07-141-23/+55
| | | | | | | | | | | | | (note_mode_line_highlight): Store additional information about the help-echo in help_echo_object and help_echo_pos. Check both `local-map' and `keymap' properties for changing the cursor (note_mouse_highlight): Store additional information about the help-echo in help_echo_object and help_echo_pos. (note_tool_bar_highlight): Set help_echo_object to nil and help_echo_pos to -1. (XTread_socket): Use gen_help_event instead of filling input_events manually. (syms_of_xterm): Staticpro help_echo_object.
* (construct_mouse_click, x_scroll_bar_to_input_event)Gerd Moellmann2000-07-131-28/+12
| | | | | | (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket): Always set `arg' member of input_events. (construct_menu_click): Unused function removed.
* (x_handle_tool_bar_click): Store the frame in theGerd Moellmann2000-07-131-4/+8
| | | | | | | | | frame_or_window slot of TOOL_BAR_EVENT input events instead of consing. For prefix events, store the frame in the `arg' slot of the event, otherwise store the key there. (XTread_socket): Instead of consing, use the frame_or_window slot of HELP_EVENTs for the frame, and the `arg' slot for the help string.
* (x_update_window_end): Add parameterGerd Moellmann2000-07-121-8/+49
| | | | | | | MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight redisplay in XTframe_up_to_date. (x_clear_mouse_face): New function. (x_redisplay_interface): Add pointer to x_clear_mouse_face.
* (x_update_window_begin): No need to turn off the mouseGerd Moellmann2000-07-111-2/+13
| | | | | | | highlight here. (show_mouse_face): Set the mouse_face_p flag of glyph rows depending on whether they contain glyphs highlighted in mouse-face.
* (x_fill_stretch_glyph_string): Consume runs of stretchGerd Moellmann2000-07-101-13/+47
| | | | | | | glyphs instead of a single one. (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string with new argument list. (x_set_glyph_string_gc): Make sure the face's GC is valid.
* (XTread_socket): Increment handling_signal at the start,Gerd Moellmann2000-07-051-0/+3
| | | | decrement it at the end.
* * xterm.c (note_mode_line_highlight, note_mouse_highlight)Stefan Monnier2000-07-051-7/+7
| | | | | | | | | (note_tool_bar_highlight, XTread_socket): * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight) (dos_rawgetc): * w32term.c (note_mode_line_highlight, note_mouse_highlight) (note_tool_bar_highlight, w32_read_socket): Do not gratuitously ignore non-string `help-echo' properties.
* (x_append_glyph, x_append_composite_glyph)Gerd Moellmann2000-07-051-35/+34
| | | | | | | | | | | | (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to changes in struct glyph starting 1999-12-27. Some bit-fields of struct glyph were not set, which made glyphs unequal when compared with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering effects were the result. This also depended on the contents of memory returned by xmalloc. If flickering happens again, activate the code in clear_glyph_row that's in #if 0. If the flickering is gone with that, chances are that it is caused by something similar.
* (xim_initialize) [!USE_XIM]: Don't set up theGerd Moellmann2000-06-261-0/+12
| | | | | | display info for XIM. (xim_open_dpy): Likewise. (xim_close_dpy): Don't free the display info's XIM.
* Don't include sys/types.h unconditionally. Don't protect its inclusionDave Love2000-06-231-3/+1
| | | | with !USG (following xmenu.c).
* (x_frame_of_widget): Add `static' to declaration (for pcc).Dave Love2000-06-191-1/+1
|
* (XTread_socket) <KeyPress>: In case XmbLookupStringGerd Moellmann2000-06-191-1/+4
| | | | returns XLookupChars, reset `modifiers' to zero.
* fix up more Lisp_Object/int conversion issuesKen Raeburn2000-06-181-3/+6
|
* (x_check_font) [GLYPH_DEBUG]: Add prototype.Gerd Moellmann2000-06-131-0/+4
|
* (x_frame_of_widget): New function.Gerd Moellmann2000-06-121-23/+76
| | | | | | (x_alloc_nearest_color_for_widget): Use it. (x_copy_dpy_color): New function. (x_destroy_window): Free various colors.
* * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try toKen Raeburn2000-06-091-1/+2
| | | | access the data it doesn't point to.
* (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT whichGerd Moellmann2000-06-081-1/+14
| | | | | | | | | | | will be translated to a switch-frame event in when reading the event queue. This is necessary because Emacs otherwise won't perform a switch-frame to a new frame until some other event, for example a keystroke event, forces it to do so. This has various effects, one visible being that the cursor of a frame created with C-x 5 2 or switched to with a window manager key binding like A-TAB stays hollow because selected_window isn't on the newly focused frame until the switch-frame is performed.
* (x_produce_glyphs): Don't xassert `it->descent > 0';Gerd Moellmann2000-06-061-2/+3
| | | | this isn't true for images with `:ascent 100'.
* (x_calc_absolute_position): Declare nchildren unsigned.Dave Love2000-06-051-2/+5
|
* (x_set_mouse_face_gc): If first glyph isn't a characterGerd Moellmann2000-06-021-1/+4
| | | | glyph, use the ASCII NUL character to determine the face.
* (x_produce_glyphs) <composite chars>: Handle caseGerd Moellmann2000-05-031-17/+42
| | | | that x_per_char_metric returns null.