1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 17:30:54 -08:00
Commit graph

20212 commits

Author SHA1 Message Date
Andreas Schwab
6e5b238580 (request_sigio, unrequest_sigio): Do nothing in
non-interactive mode.
2005-10-13 09:29:18 +00:00
YAMAMOTO Mitsuharu
6de0e1a293 (note_mouse_movement): Undo last change. 2005-10-12 12:19:15 +00:00
Kim F. Storm
ce728a0c84 (handle_one_xevent): Clear last_mouse_glyph on mouse up/down. 2005-10-12 11:43:57 +00:00
Kim F. Storm
78f3b91f68 *** empty log message *** 2005-10-12 11:43:26 +00:00
YAMAMOTO Mitsuharu
621036f968 *** empty log message *** 2005-10-12 11:19:29 +00:00
YAMAMOTO Mitsuharu
47b40faff4 (note_mouse_movement): Restore help_echo_string if mouse is moved
inside last_mouse_glyph.
2005-10-12 11:18:01 +00:00
Romain Francoise
b639c9be35 (init_buffer): Rename rc' to len' for clarity. 2005-10-12 10:14:41 +00:00
YAMAMOTO Mitsuharu
76d8f04c6d (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
get end of text rows.  Obtain header-line/mode-line rows directly.
2005-10-12 09:50:50 +00:00
Kim F. Storm
cc9e7d9176 (glyph_rect, remember_mouse_glyph): Remove X versions.
(note_mouse_movement, XTmouse_position): Use generic
remember_mouse_glyph, add last_mouse_glyph arg.
2005-10-11 22:37:01 +00:00
Kim F. Storm
984c107d5e (remember_mouse_glyph): New generic version based on
glyph_rect and remember_mouse_glyph from xterm.c enhanced to
properly handle all different window areas.
2005-10-11 22:36:46 +00:00
Kim F. Storm
1bb92ecaf3 (note_mouse_movement): Fix last_mouse_glyph check.
(glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
(note_mouse_movement, w32_mouse_position): Use generic
remember_mouse_glyph, add last_mouse_glyph arg.
2005-10-11 22:36:35 +00:00
Kim F. Storm
e2570d37b2 (note_mouse_movement): Add call to remember_mouse_glyph.
(glyph_rect, remember_mouse_glyph): Remove mac specific versions.
(XTmouse_position): Adapt to use generic remember_mouse_glyph
instead of pixel_to_glyph_coords.
2005-10-11 22:35:40 +00:00
Kim F. Storm
d7f18f68ff (remember_mouse_glyph): Add prototype. 2005-10-11 22:35:22 +00:00
Kim F. Storm
7a1277840d *** empty log message *** 2005-10-11 22:35:06 +00:00
Kim F. Storm
66d41723c5 (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
Fix x position for ON_TEXT when left margin width > 0.
2005-10-11 22:21:50 +00:00
Kim F. Storm
d76432f581 *** empty log message *** 2005-10-11 22:21:36 +00:00
Romain Francoise
f727012811 *** empty log message *** 2005-10-11 15:18:36 +00:00
Kim F. Storm
a65fc2c397 (make_lispy_position): Fix buffer calculations for
mouse click or movement in right fringe and the margins.
2005-10-11 15:07:28 +00:00
Kim F. Storm
4d1add72eb (coordinates_in_window): Fix returned y position when
ON_SCROLL_BAR.
2005-10-11 15:07:07 +00:00
Kim F. Storm
55a4ac3e20 *** empty log message *** 2005-10-11 15:06:48 +00:00
Juanma Barranquero
2d4713aa66 *** empty log message *** 2005-10-11 08:32:08 +00:00
Juanma Barranquero
b25a72ab31 (fn_jpeg_stdio_src): Don't define it.
(init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
(our_common_init_source): Rename from `our_init_source'.
(our_common_term_source): Rename from `our_term_source'.
(our_memory_fill_input_buffer): Rename from `our_fill_input_buffer'.
(our_memory_skip_input_data): Rename from `our_skip_input_data'.
(jpeg_memory_src): Use the new names.
(struct jpeg_stdio_mgr): New struct.
(JPEG_STDIO_BUFFER_SIZE): New constant.
(our_stdio_fill_input_buffer, our_stdio_skip_input_data, jpeg_file_src): New
functions.
(jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
2005-10-11 08:25:27 +00:00
YAMAMOTO Mitsuharu
71b7a47f79 (PER_CHAR_METRIC): Remove unused macro.
(fm_font_family_alist): New variable.
(syms_of_macterm): Initialize and staticpro it.
(decode_mac_font_name): Replace '-' in family name with '_' if it
occurs just once.  Lower family name.
(parse_x_font_name): Rename from x_font_name_to_mac_font_name.
All uses changed.  Remove argument MF and code conversion for it.
Add argument SIZE.  Rename argument MF_DECODED to FAMILY, and CS
to CHARSET.  Parse font size.  Lower family name.  Return integer
value for status of parsing.
(init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
Don't use Fdowncase because family name is already lowered by
decode_mac_font_name.
(init_font_name_table): Always call decode_mac_font_name.  Add
pair of family name and its reference to fm_font_family_alist.
(mac_clear_font_name_table): Clear fm_font_family_alist.
(XLoadQueryFont): Move font size parsing part to parse_x_font_name.
Lookup fm_font_family_alist to get font family reference.
(XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
name is already lowered by parse_x_font_name.
2005-10-11 03:35:54 +00:00
Kim F. Storm
f0ad2f4c89 (glyph_rect): Return 0 if position is outside text area. 2005-10-10 22:54:19 +00:00
Kim F. Storm
31ab1f0585 (make_lispy_position): Fix buffer position calculation for
mouse click or movement in fringe.
2005-10-10 22:54:03 +00:00
Kim F. Storm
74051a928f *** empty log message *** 2005-10-10 22:50:01 +00:00
Kim F. Storm
58af559124 *** empty log message *** 2005-10-10 20:49:55 +00:00
Jason Rumney
9b909870cd (remember_mouse_glyph): New function.
(note_mouse_movement): Use it to remember the current glyph if
changed.
(XTmouse_position): Fix calculation of fake glyph under mouse.
Move code to calculate glyph under mouse into
remember_mouse_glyph.
2005-10-10 19:02:10 +00:00
Jan Djärv
f9e36a6dc9 -nb changed to -nbi 2005-10-10 16:14:00 +00:00
Juanma Barranquero
04bc79457e *** empty log message *** 2005-10-10 14:59:07 +00:00
Juanma Barranquero
66a9dbbea5 (Fredirect_frame_focus): Fix typos in docstring.
(next_frame, prev_frame, set_term_frame_name): Make static.
2005-10-10 14:52:50 +00:00
Juanma Barranquero
008171a4e0 (Fwindow_tree): Fix spelling. 2005-10-10 13:41:06 +00:00
Romain Francoise
41791a20d7 (Fwindow_end): Don't try to redisplay if non-interactive. 2005-10-09 16:53:35 +00:00
Jan Djärv
55c9bfe532 * emacs.c (standard_args): Removed options -i, -itype, --icon-type,
added -nb, --no-bitmap-icon.
2005-10-09 06:57:00 +00:00
Jan Djärv
84f2588006 * xfns.c (Fx_create_frame): Make bitmapIcon have default on. 2005-10-09 06:56:31 +00:00
Jan Djärv
e313fc07dd * emacs.c (standard_args): Removed options -i, -itype, --icon-type,
added -nb, --no-bitmap-icon.

* xfns.c (Fx_create_frame): Make bitmapIcon have default on.
2005-10-09 06:56:14 +00:00
YAMAMOTO Mitsuharu
61e62f5f73 (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT. Add debug code. 2005-10-08 02:29:25 +00:00
YAMAMOTO Mitsuharu
9dc9af1b8b (mac_term_init): Add types to extern.
(struct mac_output): Remove members mWP and pending_menu_activation.
Put members scroll_bar_foreground_pixel	and
scroll_bar_background_pixel in #if 0.
(FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
2005-10-08 02:28:37 +00:00
YAMAMOTO Mitsuharu
1c4ac54060 (GC_CLIP_REGION): New macro.
(saved_port_clip_region): New variable.
(mac_begin_clip, mac_end_clip): New functions.
(XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
(mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
(mac_copy_area_with_mask, mac_scroll_area): Use them.
(mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
[USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
[MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
(mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
rectangles stored in gc.
(XFreeGC): Dispose clipping region.
(mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
(x_draw_fringe_bitmap, x_set_glyph_string_clipping)
(x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
(x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
(x_draw_bar_cursor): Use them.
(x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
get multiple clipping rectangles.
2005-10-08 02:28:09 +00:00
YAMAMOTO Mitsuharu
2be96ef8f9 (MAX_CLIP_RECTS): New define.
(struct _XGC): New member clip_region.
(struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
clip_rects.
2005-10-08 02:27:47 +00:00
Kim F. Storm
c16e1cc347 (window_tree, Fwindow_tree): Rename fns added 2005-10-04. 2005-10-07 22:17:05 +00:00
Kim F. Storm
ef1b4c9ecd *** empty log message *** 2005-10-07 22:16:46 +00:00
Kim F. Storm
93e023fcee (redraw_overlapped_rows, redraw_overlapping_rows)
[!HAVE_WINDOW_SYSTEM]: Don't declare them...
(update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
2005-10-07 21:47:49 +00:00
Kim F. Storm
f101054955 *** empty log message *** 2005-10-07 21:47:18 +00:00
YAMAMOTO Mitsuharu
c2ded1b7d5 Rename member for_overlaps_p in struct glyph_string to for_overlaps. 2005-10-07 07:40:35 +00:00
YAMAMOTO Mitsuharu
a66678fd3c Rename member for_overlaps_p in struct glyph_string to
for_overlaps.
(get_glyph_string_clip_rects): New function created from
get_glyph_string_clip_rect.  Set clipping rectangles according to
the value of for_overlaps.  Enable to store multiple clipping
rectangles.
(get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
(fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
Rename argument OVERLAPS_P to OVERLAPS.  All uses in macros changed.
(x_fix_overlapping_area): Add OVERLAPS arg.  Pass it to	draw_glyphs.
(draw_phys_cursor_glyph): Set width of erased cursor to use it for
calculating clipping rectangles later.  Call
x_fix_overlapping_area with new OVERLAPS arg to draw only erased
cursor area.
(expose_overlaps): Call x_fix_overlapping_area with new
OVERLAPS arg to draw overlaps in both preceding and succeeding rows.
2005-10-07 07:39:17 +00:00
YAMAMOTO Mitsuharu
41124e0631 (redraw_overlapping_rows): Call rif->fix_overlapping_area with new
OVERLAPS arg as redrawn part.
2005-10-07 07:38:47 +00:00
YAMAMOTO Mitsuharu
10a07952dc (struct glyph_string): Rename member for_overlaps_p
to for_overlaps.  Now occupy 3 bits.
(OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
(OVERLAPS_ERASED_CURSOR): New defines.
(struct redisplay_interface): Add new OVERLAPS arg to member
fix_overlapping_area.
(x_fix_overlapping_area): Add new OVERLAPS arg.
(get_glyph_string_clip_rects): Add extern.
2005-10-07 07:38:12 +00:00
Richard M. Stallman
49efed3a0f (refill_memory_reserve): Conditionalize the body, not the function's existence. 2005-10-04 20:26:13 +00:00
Kim F. Storm
abc8ce502c *** empty log message *** 2005-10-04 14:26:06 +00:00