Commit graph

276 commits

Author SHA1 Message Date
Richard M. Stallman 99e5add39c Doc fix. 1992-10-05 07:37:10 +00:00
Jim Blandy ff06df24f6 * window.c (SAVE_WINDOW_DATA_SIZE): Define this using sizeof,
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'.
1992-10-03 07:15:35 +00:00
Jim Blandy bdc727bf41 * window.c (struct save_window_data): Save the currently selected
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.
1992-10-03 05:42:42 +00:00
Jim Blandy e8121f2afa * window.c (Fset_window_configuration): Don't select the frame
just because we restored its configuration.

	* window.c (Fset_window_configuration): Don't forget to set the
	frame's selected window when we can't call Fselect_window.
1992-09-30 14:28:46 +00:00
Jim Blandy 9ace597fcf * window.c (delete_all_subwindows): Save the window's buffer in
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".
1992-09-28 06:10:03 +00:00
Jim Blandy 83762ba49a * window.c (minibuffer_window): Accept an optional FRAME argument;
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.
1992-09-13 12:38:21 +00:00
Jim Blandy 05c2896ac5 * window.c (coordinates_in_window): Do not assume that all
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.
1992-08-29 03:14:44 +00:00
Jim Blandy 2f83aebe09 * window.c (Fset_window_configuration): Removed #if 0'd code which
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.
1992-08-19 06:40:02 +00:00
Jim Blandy 4b206065b9 * 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.
1992-08-14 02:27:26 +00:00
Jim Blandy a481b3ea0c * window.c (MIN_SAFE_WINDOW_HEIGHT, MIN_SAFE_WINDOW_WIDTH): Macros
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.
1992-08-12 14:28:27 +00:00
Jim Blandy 700f75a481 entered into RCS 1992-07-15 03:25:30 +00:00
Jim Blandy 44fa5b1e24 *** empty log message *** 1992-07-14 15:21:18 +00:00
Roland McGrath 35aaf00cff *** empty log message *** 1992-07-02 02:36:29 +00:00
Jim Blandy e5d77022e8 *** empty log message *** 1992-06-30 13:54:21 +00:00
Richard M. Stallman d207b766c8 *** empty log message *** 1992-06-23 21:48:27 +00:00
Jim Blandy 1113d9db4b *** empty log message *** 1992-06-10 03:53:16 +00:00
Richard M. Stallman ab17c3f26e *** empty log message *** 1992-06-03 22:58:36 +00:00
Jim Blandy 3a2712f9be *** empty log message *** 1992-02-21 05:39:59 +00:00
Jim Blandy 95605e15f1 *** empty log message *** 1992-02-12 03:35:14 +00:00
Jim Blandy f8026fd834 *** empty log message *** 1992-01-31 20:02:34 +00:00
Jim Blandy 265a9e559d *** empty log message *** 1992-01-13 21:48:08 +00:00
Jim Blandy d5783c4084 *** empty log message *** 1991-11-15 22:14:20 +00:00
Jim Blandy 1d8d96fa60 *** empty log message *** 1991-07-28 14:50:08 +00:00
Jim Blandy 43bad9918a *** empty log message *** 1991-07-27 06:54:44 +00:00
Jim Blandy 62c07cc72d *** empty log message *** 1991-07-19 16:05:34 +00:00
Jim Blandy 7ab12479e9 Initial revision 1991-05-13 16:00:04 +00:00