1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-04 04:11:58 -07:00

(compare_window_configurations): Signal an error

if parameters C1 or C2 aren't window configurations.
This commit is contained in:
Gerd Moellmann 2000-04-04 21:07:45 +00:00
parent 1ea1fb7e14
commit 4d3edcb4c7

View file

@ -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);