Commit graph

17945 commits

Author SHA1 Message Date
Richard M. Stallman
04a6e76be8 *** empty log message *** 2004-03-04 17:25:52 +00:00
Richard M. Stallman
09ad9db4b4 (LD_SWITCH_SYSTEM_TEMACS): New definition. 2004-03-04 17:18:38 +00:00
Richard M. Stallman
9a7e95f339 (Fdisplay_buffer): Doc fix. 2004-03-04 17:16:56 +00:00
Richard M. Stallman
ae47339f71 (Fpop_to_buffer): Doc fix. 2004-03-04 17:15:13 +00:00
Kim F. Storm
7d90b5870b (display_line): Fix call to get_overlay_arrow_glyph_row. 2004-03-03 09:02:50 +00:00
Kim F. Storm
6c2488df0c *** empty log message *** 2004-03-03 09:02:24 +00:00
Stefan Monnier
d8d95bc7ac *** empty log message *** 2004-03-02 22:13:02 +00:00
Stefan Monnier
34ed747a82 (Ftranslate_region): Lisp_Object/int mixup. 2004-03-02 21:42:03 +00:00
Richard M. Stallman
357589bfb4 (compute_motion): Save vpos in prev_vpos, like hpos etc. 2004-03-02 16:04:57 +00:00
Kenichi Handa
409949b5d5 (Fsubstitute_command_keys): Fix counding bytes. 2004-03-02 06:12:15 +00:00
Kim F. Storm
d24bc50fce *** empty log message *** 2004-03-02 00:14:33 +00:00
Kim F. Storm
1c2a9e9882 (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
(update_window_fringes): Remove unused code.
2004-03-01 23:56:44 +00:00
Kim F. Storm
bf0a571d1f (make_window): Initialize overlay_arrow_bitmap. 2004-03-01 23:56:30 +00:00
Kim F. Storm
4789e691f8 (struct window): New member overlay_arrow_bitmap. 2004-03-01 23:56:20 +00:00
Kim F. Storm
351b5434f9 (Voverlay_arrow_variable_list): New variable to properly
implement and integrate multiple overlay arrows with redisplay.
(syms_of_xdisp): DEFVAR_LISP and initialize it.
(last_arrow_position, last_arrow_string): Replace by properties.
(Qlast_arrow_position, Qlast_arrow_string)
(Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
(syms_of_xdisp): Intern and staticpro them.
(overlay_arrow_string_or_property, update_overlay_arrows)
(overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
(overlay_arrow_at_row): New functions for multiple overlay arrows.
(redisplay_internal): Use them instead of directly accessing
Voverlay_arrow_position etc. for multiple overlay arrows.
(mark_window_display_accurate): Use update_overlay_arrows.
(try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
(try_window_id): Use overlay_arrows_changed_p.
(get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
(display_line): Use overlay_arrow_at_row to check multiple
overlay arrows, and get relevant overlay-arrow-string and
overlay-arrow-bitmap.  Set w->overlay_arrow_bitmap accordingly.
(produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
(syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
2004-03-01 23:55:52 +00:00
Jason Rumney
c146466189 (w32_read_socket): Fix last change to ButtonPress handling. 2004-03-01 22:46:39 +00:00
Juanma Barranquero
a64387eecc *** empty log message *** 2004-03-01 18:49:17 +00:00
Juanma Barranquero
eee302177f ($(BLD)/fringe.$(O)): Add dependencies. 2004-03-01 18:47:50 +00:00
Juanma Barranquero
bffe8c261b (Fdefine_fringe_bitmap): Fix typo in docstring. 2004-03-01 18:46:48 +00:00
Jan Djärv
334faa08fc * xfns.c (Fx_display_color_cells): Use number of planes to calculate
how many colors can be displayed.
2004-03-01 12:51:33 +00:00
Kenichi Handa
bb62616fbe *** empty log message *** 2004-03-01 07:09:38 +00:00
Kenichi Handa
c99ffedf9a (Ftranslate_region): Fix previous change 2004-03-01 06:36:08 +00:00
Kenichi Handa
10475277ce (Ftranslate_region): Handle multibyte chars in the arg
TABLE correctly.
2004-03-01 06:19:10 +00:00
Kim F. Storm
0fd16104a5 *** empty log message *** 2004-02-29 11:28:20 +00:00
Jan Djärv
b59dd9c823 xfns.c (x_window): Fixed indentation
* xterm.c (x_calc_absolute_position): Call x_real_positions
  to get WM window sizes and use those to calculate position.
  (x_set_offset): Removed code commented out.
2004-02-28 16:22:06 +00:00
Miles Bader
a874691c6c Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-119
src/keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert
2004-02-28 01:53:35 +00:00
Kim F. Storm
40c6ee742c (window_loop, Fforce_window_update): Force mode line
updates by setting prevent_redisplay_optimizations_p and
update_mode_lines.
2004-02-28 01:02:51 +00:00
Kim F. Storm
a4d0dc1b24 (mark_window_display_accurate): Remove prototype. 2004-02-28 01:02:35 +00:00
Kim F. Storm
52d2d88abf (update_window): Update header line also if there are
no other changes in window (move code after set_cursor label).
2004-02-28 01:02:16 +00:00
Kim F. Storm
3e0c648282 *** empty log message *** 2004-02-27 23:55:32 +00:00
Kim F. Storm
b5f2e4cd98 (x_session_check_input): Fix prototype. 2004-02-27 23:50:00 +00:00
Kim F. Storm
89079179f3 (x_focus_changed, x_detect_focus_change): Remove
numchars arg.  Always store event into bufp arg.  Return nothing.
Callers changed accordingly.
(glyph_rect): Simplify.
(STORE_KEYSYM_FOR_DEBUG): New macro.
(SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
(current_bufp, current_numcharsp) [USE_GTK]: Remove.
(current_hold_quit) [USE_GTK]: Add.
(event_handler_gdk): Adapt to new handle_one_xevent.
(handle_one_xevent): Remove bufp_r and numcharsp args.
Add hold_quit arg. Rework to use just one, local, inev
input_event. Store inev directly in fifo using
kbd_buffer_store_event_hold.  Update count in one place.
Postpone call to gen_help_event until inev is stored; use new
local do_help for this.
Simplify handling of keysyms (consolidate common code).  Fix bug
where count was updated with nchars instead of nbytes.
Remove local emacs_event in handing of ButtonPress event; just use
inev instead (so no reason to copy it later).
Remove `out' label.  Rename label `ret' to `done'; add various
`goto done' to clarify code flow in deeply nested blocks.
(x_dispatch_event): Simplify as handle_one_xevent now calls
kbd_buffer_store_event itself.
(XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
arg.  Call handle_one_xevent with new arglist.  Store event from
x_session_check_input in fifo.
[USE_GTK]: Setup current_hold_quit.
Decrement handling_signal before unblocking input.
(x_initialize) [USE_GTK]: Initialize current_count.
2004-02-27 23:49:48 +00:00
Kim F. Storm
a6950dfa24 (x_session_check_input): Remove numchars arg. 2004-02-27 23:49:32 +00:00
Kim F. Storm
004b1d3853 (w32_read_socket): Remove bufp_r and numcharsp args.
Add hold_quit arg. Rework to use just one, local, inev
input_event. Store inev directly in fifo using
kbd_buffer_store_event_hold.  Update count in one place.
Postpone call to gen_help_event until inev is stored; use new
local do_help for this.
Remove local emacs_event in handing of ButtonPress event; just use
inev instead (so no reason to copy it later).
2004-02-27 23:49:20 +00:00
Kim F. Storm
1563958662 (w32_console_mouse_position): Fix prototype. 2004-02-27 23:49:09 +00:00
Kim F. Storm
9cd31aafd4 (w32_console_read_socket): Remove bufp_r and
numcharsp args.  Add hold_quit arg.
Rework to use just one, local, inev input_event. Store inev
directly in fifo using kbd_buffer_store_event_hold.
2004-02-27 23:48:59 +00:00
Kim F. Storm
9c46d57b20 (read_socket_hook): Fix prototype. 2004-02-27 23:48:49 +00:00
Kim F. Storm
a4ab7d751c (read_socket_hook): Fix arg list. 2004-02-27 23:48:32 +00:00
Kim F. Storm
9f893fc68f (BUFFER_SIZE_FACTOR): Remove.
(read_input_waiting): Adapt to new read_socket_hook interface.
Remove allocation and initialization of local input_event buffer,
as read_socket_hook stores events directly in fifo.  Allocate and
initialize local hold_quit event to handle postponed quit event
(and store it if set by kbd_buffer_store_event_hold).
2004-02-27 23:47:48 +00:00
Kim F. Storm
ff158530cb (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit arg.
Rework to use just one, local, inev input_event. Store inev
directly in fifo using kbd_buffer_store_event_hold.
2004-02-27 23:47:13 +00:00
Kim F. Storm
e0de7f88fe (kbd_buffer_store_event_hold): Add prototype.
(gen_help_event): Fix prototype.
2004-02-27 23:46:47 +00:00
Kim F. Storm
0fc0bac9c4 (kbd_buffer_store_event_hold): New function to store
an event into kbd fifo, but with special handling of quit event;
a quit event is saved for later, and further events are discarded
until the saved quit event has been processed.
(kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
(gen_help_event): Store help event in kbd fifo.
(NREAD_INPUT_EVENTS): Remove.
(read_avail_input): Adapt to new read_socket_hook interface.
Remove allocation and initialization of local input_event buffer,
as read_socket_hook stores events directly in fifo.  Allocate and
initialize local hold_quit event to handle postponed quit event
(and store it if set by kbd_buffer_store_event_hold).
2004-02-27 23:46:31 +00:00
Steven Tamm
e35644615b Inserting Yamomotosan's changes for MacOSX image support, better support
of Asian fonts, and some long awaited header cleanup and centralization.
2004-02-26 17:46:48 +00:00
Kim F. Storm
af617d0feb *** empty log message *** 2004-02-26 11:14:34 +00:00
Kim F. Storm
7bc8e4816f Temporary fix; increase NREAD_INPUT_EVENTS to 512. 2004-02-26 08:50:02 +00:00
Kim F. Storm
dd341dd9c2 (handle_single_display_prop): Handle left-fringe and
right-fringe similar to a display margin image.  Specifically,
the characters having the fringe prop are no longer shown, and
we use IT_IMAGE/next_element_from_image with image_id = -1 to
do this.  Set fringe bitmap face_id in it->face_id.
(produce_image_glyph): Handle image_id < 0 as "no image" case, but
still realize it->face (i.e. the fringe bitmap face).
2004-02-25 22:39:54 +00:00
Kim F. Storm
446f5f3d09 *** empty log message *** 2004-02-25 22:38:34 +00:00
Miles Bader
7d8a0b5551 Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-114
Merge some minor redisplay bug-fixes from emacs--tiling--0

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--tiling--0--patch-9
   Remove bogus xassert

 * miles@gnu.org--gnu-2004/emacs--tiling--0--patch-10
   Avoid negative descents for images with ascent > height

 * miles@gnu.org--gnu-2004/emacs--tiling--0--patch-13
   Fix iterator-inconsistency bug in redisplay
2004-02-25 12:54:16 +00:00
Jason Rumney
ce35edd1b7 *** empty log message *** 2004-02-24 21:36:21 +00:00
Jason Rumney
2f30610505 (slurp_file, xbm_scan, xbm_load_image)
(xbm_read_bitmap_data): Use unsigned char for image data.
2004-02-24 09:00:24 +00:00