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

570 Commits

Author SHA1 Message Date
Gerd Moellmann
2662734b85 (x_destroy_window): Reset the frame's X window after
destroying it.
2000-12-05 14:32:18 +00:00
Gerd Moellmann
d895297e8b (PER_CHAR_METRIC): Removed because not used. 2000-12-04 20:43:27 +00:00
Gerd Moellmann
4bc6dcc754 (expose_area): Pass x-coordinate relative to the exposed
area to x_draw_glyphs instead of a window-relative coordinate.
2000-12-04 16:19:04 +00:00
Kenichi Handa
1bdeec2e3c (x_produce_glyphs): If a font for a component of
a composition is not found, use 1 pixel dot ascent and 0 dot
descent value to avoid displaying terribly tall empty boxes.
2000-12-04 01:20:30 +00:00
Gerd Moellmann
7708ced012 (x_calc_absolute_position): Don't subtract menubar's
height for YNegative.
(x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
height; also see comment there.
2000-12-01 22:15:12 +00:00
Gerd Moellmann
eccc05db42 Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
#ifndef instead of using #if.
(XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
USE_TOOLKIT_SCROLL_BARS is defined.
2000-11-30 19:52:51 +00:00
Gerd Moellmann
43281ee3f4 (x_estimate_mode_line_height): If `mode-line' face
hasn't a font, use that of the frame, as drawing glyphs
does.
2000-11-30 11:56:35 +00:00
Gerd Moellmann
aad0f6ab75 (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
is over the menu bar widget, say it's not on the frame.
2000-11-29 16:42:40 +00:00
Gerd Moellmann
e371a7810f (note_mouse_highlight): Change the cursor shape
on the vertical border between windows.
2000-11-28 13:45:56 +00:00
Gerd Moellmann
8daf1204a0 (x_handle_tool_bar_click, note_tool_bar_highlight):
Change references to mambers deleted from struct frame to use the
new ones.
2000-11-22 16:29:33 +00:00
Gerd Moellmann
07b3d16e11 (scroll_bar_windows, scroll_bar_windows_size): New
variables.
(x_send_scroll_bar_event): Store the window in scroll_bar_windows
and store an index in the XClientMessageEvent.  Storing a
Lisp_Object or pointer can fail on a 64 bit system, since X only
transfers 32 bits.
(x_scroll_bar_to_input_event): Get the window from
scroll_bar_windows.
2000-11-20 16:49:44 +00:00
Gerd Moellmann
e83dc91758 (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
(x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
SCROLL_BAR_X_WIDGET with addtional argument DPY.
2000-11-19 00:29:46 +00:00
Miles Bader
d7361edf01 (x_alloc_lighter_color): Use real brightness calculation.
Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
(HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
2000-11-14 01:45:45 +00:00
Miles Bader
6d8b0acd4a (x_alloc_lighter_color): Include an additive component too for dark
colors, because FACTOR isn't enough.
(HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
  New macros.
2000-11-13 15:47:32 +00:00
Gerd Moellmann
fa2dfc3000 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
scroll bar widget after configuring it, so that it will appear at
the right position from the start.
(XTredeem_scroll_bar): Cleaned up.
2000-11-08 15:45:40 +00:00
Kenichi Handa
458f45fad3 (VCENTER_BASELINE_OFFSET): Fix previous change. If the
font is taller than the frame line, we don't have to vias the
division by two.
2000-11-08 00:53:11 +00:00
Gerd Moellmann
cae71efec1 (x_alloc_nearest_color): Fix last change to compare
RGB values.
2000-10-30 15:17:11 +00:00
Gerd Moellmann
35efe0a116 (x_alloc_nearest_color): If allocation succeeds, and
we have a color cache, check that the cached color equals the
allocated color.  If not, clear the color cache.
2000-10-30 15:13:58 +00:00
Stefan Monnier
020676925c * lisp.h (KEYMAPP): New macro.
(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.
2000-10-27 22:20:19 +00:00
Gerd Moellmann
e24e84cc9f (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
signed value, and use a default value computed from the font's
maximum descent.
2000-10-27 10:59:20 +00:00
Miles Bader
a66d76d290 (x_draw_glyph_string): Add a workaround so that fonts that specify a
negative underline position can still use underlines.
2000-10-27 01:22:21 +00:00
Gerd Moellmann
182334bd08 (x_connection_closed): Reset handling_signal. 2000-10-23 15:01:52 +00:00
Miles Bader
0e9becceb1 (VCENTER_BASELINE_OFFSET): Bias the division by two, so that when a font
can't be exactly centered, it errs up rather than down.
2000-10-23 03:14:04 +00:00
Kenichi Handa
9f2feff636 (x_find_ccl_program): Check also fontp->full_name. 2000-10-19 06:55:02 +00:00
Gerd Moellmann
f04e1297ec (x_color_cells, x_query_colors, x_query_color): New
functions.
(x_alloc_nearest_color): Use it to reduce calls to XQueryColors
which can be slow.
(x_copy_color, x_alloc_lighter_color): Likewise.
2000-10-18 11:58:07 +00:00
Kenichi Handa
58e4fce895 (x_draw_box_rect): Fix the calculation of width and height for
XFillRectangle.
2000-10-16 04:20:36 +00:00
Kenichi Handa
a4249304d8 (x_produce_glyphs): Handle unibyte_display_via_language_environment
correctly.
2000-10-12 05:22:46 +00:00
Gerd Moellmann
31be92510e (x_make_frame_visible): Try harder to make the frame
visible.
2000-09-28 14:00:51 +00:00
Gerd Moellmann
2e636f9d48 (x_clear_mouse_face): Blick/unblock input. 2000-09-25 09:23:32 +00:00
Dave Love
3b5f096679 [SOLARIS2]: Remove redundant include of string.h. 2000-09-22 16:11:12 +00:00
Gerd Moellmann
5cefa566fb (x_display_and_set_cursor): Don't show a hollow box
cursor for buffers whose cursor_type is nil.
2000-09-18 21:12:22 +00:00
Gerd Moellmann
f9b5db0256 (x_draw_image_glyph_string): Remove a comment describing
a feature to implement that is already implemented.
(note_mouse_highlight, x_find_ccl_program): Avoid some compiler
warnings.
2000-09-18 13:18:16 +00:00
Gerd Moellmann
2a32b5ea15 (x_produce_glyphs): If the distance from the current
position to the next tab stop is less than a canonical character
width, use the tab stop after that.
2000-09-14 20:20:51 +00:00
Gerd Moellmann
a8710abfaf (x_draw_glyphs): Handle case START and END are out
of bounds more carefully.
2000-09-08 09:35:57 +00:00
Miles Bader
46d516e5b0 (x_alloc_lighter_color_for_widget): New function. 2000-09-03 11:33:29 +00:00
Gerd Moellmann
5ab2570dea (XTread_socket): Change calls to gen_help_event. 2000-08-21 18:58:17 +00:00
Kenichi Handa
379b5ac0b0 Include coding.h.
(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.
2000-08-11 00:49:39 +00:00
Gerd Moellmann
92f424dfc0 (x_draw_bar_cursor): If cursor is on an image, draw a
box cursor because that's better visible for large images.
2000-08-10 19:13:28 +00:00
Miles Bader
bc5920367e (note_mouse_highlight): Update call to overlays_at. 2000-08-08 23:56:29 +00:00
Gerd Moellmann
49ad1d991e (x_draw_image_foreground): Avoid drawing outside
of the clip area when image doesn't have a mask.
2000-08-07 21:54:31 +00:00
Gerd Moellmann
f83490015c (note_mouse_highlight): Process overlays in the right
order of priority.
2000-07-21 15:54:14 +00:00
Gerd Moellmann
743934dbc8 (note_mouse_highlight): If help-echo was found in an
overlay, use that overlay as the object in which the help was
found.
2000-07-21 15:38:39 +00:00
Gerd Moellmann
952291d9f6 Add some more prototypes. 2000-07-19 15:47:10 +00:00
Gerd Moellmann
7cea38bcc8 (help_echo_window): New variable.
(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.
2000-07-18 18:23:29 +00:00
Gerd Moellmann
be01051469 (help_echo_object, help_echo_pos): New variables.
(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.
2000-07-14 13:56:09 +00:00
Gerd Moellmann
0f8aabe948 (construct_mouse_click, x_scroll_bar_to_input_event)
(x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
Always set `arg' member of input_events.
(construct_menu_click): Unused function removed.
2000-07-13 23:43:30 +00:00
Gerd Moellmann
0f1a9b2356 (x_handle_tool_bar_click): Store the frame in the
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.
2000-07-13 14:09:50 +00:00
Gerd Moellmann
71b8321ed9 (x_update_window_end): Add parameter
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.
2000-07-12 15:09:53 +00:00
Gerd Moellmann
64f26cf542 (x_update_window_begin): No need to turn off the mouse
highlight here.
(show_mouse_face): Set the mouse_face_p flag of glyph rows
depending on whether they contain glyphs highlighted in
mouse-face.
2000-07-11 19:58:43 +00:00
Gerd Moellmann
209f68d91b (x_fill_stretch_glyph_string): Consume runs of stretch
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.
2000-07-10 20:32:14 +00:00