1. 18 Mar, 1993 1 commit
    • Jim Blandy's avatar
      * frame.h (FOR_EACH_FRAME): Change the definition so that · 35f56f96
      Jim Blandy authored
      	FRAME_VAR is a lisp object.
      	* dispnew.c (WINDOW_CHANGE_SIGNAL, do_pending_window_change):
      	Adjusted appropriately.
      	* xdisp.c (redisplay): Adjusted appropriately.
      
      	* dispnew.c (Fredraw_frame): Give this appropriate definitions for
      	MULTI_FRAME and non-MULTI_FRAME configurations.
      	(Fredraw_display): Give this a non-MULTI_FRAME-dependent definition.
      35f56f96
  2. 15 Mar, 1993 1 commit
  3. 12 Mar, 1993 1 commit
  4. 08 Mar, 1993 1 commit
  5. 02 Mar, 1993 1 commit
    • Jim Blandy's avatar
      * xdisp.c (redisplay): Protect calls to request_sigio and · 88f22aff
      Jim Blandy authored
      	unrequest_sigio in "#ifdef SIGIO" clauses; these are not defined
      
      	Use the term `scroll bar', instead of `scrollbar'.
      	* alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h,
      	lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c,
      	xterm.c, xterm.h: Terminology changed.
      88f22aff
  6. 14 Feb, 1993 1 commit
  7. 14 Jan, 1993 1 commit
    • Jim Blandy's avatar
      * window.c (window_internal_width): New function, which accounts · b1d1124b
      Jim Blandy authored
      	for scrollbars if present.
      	* lisp.h (window_internal_height, window_internal_width): Add
      	extern declarations for these.
      	* dispnew.c (direct_output_for_insert, direct_output_forward_char,
      	buffer_posn_from_coords): Use window_internal_width instead of
      	writing out its definition.
      	* indent.c (compute_motion): Doc fix; mention scrollbars and
      	window_internal_width.
      	(pos_tab_offset, Fvertical_motion): Use window_internal_width
      	instead of writing it out.
      	* window.c (Fpos_visible_in_window_p, Fwindow_width, Fscroll_left,
      	Fscroll_right): Same.
      	* xdisp.c (redisplay, try_window, try_window_id,
      	display_text_line): Same.
      
      	* xdisp.c (display_string): Add new variable `f', to be W's
      	frame.  Use it to set desired_glyphs, and to get the frame's width
      	to decide whether or not to draw vertical bars.
      
      	* xdisp.c (display_text_line): If we're using vertical scrollbars,
      	don't draw the vertical bars separating side-by-side windows.
      	(display_string): Same thing.  Draw spaces to fill in the part of
      	the mode line that is under the scrollbar in partial-width
      	windows.
      
      	* xdisp.c (display_text_line): Use the usable internal width of
      	the window, as calculated above, as the limit on the length of the
      	overlay arrow's image, rather than using the window's width field,
      	less one.
      
      	* xdisp.c (redisplay): Call condemn_scrollbars_hook and
      	judge_scrollbars_hook whenever they are set, not just when the
      	frame has vertical scrollbars.
      
      	* termhooks.h (mouse_position_hook): Doc fix.
      	(set_vertical_scrollbar_hook): This doesn't return anything any
      	more, and doesn't take a struct scrollbar * argument any more.
      	(condemn_scrollbars_hook, redeem_scrollbar_hook,
      	judge_scrollbars_hook): Doc fixes.
      	* term.c (mouse_position_hook): Doc fix.
      	(set_vertical_scrollbar_hook): This doesn't return
      	anything any more.  Doc fixes.
      	* keyboard.c (kbd_buffer_get_event): Receive the scrollbar's
      	window from *mouse_position_hook and pass it to
      	make_lispy_movement, instead of working with a pointer to a struct
      	scrollbar.
      	(make_lispy_event): We don't need a window_from_scrollbar function
      	anymore; we are given the window directly in *EVENT.
      	Unify the code which generates
      	text-area mouse clicks and scrollbar clicks; use the same code to
      	distinguish clicks from drags on the scrollbar as in the text area.
      	Distinguish clicks from drags by storing a copy of the lispy
      	position list returned as part of the event.
      	(button_down_location): Make this a lisp vector, rather than an
      	array of random structures.
      	(struct mouse_position): Remove this; it's been replaced by a lisp
      	list.
      	(make_lispy_movement): Accept the scrollbar's window as a
      	parameter, rather than the scrollbar itself.
      	If FRAME is zero, assume that the other arguments are garbage.
      	(syms_of_keyboard): No need to staticpro each window of
      	button_down_location now; just initialize and staticpro it.
      	* window.c (window_from_scrollbar): Function deleted; no longer
      	needed.
      	* xdisp.c (redisplay_window): Just pass the window to
      	set_vertical_scrollbar hook; don't pass the scrollbar object too.
      	* xterm.c (XTmouse_position): Don't return a pointer to the
      	scrollbar for scrollbar motion; instead, return the scrollbar's
      	window.
      
      	* xdisp.c (echo_area_display): Move the assignment of f and the
      	check for visibility out of the "#ifdef MULTI_FRAME" clause; they
      	should work under any circumstances.
      
      	* xdisp.c (redisplay_window): If we're not going to redisplay this
      	window because it's a minibuffer whose contents have already been
      	updated, go ahead and jump to the scrollbar refreshing code
      	anyway; they still need to be updated.  Initialize opoint, so it's
      	known to be valid when we jump.  Calculate the scrollbar settings
      	properly for minibuffers, no matter what they are displaying at
      	the time.
      
      	* xdisp.c (redisplay_windows): Don't restore the current buffer
      	and its point before refreshing the scrollbars; we need the buffer
      	accurate.
      b1d1124b
  8. 24 Dec, 1992 1 commit
    • Jim Blandy's avatar
      * xdisp.c: #include "termhooks.h". · 30c566e4
      Jim Blandy authored
      	(redisplay, redisplay_window): Use set_vertical_scrollbar_hook,
      	condemn_scrollbars_hook, redeem_scrollbar_hook, and
      	judge_scrollbars_hook to make scrollbars redisplay properly.
      
      	It's a pain to remember that you can't assign to FRAME->visible.
      	Let's change all references to the `visible' member of struct
      	frame to use the accessor macros, and then write a setter for the
      	`visible' field that does the right thing.
      	* frame.h (FRAME_VISIBLE_P): Make this not an l-value.
      	(FRAME_SET_VISIBLE): New macro.
      	* frame.c (make_terminal_frame, Fdelete_frame): Use FRAME_SET_VISIBLE.
      	(Fframe_visible_p, Fvisible_frame_list): Use FRAME_VISIBLE_P and
      	FRAME_ICONIFIED_P.
      	* dispnew.c (Fredraw_display): Use the FRAME_VISIBLE_P and
      	FRAME_GARBAGED_P accessors.
      	* xdisp.c (redisplay): Use the FRAME_VISIBLE_P accessor.
      	* xfns.c (x_set_foreground_color, x_set_background_color,
      	x_set_cursor_color, x_set_border_pixel, x_set_icon_type): Use the
      	FRAME_VISIBLE_P accessor.
      	(Fx_create_frame): Use FRAME_SET_VISIBILITY.
      	* xterm.c (clear_cursor, x_display_bar_cursor,
      	x_display_box_cursor): Use FRAME_SET_VISIBILITY.
      30c566e4
  9. 06 Dec, 1992 1 commit
    • Jim Blandy's avatar
      * xdisp.c (redisplay): Call FRAME_SAMPLE_VISIBILITY to set the · d724d989
      Jim Blandy authored
      	visible and iconified flags appropriately for each frame.
      	(message1): Call FRAME_SAMPLE_VISIBILITY to set the visible and
      	iconified flags for the minibuffer frame.
      
      	* xdisp.c (redisplay): Use FOR_EACH_FRAME to apply
      	redisplay_windows to the root window of each frame.  This makes a
      	#ifdef MULTI_FRAME unneeded, but it also means we recompute
      	buffer_shared from scratch even on non-MULTI_FRAME configurations.
      	Don't skip elements of Vframe_list that aren't frames; go ahead
      	and crash here.
      
      	* xdisp.c (redisplay): Remove #ifdef MULTI_FRAME around the code
      	which updates separate minibuffer frames specially; there's
      	nothing there that won't work on a single-frame configuration.
      d724d989
  10. 16 Nov, 1992 1 commit
  11. 31 Oct, 1992 1 commit
    • Jim Blandy's avatar
      * xdisp.c (redisplay): Use ! EQ to compare the old and new arrow · ded34426
      Jim Blandy authored
      	positions, not !=.
      	(mark_window_display_accurate): Barf if WINDOW isn't a window.
      	(display_string): Test buffer_defaults.ctl_arrow using NILP,
      	instead of comparing it with zero.
      
      	* xdisp.c (last_arrow_position, last_arrow_string): Make these
      	static.
      
      	* xdisp.c (message): Re-write this in terms of message1.
      	(message1): Move code to clear out echo_area_glyphs and
      	previous_echo_glyphs from message to here.
      ded34426
  12. 19 Oct, 1992 1 commit
  13. 13 Sep, 1992 1 commit
  14. 19 Aug, 1992 1 commit
  15. 12 Aug, 1992 1 commit
  16. 21 Jul, 1992 2 commits
  17. 15 Jul, 1992 1 commit
  18. 14 Jul, 1992 1 commit
  19. 30 Jun, 1992 1 commit
  20. 24 Jun, 1992 1 commit
  21. 18 Mar, 1992 1 commit
  22. 12 Mar, 1992 1 commit
  23. 03 Feb, 1992 1 commit
  24. 13 Jan, 1992 1 commit
  25. 16 Nov, 1991 1 commit
  26. 02 Aug, 1991 1 commit
  27. 31 Jul, 1991 1 commit
  28. 15 Jul, 1991 1 commit
  29. 26 Jun, 1991 1 commit
  30. 22 May, 1991 1 commit