diff options
author | Jim Blandy <[email protected]> | 1992-10-03 07:15:35 +0000 |
---|---|---|
committer | Jim Blandy <[email protected]> | 1992-10-03 07:15:35 +0000 |
commit | ff06df24f66c15bf1649072427414f8f190226ec (patch) | |
tree | 16f12f9b15d37f296f716a84940c013f9deeeda6 /src | |
parent | bdc727bf41bcee3312d92c921d89ca31d2d6060c (diff) |
* 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'.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 71881ee4d4..958927d79c 100644 --- a/src/window.c +++ b/src/window.c @@ -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 */ +#define SAVE_WINDOW_DATA_SIZE \ + ((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); |