1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 20:00:46 -08:00
Commit graph

20176 commits

Author SHA1 Message Date
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
Kim F. Storm
94e16dd575 (window_split_tree): New function.
(Fwindow_split_tree): New defun.
(syms_of_window): Defsubr it.
2005-10-04 14:14:05 +00:00
YAMAMOTO Mitsuharu
66533b2580 *** empty log message *** 2005-10-04 09:21:09 +00:00
YAMAMOTO Mitsuharu
d4a8455bf1 (mac_invert_rectangle): New function.
(XTflash): Use it.
2005-10-04 09:20:38 +00:00
Stefan Monnier
4e2f601fbc (re_char): Don't expose it in the interface.
(re_set_whitespace_regexp): Adjust the arg's type to not use it.
2005-10-04 04:32:50 +00:00
Stefan Monnier
6470ea05f9 (re_char): Move it back to the implementation file.
(re_set_whitespace_regexp): Change the arg's type to not use it.
2005-10-04 04:31:08 +00:00
Stefan Monnier
4156359ea5 (make_lispy_event): If point has moved between down and up event, make it
a drag, not a click, to mirror what mouse-drag-region expects.
2005-10-04 04:23:12 +00:00
Dan Nicolaescu
eb27c2ca1f * lisp.h (fatal): Undo previous change.
* term.c (fatal): Undo previous change.
2005-10-02 18:35:05 +00:00
Richard M. Stallman
b059f7d08e *** empty log message *** 2005-10-02 03:36:42 +00:00
Richard M. Stallman
71433d39f5 (face_color_gray_p): Colors close to black count as gray. 2005-10-02 03:28:56 +00:00
Kim F. Storm
58e5658e85 (try_window): Skip scroll-margin check if ZV is visible. 2005-10-01 20:42:09 +00:00
Kim F. Storm
21a9a7be96 *** empty log message *** 2005-10-01 20:41:57 +00:00
YAMAMOTO Mitsuharu
ddcb766578 *** empty log message *** 2005-10-01 11:12:06 +00:00
YAMAMOTO Mitsuharu
c3bd8190a2 (mac_draw_string_common, x_per_char_metric)
(mac_compute_glyph_string_overhangs, init_font_name_table)
(XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
(atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
(x_draw_glyph_string_background)
(x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
XDrawImageString.  Always draw background and foreground separately.
(x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
functions for one-byte chars when using ATSUI-compatible fonts.
(atsu_font_id_hash) [USE_ATSUI]: New variable.
(syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
(XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
max_char_or_byte2 more in detail.
(quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
2005-10-01 11:11:32 +00:00
YAMAMOTO Mitsuharu
04904a238e (struct _XCharStruct): New member valid_p.
(STORE_XCHARSTRUCT): Set valid_p.
(struct MacFontStruct) [USE_ATSUI]: New member mac_style.
2005-10-01 11:09:44 +00:00
YAMAMOTO Mitsuharu
aa27f1e712 (start_hourglass): Apply 2005-05-07 change for xfns.c.
(x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debug code.
(Fx_create_frame, x_create_tip_frame) [USE_ATSUI]: Try
ATSUI-compatible 12pt Monaco font first.
2005-10-01 11:09:09 +00:00
YAMAMOTO Mitsuharu
9e4239ea12 (init_keyboard) [MAC_OSX]: Don't install SIGINT handler. 2005-10-01 11:08:25 +00:00
Dan Nicolaescu
fa8459a34e * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct
type.
* xterm.c (handle_one_xevent, handle_one_xevent): Likewise.

* unexelf.c (fatal): Fix prototype.

* term.c (fatal): Implement using varargs.

* regex.c (re_char): Move typedef ...
* regex.h (re_char): ... here.
(re_iswctype, re_wctype, re_set_whitespace_regexp): New
prototypes.

* emacs.c (malloc_set_state): Fix return type.
(endif): Fix type.

* lisp.h (fatal): Add argument types.

* dispextern.h (fatal): Delete prototype.

* systime.h: (make_time): Prototype moved from ...
* editfns.c (make_time): ... here.

* editfns.c: Move systime.h include after lisp.h.
* dired.c:
* xsmfns.c:
* process.c: Likewise.

* alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
Add parameter types.
(__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
(emacs_blocked_free): Change definition to match __free_hook.
(emacs_blocked_malloc): Change definition to match __malloc_hook.
(emacs_blocked_realloc): Change definition to match
__realloc_hook.
2005-09-30 22:38:16 +00:00
Dan Nicolaescu
b17f937955 Move systime.h include after lisp.h.
(make_time): Move prototype from systime.h.
2005-09-30 22:38:16 +00:00
Romain Francoise
97c3e4cc37 (High-Level Completion): Explain that the prompt
given to `read-buffer' should end with a colon and a space.
Update usage examples.
2005-09-30 18:30:10 +00:00
Juri Linkov
8ad8c5ce6b *** empty log message *** 2005-09-29 23:41:36 +00:00
Juri Linkov
867b9600bb (Fmessage, Fmessage_box, Fmessage_or_box):
Rename argument name `string' to `format-string'.
(Fformat): Doc fix.
2005-09-29 23:28:48 +00:00
Kim F. Storm
0f4aca467e (gif_load): Fix size of allocated image buffer
for images where a sub-image may be larger than the image's
total height/width specifications.
2005-09-28 10:48:20 +00:00
Kim F. Storm
64da575986 *** empty log message *** 2005-09-28 10:47:51 +00:00
YAMAMOTO Mitsuharu
eaf9243884 (struct _XCharStruct): Each member now takes short value. 2005-09-28 08:15:50 +00:00
Dan Nicolaescu
6c4eb4ce00 (handle_one_xevent): Refer to union field to match the type
required by the function definition.
2005-09-27 21:14:23 +00:00
Dan Nicolaescu
43f15d4afe * xlwmenu.c (find_next_selectable):
(find_prev_selectable): Add missing parameter
declarations.

* xfaces.c (lookup_derived_face): Add parameter type.

* xdisp.c (cursor_row_fully_visible_p): Add parameter type.

* marker.c (verify_bytepos): Add parameter type.

* process.c (get_operating_system_release): Move prototype ...

* systime.h (get_operating_system_release): ... here.

* xterm.c (set_vertical_scroll_bar): Move prototype ...

* xterm.h: ... here.

* fns.c (internal_equal, seed_random): Fix prototypes.
(internal_equal): Add missing parameter.
2005-09-27 18:48:59 +00:00
Richard M. Stallman
c769dcace7 *** empty log message *** 2005-09-26 00:04:50 +00:00
Richard M. Stallman
9867523c82 (update_menu_bindings): Variable deleted.
(syms_of_keyboard): Don't defvar it.
(parse_menu_item): Don't test it.
2005-09-25 23:49:15 +00:00
Eli Zaretskii
f9ac21e7fb Add makefile (for MS-Windows). 2005-09-24 10:27:46 +00:00
Richard M. Stallman
8dbf19c70c *** empty log message *** 2005-09-23 18:32:28 +00:00
Richard M. Stallman
913f73d4ee (Fformat): Explicitly test for end of format string and don't use `index'. 2005-09-23 18:22:46 +00:00
Dan Nicolaescu
3480d92bb0 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME): Define
BROKEN_GET_CURRENT_DIR_NAME.

* sysdep.c (get_current_dir_name): Also define if
BROKEN_GET_CURRENT_DIR_NAME.

* m/ibmrs6000.h: Test for USG5, not USG5_4.
2005-09-23 17:06:03 +00:00
Kim F. Storm
f291069afb (message_dolog): Add warning about GC and Lisp strings.
(message2): Fix commentary.  Ok to use alloca'ed memory.
Still not ok to use Lisp string data (because of GC).
(set_message): Add comment why GC cannot happen.
2005-09-22 09:39:01 +00:00
Kim F. Storm
5db60f3131 *** empty log message *** 2005-09-22 09:38:45 +00:00
YAMAMOTO Mitsuharu
7c3d233d90 (xlfdpat_block_match_1): Fix assertion.
(init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
variants for a scalable font multiple times.
2005-09-22 07:53:45 +00:00
YAMAMOTO Mitsuharu
acde11527b *** empty log message *** 2005-09-21 08:04:40 +00:00