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

584 Commits

Author SHA1 Message Date
Gerd Moellmann
edf36fe614 Update copyright. 2001-01-04 20:34:40 +00:00
Gerd Moellmann
7948d50a76 (clear_mouse_face): Don't return if tip_frame is
non-nil.
2001-01-04 20:32:20 +00:00
Eli Zaretskii
3378b2e450 (XTread_socket): Remove unused variables `p' and
`pend'.
(XTread_socket) <LeaveNotify>: Remove unused variable `frame',
leave only the one in the inner block.
2001-01-02 14:17:49 +00:00
Gerd Moellmann
0da1ab50c6 (x_connection_closed): Catch X errors around all
statements that call X.  Save away the error message in a local
copy.
2001-01-02 13:57:17 +00:00
Gerd Moellmann
1a532e5428 (x_connection_closed): Set handling_signal to 0 at
the start.
2001-01-02 13:32:43 +00:00
Gerd Moellmann
5bf045202f (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
instead of x-toolkit-scroll-bars-p.
(Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2000-12-27 14:33:11 +00:00
Gerd Moellmann
5978125e6a (x_connection_closed): Prevent being called recursively
because of an error condition in XtCloseDisplay.
2000-12-18 12:54:00 +00:00
Gerd Moellmann
c79114177c (expose_window): Don't redraw the window that's
currently being updated.
2000-12-15 17:14:07 +00:00
Gerd Moellmann
19f71add93 (x_free_frame_resources): New function.
(x_destroy_window): Use it.
2000-12-13 20:28:14 +00:00
Gerd Moellmann
10659c7727 (x_term_init): Declare gray_bitmap_bits as `extern
char *'
2000-12-13 13:23:37 +00:00
Gerd Moellmann
685f4368cf (clear_mouse_face): Treat tip_frame as a Lisp_Object. 2000-12-11 19:25:30 +00:00
Gerd Moellmann
4ca78676d2 (x_destroy_window): Call x_free_gcs so that
resources of non-toolkit X windows will be freed.
2000-12-07 11:43:06 +00:00
Gerd Moellmann
9765b4a487 (x_load_font): Don't use the font's max_bounds for
computing the height of the font.  If max_bounds' ascent or
descent are greater than the font's ascent or descent, this means
glyphs overlap, which should be handled now by redisplay.
2000-12-06 10:47:03 +00:00
Gerd Moellmann
8a4f36cc75 Close the display.
(xim_close_dpy): Handle case that the display has been closed.
2000-12-05 16:47:31 +00:00
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