aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-24 21:59:55 +0000
committerRichard M. Stallman1994-10-24 21:59:55 +0000
commitb8c70430de7dada8e7e18c4f56fd983cb9f25d41 (patch)
treed95b2d34c45458a3cf18a5a9f35d00328f01d9dd /src
parent2b5de6158ed26a484c895e2e4daa93a30f06fa36 (diff)
downloademacs-b8c70430de7dada8e7e18c4f56fd983cb9f25d41.tar.gz
emacs-b8c70430de7dada8e7e18c4f56fd983cb9f25d41.zip
(Fx_selection_exists_p): If selected_frame isn't an x frame, return nil.
Diffstat (limited to 'src')
-rw-r--r--src/xselect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xselect.c b/src/xselect.c
index b34686c20f8..282bfa8ffaf 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1814,7 +1814,10 @@ and t is the same as `SECONDARY'.)")
1814 Atom atom; 1814 Atom atom;
1815 Display *dpy; 1815 Display *dpy;
1816 1816
1817 check_x (); 1817 /* It should be safe to call this before we have an X frame. */
1818 if (FRAME_X_P (selected_frame))
1819 return Qnil;
1820
1818 dpy = FRAME_X_DISPLAY (selected_frame); 1821 dpy = FRAME_X_DISPLAY (selected_frame);
1819 CHECK_SYMBOL (selection, 0); 1822 CHECK_SYMBOL (selection, 0);
1820 if (!NILP (Fx_selection_owner_p (selection))) 1823 if (!NILP (Fx_selection_owner_p (selection)))