aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2000-04-04 21:07:45 +0000
committerGerd Moellmann <[email protected]>2000-04-04 21:07:45 +0000
commit4d3edcb4c751613c7f0986924db91a1cf9290292 (patch)
treecc5062553f3f8c083c19776a0d9ab4bdb6ae7605 /src
parent1ea1fb7e14fe150681298a9d4ec85c4bb80d0b0e (diff)
(compare_window_configurations): Signal an error
if parameters C1 or C2 aren't window configurations.
Diffstat (limited to 'src')
-rw-r--r--src/window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 8e643ee5c7..f156c46970 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5081,6 +5081,11 @@ compare_window_configurations (c1, c2, ignore_positions)
struct Lisp_Vector *sw1, *sw2;
int i;
+ if (!WINDOW_CONFIGURATIONP (c1))
+ wrong_type_argument (Qwindow_configuration_p, c1);
+ if (!WINDOW_CONFIGURATIONP (c2))
+ wrong_type_argument (Qwindow_configuration_p, c2);
+
d1 = (struct save_window_data *) XVECTOR (c1);
d2 = (struct save_window_data *) XVECTOR (c2);
sw1 = XVECTOR (d1->saved_windows);