1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00
Commit Graph

389 Commits

Author SHA1 Message Date
Richard M. Stallman
f8c39f5172 (x_term_init) [! HAVE_X11R5]: Don't try to use XtCvtStringToFont. 1997-07-28 15:10:21 +00:00
Richard M. Stallman
bf7253f4a2 (dumpglyphs): Check the dimension of FONT while
setting `byte1' and `byte2' members of *CP.

(XTread_socket): Trap the BadMatch error that can occur
after a XSetInputFocus if window is not visible.
1997-07-26 01:43:07 +00:00
Richard M. Stallman
8c1a6a84ca (XTread_socket) <ClientMessage>:
For wm_take_focus, use x_any_window_to_frame.
Don't use FRAME_XIC if it is null, here.

(dumpglyphs): Use 8-bit output to X, rather than 16-bit,
if the character values permit that.
1997-07-20 17:44:22 +00:00
Richard M. Stallman
5c1aae96f9 (x_draw_box): Use scratch_cursor_gc to draw the cursor
box using the color specified by cursor_pixel.
1997-07-14 04:24:24 +00:00
Richard M. Stallman
b264791c6b (dumpglyphs): Declare local variable first_ch as Lisp_Object, not int. 1997-07-12 06:35:22 +00:00
Richard M. Stallman
fe27f88d3a (x_load_font): Get value of fontp->height from
ascent and descent members of structure font->max_bounds.
(dumpglyphs): Draw background by FillSolid if a font is too short.
1997-07-10 02:15:40 +00:00
Richard M. Stallman
5d7cc324ad (x_term_init): Don't use initializer for null_bits.
(XTread_socket) <KeyPress>: Call XFilterEvent.
1997-07-10 02:13:26 +00:00
Kenichi Handa
1348f1a4fc (x_list_fonts): Initialize the variable LIST to Qnil. 1997-07-07 00:59:44 +00:00
Richard M. Stallman
4d3f5d9ab7 (x_make_frame_visible): Don't move the frame
if it was iconified--only if it was invisible.
1997-07-05 08:23:34 +00:00
Richard M. Stallman
28c01ffe80 (x_make_frame_visible): Check has_been_visible
field before the UNBLOCK_INPUT.
1997-07-02 04:41:00 +00:00
Kenichi Handa
2da424f117 (dumpglyphs): Use FS_LOAD_FONT.
(x_new_fontset): If frame F has already using FONTSET, avoid the
duplicated work.  Use FS_LOAD_FONT.
(x_list_fonts): Call Fassoc to search Valternate_charset_table.
(x_load_font): Get around a buf of XListFonts
1997-06-21 00:45:44 +00:00
Richard M. Stallman
f39db7eaf4 (x_list_fonts): fast_c_string_match_ignore_case renamed. 1997-06-09 17:58:49 +00:00
Kenichi Handa
97210f4e3f (dumpglyph): Shift baseline for such a font that is
shorter but ascent or descent exceed the line height.
For a larger font, draw a small hook at right-bottom edge instead
of a rectangle.
1997-06-09 13:00:24 +00:00
Richard M. Stallman
06c488fde2 (process_expose_from_menu, XTread_socket):
Set has_been_visible field.
(x_make_frame_visible): Don't do XMoveWindow unles has_been_visible.
1997-05-31 07:37:09 +00:00
Richard M. Stallman
8ff102bda5 (x_load_font): Use macro FONT_ENCODING_NOT_DECIDED. 1997-05-31 02:03:43 +00:00
Richard M. Stallman
dcb07ae9dc (XTread_socket) <ConfigureNotify>: Don't call
x_wm_set_size_hint if window has no parent yet.
Simplify the call to x_real_positions.
(x_make_frame_visible): Use win_gravity to decide whether to
call XMoveWindow.  Also, don't do it if frame already visible.
1997-05-28 04:54:48 +00:00
Richard M. Stallman
1aa6072f7d (XTread_socket) <UnmapNotify>: Don't make an inconify_event
when frame was made invisible.
(x_make_frame_visible): Put the call to x_set_offset back as it was.
Near the end, instead call XMoveWindow, but only if original
positions were not negative.
1997-05-27 03:09:37 +00:00
Richard M. Stallman
9829ddba7b (x_make_frame_visible): Call x_set_offset only after
mapping the window and accepting input.
(x_calc_absolute_position): Do nothing if current position
is already for the top-left corner.
Handle errors in XTranslateCoordinates.
(XTread_socket): Simplify handling of ConfigureNotify events.
Always call x_wm_set_size_hint for them.
No need to call XTranslateCoordinates here.
(x_clear_errors): New function.
1997-05-26 06:22:15 +00:00
Kenichi Handa
ce667c3efe (x_load_font): Set 4 instead of -1 in fontp->encoding[1]
for the meaning of `can't decided'.
1997-05-19 03:33:50 +00:00
Kenichi Handa
f613a4c856 (dumpglyphs): Draw glyphs one by one if the font for
them is narrower than required.
(x_connection_closed): Put # at the beginning of line.
(x_load_font): Cast to (char *) before assigning to FONTNAME.
1997-05-16 00:42:53 +00:00
Kenichi Handa
34910d41c1 (dumpglyphs): Even if font (not fontset) is used,
display Latin1 characters correctly if the font contains glyphs
for them.  Fix bug of displaying cursor on a composite character.
1997-05-10 03:37:01 +00:00
Richard M. Stallman
e99db5a15c (XTmouse_position, x_term_init):
Save value of x_catch_errors and pass to x_uncatch_errors.

(x_catch_errors): Use specpdl so can be nested.
Use a Lisp string to as the buffer for the X message.
(x_uncatch_errors, x_had_errors_p, x_check_errors): Related changes.
(x_catch_errors_unwind): New function.
(x_error_quitter): Call x_error_catcher if appropriate.
(x_error_message_string): New variable.
(syms_of_xterm): Defvar it.
(x_caught_error_message): Variable deleted.
(X_ERROR_MESSAGE_SIZE): Renamed from X_CAUGHT_ERROR_MESSAGE_SIZE.
(x_error_handler): New function, calls x_error_quitter or ..._checker.
(x_initialize): Use x_error_handler as error handler for X.
1997-05-01 01:57:25 +00:00
Richard M. Stallman
df89d8a469 Fix previous change. 1997-04-27 16:34:19 +00:00
Richard M. Stallman
0c49ce2f28 (x_destroy_window): Free saved_menu_event, if any. 1997-04-27 03:32:14 +00:00
Richard M. Stallman
e73ec6fa92 (x_set_offset): Turn off the code that added the border_width
to modified_left and modified_top; it seems incorrect to do that.
1997-04-20 22:14:53 +00:00
Karl Heuer
26459b28a9 (construct_menu_click, note_mouse_highlight, fast_find_position):
Fix Lisp_Object/integer confusion.
1997-04-10 22:25:45 +00:00
Kenichi Handa
57b03282a0 (dumpglyphs): Clip and highlight glyphs displayed with
fonts of wrong size.
1997-04-07 07:12:13 +00:00
Richard M. Stallman
441affdb50 (XTread_socket): Accept XK_ISO_* keys. 1997-03-22 23:59:53 +00:00
Richard M. Stallman
1097aea030 (XTread_socket): Handle ISO_Left_Tab. 1997-03-22 04:21:00 +00:00
Kenichi Handa
b5210ea72e (dumpglyphs): Set a clipping region when we draw glyphs
with a font of inappropriate size.
(x_list_fonts): Try alternate fonts if we can't find a font of an
appropriate size.
1997-03-19 16:33:48 +00:00
Kenichi Handa
81ba44e5ff (x_list_fonts): Comment about cached font list added. 1997-03-18 23:31:34 +00:00
Kenichi Handa
f78798dfeb (dumpglyphs): Pay attention to characters registered in
use-default-ascent.
Fill background in advance if font has
non-zero _MULE_BASELINE_OFFSET property.
(x_load_font, x_term_init): Handle font property _MULE_DEFAULT_ASCENT.
1997-02-27 06:53:04 +00:00
Karl Heuer
dc43ef945f Include charset.h, ccl.h, and fontset.h.
(PER_CHAR_METRIC): New macro.
(dumpglyphs): New argument CMPCHARP.  Handle multibyte characters.
(XTwrite_glyphs, redraw_previous_char, redraw_following_char):
Supply argument CMPCHARP to dumpglyphs.
(dumprectangle): Display whole glyph of wide-column characters.
Supply argument CMPCHARP to dumpglyphs.
(show_mouse_face): Supply argument CMPCHARP to dumpglyphs.
(x_draw_box): Pay attention to wide-column characters.
(x_draw_single_glyph): Supply argument CMPCHARP to dumpglyphs.
(x_new_font): Call fs_load_font for actual font loading work.
(x_new_fontset): New function.
(x_get_font_info, x_list_fonts, x_load_font, x_query_font): New
functions providing API to fontset handler.
(x_term_init): Initialize several new members of struct x_display_info.
1997-02-20 06:59:25 +00:00
Richard M. Stallman
eefe909628 (dumpglyphs): Declare g as GLYPH. 1997-01-20 08:08:13 +00:00
Richard M. Stallman
1e6bc770bd (x_iconify_frame): Clear visible when we set iconified. 1996-12-26 21:07:30 +00:00
Richard M. Stallman
e687d06efa (cancel_mouse_face): New function. Code copied from
x_set_window_size, fixing a bug.
(x_set_window_size): Use cancel_mouse_face.
(XTread_socket): When frame size has changed, call cancel_mouse_face.
1996-10-31 22:05:51 +00:00
Richard M. Stallman
1cf4a0d1a2 (XTread_socket, KeyPress case): Clear compose_status
if the key has the meta modifier.
1996-10-30 05:09:38 +00:00
Richard M. Stallman
549b29ac9a (XTwrite_glyphs, XTclear_end_of_line, XTclear_frame)
(clear_cursor, x_display_bar_cursor, x_display_box_cursor)
(x_set_window_size): Use phys_cursor_on field in frame.
(x_update_cursor): Negative phys_cursor_x no longer means anything.
1996-10-12 16:06:40 +00:00
Richard M. Stallman
2729a2b5d8 (show_mouse_face): Undo 1996-08-30 change. 1996-09-29 01:29:41 +00:00
Richard M. Stallman
e84e14c381 (XTflash): Don't flash in the internal borders.
or between a scroll bar and the edge.

(XTflash): Flash just top and bottom screen line.

(XTread_socket): Finish previous change.
1996-09-27 07:46:54 +00:00
Richard M. Stallman
f66868bad1 (XTread_socket): Delete WAITP arg. 1996-09-25 08:00:39 +00:00
Richard M. Stallman
3cbd2e0ba0 (x_scroll_bar_create, x_scroll_bar_move):
(x_scroll_bar_expose): Use VERTICAL_SCROLL_BAR_WIDTH_TRIM.

(XTchange_line_highlight, dumpglyphs, XTclear_end_of_line)
(do_line_dance, pixel_to_glyph_coords): Use FRAME_WINDOW_WIDTH.

(x_scroll_bar_move, x_scroll_bar_create):
Add a border around the actual window.

(x_scroll_bar_expose): Don't trim the width here.
1996-09-23 04:44:15 +00:00
Richard M. Stallman
d9cdbb3d95 Pass frame arg in calls to VERTICAL_SCROLL_BAR_INSIDE_HEIGHT
and VERTICAL_SCROLL_BAR_TOP_RANGE.

(XTclear_end_of_line): Shift end-of-line when there is a
left-side scroll bar by FRAME_LEFT_SCROLL_BAR_WIDTH.
(do_line_dance): Take into account the width of a left-side scroll bar.
(dumprectangle): Trim at FRAME_EXTERNAL_WIDTH instead of FRAME_WIDTH.
(fast_find_position): Use new macro WINDOW_LEFT_MARGIN.
(show_mouse_face): Likewise.
(x_scroll_bar_set_handle): VERTICAL_SCROLL_BAR_INSIDE_WIDTH now
requires the frame as an argument.
(x_scroll_bar_expose): Narrow the box slightly for a left-side scroll bar.
1996-09-21 00:57:20 +00:00
Karl Heuer
6df54671fd Replaced symbol BSD with BSD_SYSTEM. 1996-09-17 03:43:54 +00:00
Richard M. Stallman
bade65fd57 (note_mouse_highlight): Test last_overlay_modified field. 1996-09-16 06:31:10 +00:00
Richard M. Stallman
adabc3a9af (x_connection_closed): Call XtCloseDisplay. 1996-09-13 17:03:29 +00:00
Richard M. Stallman
2ef60670b3 (note_mouse_highlight): Pass POS argument to fast_find_position as int. 1996-09-04 03:38:40 +00:00
Richard M. Stallman
2218e4d9c4 (x_term_init): Initialize Xatom_FONT member.
(x_new_font): Use Xatom_FONT member.
1996-09-01 20:49:29 +00:00
Richard M. Stallman
aa8bff2e10 (XTupdate_end): Always clear mouse_face_defer flag. 1996-08-31 02:44:14 +00:00
Richard M. Stallman
d1bc41829a (do_line_dance, dumprectangle): Use x_update_cursor.
(show_mouse_face, clear_cursor): Likewise.
(x_display_cursor): New args X and Y.
(XTupdate_end, XTcursor_to, XTwrite_glyphs): Pass new args.
(XTupdate_begin): Initialize curs_x, curs_y here.
1996-08-30 18:49:07 +00:00