aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
Commit message (Collapse)AuthorAgeFilesLines
* (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.
* (x_produce_image_glyph, x_draw_image_foreground)Gerd Moellmann2000-05-021-4/+4
| | | | | (x_draw_image_relief, x_draw_image_foreground_1): Call function image_ascent instead of using IMAGE_ASCENT.
* (x_produce_glyphs): Remove reference to struct it'sGerd Moellmann2000-04-241-3/+3
| | | | prompt_width. Add extra line spacing.
* (x_produce_glyphs) <ASCII chars>: Take into accountGerd Moellmann2000-04-181-3/+2
| | | | that the per-character metrics may be null.
* (x_produce_glyphs): When displaying unibyte textGerd Moellmann2000-03-311-3/+14
| | | | or ASCII, handle case that per-char metric is NULL.
* * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, XSUBR, XBUFFER):Ken Raeburn2000-03-301-1/+2
| | | | | | | | | | | | | | | | | | Verify correct object type before returning pointer, using eassert. * frame.h (XFRAME): Likewise. * buffer.c (Frename_buffer, Fset_buffer_multibyte, swap_out_buffer_local_variables, Fmove_overlay): Don't apply XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type. * data.c (set_internal): Likewise. * dispextern.h (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P): Likewise. * fileio.c (auto_save_1): Likewise. * insdel.c (check_markers): Likewise. * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise. * undo.c (record_insert): Likewise. * vmsproc.c (child_sig): Likewise. * window.c (unshow_buffer, window_loop): Likewise. * xterm.c (x_erase_phys_cursor): Likewise.
* (x_copy_color): New function.Gerd Moellmann2000-03-271-0/+28
| | | | (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
* (x_display_and_set_cursor): Choose cursor dependingGerd Moellmann2000-03-261-6/+19
| | | | | on buffer-local value of cursor_type. (x_draw_bar_cursor): Add parameter WIDTH.
* (x_term_init): Unblock input around call1.Gerd Moellmann2000-03-241-0/+2
|
* (fast_find_position): Make sure not to consider rowsGerd Moellmann2000-03-231-0/+3
| | | | not visible in the window.
* Include fontset.h after dispextern.h.Kenichi Handa2000-03-211-194/+124
| | | | | | | | | | | | | | | | | | | | | | | | (x_per_char_metric): Don't try FONT->default_char. Even if pcm->width is zero, glyph bits may exist. (x_encode_char): Always initialize char2b->byte1. (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id. (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed. (x_append_glyph): Set glyph->glyph_not_available_p. (x_produce_glyphs): Set it->glyph_not_available_p. Don't set it->charset. Handle the case that per char metric is not available. If it->multibyte_p is zero and it->c is a multibyte character, convert it to a unibyte character. (struct glyph_string): Delete member `charset'. (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle the case that per char metric is not available correctly. (x_fill_glyph_string): Handle the case that the specific glyph is not available correctly. (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. (BUILD_COMPOSITE_GLYPH_STRING): Likewise. (x_new_font): Call FS_LOAD_FONT, not fs_load_font. (x_new_fontset): Call fontset_ascii to get ASCII font name of the fontset. Don't call FS_LOAD_FONT.
* (x_update_window_cursor): Don't update in framesGerd Moellmann2000-03-171-4/+9
| | | | who are in the process of being deleted.
* (xim_close_dpy, xim_initialize): Use X11R6-style XIMGerd Moellmann2000-03-141-8/+8
| | | | | support functions only if HAVE_X11R6_XIM is defined. (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
* *** empty log message ***Gerd Moellmann2000-03-141-0/+14
|
* (x_connection_closed) [USE_X_TOOLKIT]: Don't try toGerd Moellmann2000-03-071-0/+2
| | | | | close the display with XtCloseDisplay. This caused a bus error on OpenWindows.
* (x_term_init): Create a colormap if not using theGerd Moellmann2000-03-051-14/+18
| | | | default visual.
* (x_term_init): Set Colormap member of x_display_infoGerd Moellmann2000-03-041-1/+17
| | | | | | | structure. Copy colormap if resource `privateColormap' is specified (PseudoColor only). (x_setup_relief_color): Access colormap of frame using FRAME_X_COLORMAP.
* (PER_CHAR_METRIC): Removed.Gerd Moellmann2000-03-031-29/+83
| | | | | | | | | (x_per_char_metric_1, x_default_char): New functions. (x_per_char_metric): If font's default char is invalid, return metrics of a suitably chosen usable default char. (x_draw_glyph_string_foreground): If font has an invalid default char, replace occurrences of that char with a suitably chosen usable default char.
* (note_mouse_highlight): Return quickly if frame'sGerd Moellmann2000-03-021-1/+2
| | | | glyph matrices have been freed.
* (x_alloc_lighter_color, x_setup_relief_color): UseGerd Moellmann2000-03-021-14/+2
| | | | x_free_colors.
* (XTread_socket): Remove busy-cursor code.Gerd Moellmann2000-02-251-23/+0
|
* (x_display_and_set_cursor): Display cursor ofGerd Moellmann2000-02-241-1/+3
| | | | | non-selected windows depending on the setting of cursor_in_non_selected_windows.
* * xterm.c (x_display_and_set_cursor): Set pre-edit area.Gerd Moellmann2000-02-051-11/+20
| | | | | | (x_display_cursor): Don't set it here. (XTread_socket) [HAVE_X_I18N] <KeyPress, KeyRelease>: Don't dispatch the event.
* (xim_open_dpy): Remove unused local variable.Gerd Moellmann2000-01-311-1/+0
|