# HG changeset patch # User Richard M. Stallman # Date 783035995 0 # Node ID 14a8113d8a8b98043f8b63484ef63810d482b455 # Parent 363a1bef4ddb3f13adfd66f23b59d7ce87e7daae (Fx_selection_exists_p): If selected_frame isn't an x frame, return nil. diff -r 363a1bef4ddb -r 14a8113d8a8b src/xselect.c --- a/src/xselect.c Mon Oct 24 15:34:50 1994 +0000 +++ b/src/xselect.c Mon Oct 24 21:59:55 1994 +0000 @@ -1814,7 +1814,10 @@ Atom atom; Display *dpy; - check_x (); + /* It should be safe to call this before we have an X frame. */ + if (FRAME_X_P (selected_frame)) + return Qnil; + dpy = FRAME_X_DISPLAY (selected_frame); CHECK_SYMBOL (selection, 0); if (!NILP (Fx_selection_owner_p (selection)))