Commit ff06df24 authored by Jim Blandy's avatar Jim Blandy

* 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'.
parent bdc727bf
......@@ -2305,7 +2305,14 @@ struct save_window_data
/* A vector, interpreted as a struct saved_window */
Lisp_Object saved_windows;
#define SAVE_WINDOW_DATA_SIZE 7 /* Arg to Fmake_vector */
/* Arg to Fmake_vector */
((sizeof (struct save_window_data) \
- (sizeof (struct Lisp_Vector) \
/* Don't count the contents member of the struct Lisp_Vector */ \
- sizeof (Lisp_Object))) \
/ sizeof (Lisp_Object))
/* This is saved as a Lisp_Vector */
struct saved_window
......@@ -2494,7 +2501,7 @@ by `current-window-configuration' (which see).")
selected window too, but that doesn't make the call to
Fselect_window above totally superfluous; it still sets f's
selected window. */
Fselect_frame (d->selected_frame);
Fselect_frame (data->selected_frame);
if (!NILP (new_current_buffer))
Fset_buffer (new_current_buffer);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment