1. 24 Dec, 1992 1 commit
    • Jim Blandy's avatar
      * keyboard.c (Qscrollbar_movement, Qvertical_scrollbar, · db269683
      Jim Blandy authored
      	Qabove_handle, Qhandle, Qbelow_handle): New symbols.
      	(make_lispy_event): New code to build scrollbar clicks.
      	(make_lispy_movement): New code to handle scrollbar movement.
      	(head_table): Include Qscrollbar_movement in the event heads.
      	(syms_of_keyboard): Init and staticpro Qvertical_scrollbar,
      	Qabove_handle, Qhandle, and Qbelow_handle.
      	* keyboard.h (Qscrollbar_movement): Declare this along with the
      	other event types.
      	* lisp.h (Qvertical_scrollbar): Declare this.
      	* window.c (window_from_scrollbar): New function.
      
      	* window.c (Fset_window_configuration): Don't restore the frame's
      	focus redirection if the target frame is now dead.
      db269683
  2. 12 Dec, 1992 1 commit
    • Jim Blandy's avatar
      * window.c (Fset_window_configuration): If we're restoring the · fd482be5
      Jim Blandy authored
      	configuration of a dead frame, don't bother rebuilding its window
      	tree, restoring its focus redirection, or temporarily resizing it
      	to fit the saved window configuration.  If the frame which was
      	selected when the configuration was captured is now dead, don't
      	try to select it.
      
      	* frame.c (Fdelete_frame): Delete all the windows in the frame's
      	window tree, using delete_all_subwindows.
      	* window.c (delete_all_subwindows): Don't make this static
      	anymore.
      fd482be5
  3. 07 Nov, 1992 1 commit
  4. 31 Oct, 1992 1 commit
  5. 19 Oct, 1992 1 commit
    • Jim Blandy's avatar
      * window.c: Try to deal coherently with deleted windows: · 605be8af
      Jim Blandy authored
      *	(Flive_window_p): New function.
      	(Qlive_window_p): New variable, to name it in type errors.
      	(syms_of_window): Defsubr Slive_window_p, init and staticpro
      	Qlive_window_p.
      	(decode_window): Use CHECK_LIVE_WINDOW instead of
      	CHECK_WINDOW; the only thing a user should be able to do to a dead
      	window is check its type.
      	(Fcoordinates_in_window_p, Fnext_window, Fprevious_window,
      	Fdelete_other_windows, Fselect_window, Fsplit_window,
      	Fscroll_other_window): Use CHECK_LIVE_WINDOW instead of
      	CHECK_WINDOW.
      	(Fdelete_window): If WINDOW is a deleted window, do nothing;
      	there's no harm in allowing people to delete deleted windows.
      	Delete all of WINDOW's subwindows, too.
      	(delete_all_subwindows): Set the buffer, vchild, and hchild of the
      	windows we delete all to nil.
      
      	* window.c (Fwindow_minibuffer_p): Make the WINDOW argument
      	optional, like all the other window-querying functions.
      
      	* window.c (Fpos_visible_in_window_p): Use decode_window to handle
      	the WINDOW argument, instead of writing out that function's code.
      
      	* window.c (check_frame_size): Don't define this extern; that
      	doesn't mean anything.
      
      	* window.c (Fdelete_window): Choose an alternative when we delete
      	any frame's selected window, not just when we delete the selected
      	frame's selected window.
      605be8af
  6. 06 Oct, 1992 1 commit
  7. 05 Oct, 1992 1 commit
  8. 03 Oct, 1992 2 commits
    • Jim Blandy's avatar
      * window.c (SAVE_WINDOW_DATA_SIZE): Define this using sizeof, · ff06df24
      Jim Blandy authored
      	instead of just saying it's 7; that way, we won't get screwed if
      	we add members to struct save_window_data.
      
      	* window.c (Fset_window_configuration): The pointer to the
      	saved window data is called `data', not just `d'.
      ff06df24
    • Jim Blandy's avatar
      * window.c (struct save_window_data): Save the currently selected · bdc727bf
      Jim Blandy authored
      	frame, too.
      	(Fset_window_configuration): Restore the frame's selected window
      	using Fselect_window, and then restore the selected frame using
      	Fselect_frame.
      	(Fcurrent_window_configuration): Record the currently selected
      	frame.  Update docstring to describe the information now recorded.
      
      	* window.c (Fset_window_configuration): Clean up the way we save
      	and restore the frame's size.
      
              * window.c (struct save_window_data): Add a member called
      	focus_frame, to save and restore the screen's focus frame.
      	(Fset_window_configuration): Redirect the frame's focus as
      	indicated in the window configuration.
      	(Fcurrent_window_configuration): Record the frame's current focus.
      bdc727bf
  9. 30 Sep, 1992 1 commit
  10. 28 Sep, 1992 1 commit
    • Jim Blandy's avatar
      * window.c (delete_all_subwindows): Save the window's buffer in · 9ace597f
      Jim Blandy authored
      	its `height' field; we may need to know the window's old buffer
      	once we have restored it from a window configuration.
      	Fset_window_configuration): When we restore a window, if its
      	`height' field is a buffer, restore its `buffer' field from that.
      	This allows us to leave the window's buffer unchanged if the
      	buffer recorded in the configuration is dead.
      
      	* window.c (delete_all_subwindows): Removed unused variable named
      	"count".
      9ace597f
  11. 13 Sep, 1992 1 commit
    • Jim Blandy's avatar
      * window.c (minibuffer_window): Accept an optional FRAME argument; · 83762ba4
      Jim Blandy authored
      	if specified, return the minibuffer used by that frame.
      
      	* window.c (Fset_window_configuration): Don't signal an error
      	if the frame size saved in the window configuration doesn't
      	match the frame's current size; instead, temporarily resize
      	the frame while installing the window configuration.  This is
      	important because using the minibuffer saves and restores the
      	current window configuration, and you don't want to signal an
      	error just because the user resized the frame while using the
      	minibuffer.
      83762ba4
  12. 29 Aug, 1992 1 commit
    • Jim Blandy's avatar
      * window.c (coordinates_in_window): Do not assume that all · 05c2896a
      Jim Blandy authored
      	one-line windows are the minibuffer, or that all minibuffers are
      	one line high.  Use MINI_WINDOW_P.
      
      	* window.c (change_window_height): If the size of the window will
      	shrink below the minimum, this code would only try to delete it if
      	it had a parent.  Well, even if the window doesn't have a parent,
      	you want Fdelete_window to signal an error, since you're trying to
      	resize one of the undeleteable windows into nothingness.  So call
      	Fdelete_window even if the window doesn't have a parent.
      
      	* window.c (MINSIZE): Add kludge so that the minibuffer is always
      	allowed to shrink to one line in height.
      	(MINSIZE, CURBEG, CURSIZE): Change these so that their argument
      	are always Lisp_Objects, not struct window *'s.
      	(change_window_height): Changed accordingly.
      05c2896a
  13. 19 Aug, 1992 1 commit
    • Jim Blandy's avatar
      * window.c (Fset_window_configuration): Removed #if 0'd code which · 2f83aebe
      Jim Blandy authored
      	assumes that minibuf_window is on the same frame as the window
      	configuration.  Removed special case for windows whose prevs
      	point to themselves.
      
      	* window.c (Fset_window_configuration): Rename the argument from
      	ARG to CONFIGURATION, so it matches the docstring.  The
      	make-docfile program cares.
      
      	* window.c [MULTI_FRAME] (syms_of_window): Don't staticpro
      	minibuf_window; the frame list will take care of it.
      
      	* window.c (window_loop): This used to keep track of the first
      	window processed and wait until we came back around to it.  Sadly,
      	this doesn't work if that window gets deleted.  So instead, use
      	Fprevious_window to find the last window to process, and loop
      	until we've done that one.
      
      	* window.c [not MULTI_FRAME] (init_window_once): Don't forget to
      	set the `mini_p' flag on the new minibuffer window to t.
      
      	* window.c (Fwindow_at): Don't check the type of the frame
      	argument.
      
      	* window.c [not MULTI_FRAME] (window_loop): Set frame to zero,
      	instead of trying to decode it.
      
      	* window.c (init_window_once): Initialize minibuf_window before
      	FRAME_ROOT_WINDOW, so the latter actually points to something.
      2f83aebe
  14. 14 Aug, 1992 1 commit
    • Jim Blandy's avatar
      * window.c (window_loop): This used to keep track of the first · 4b206065
      Jim Blandy authored
      	window processed and wait until we came back around to it.  Sadly,
      	this doesn't work if that window gets deleted.  So instead, use
      	Fprevious_window to find the last window to process, and loop
      	until we've done that one.
      
      	* window.c [not MULTI_FRAME] (init_window_once): Don't forget to
      	set the `mini_p' flag on the new minibuffer window to t.
      
      	* window.c (Fwindow_at): Don't check the type of the frame
      	argument.
      
      	* window.c [not MULTI_FRAME] (window_loop): Set frame to zero,
      	instead of trying to decode it.
      
      	* window.c (init_window_once): Initialize minibuf_window before
      	FRAME_ROOT_WINDOW, so the latter actually points to something.
      4b206065
  15. 12 Aug, 1992 1 commit
    • Jim Blandy's avatar
      * window.c (MIN_SAFE_WINDOW_HEIGHT, MIN_SAFE_WINDOW_WIDTH): Macros · a481b3ea
      Jim Blandy authored
      	defined here now, rather than window.h.
      	(check_frame_size): New function.
      
      	* window.c (FRAME_IS_TERMCAP, FRAME_IS_X, FRAME_HAS_MINIBUF):
      	Renamed these to FRAME_TERMCAP_P, FRAME_X_P, and
      	FRAME_HAS_MINIBUF_P, for consistency with the rest of the
      	frame macros.
      
      	* window.c (check_min_window_sizes): New function.
      	(set_window_height): Call it.
      	(Fsplit_window, change_window_height): Call it, instead of writing
      	out its code.
      a481b3ea
  16. 15 Jul, 1992 1 commit
  17. 14 Jul, 1992 1 commit
  18. 02 Jul, 1992 1 commit
  19. 30 Jun, 1992 1 commit
  20. 23 Jun, 1992 1 commit
  21. 10 Jun, 1992 1 commit
  22. 03 Jun, 1992 1 commit
  23. 21 Feb, 1992 1 commit
  24. 12 Feb, 1992 1 commit
  25. 31 Jan, 1992 1 commit
  26. 13 Jan, 1992 1 commit
  27. 15 Nov, 1991 1 commit
  28. 28 Jul, 1991 1 commit
  29. 27 Jul, 1991 1 commit
  30. 19 Jul, 1991 1 commit
  31. 13 May, 1991 1 commit