From: Richard M. Stallman Date: Wed, 4 May 1994 00:46:39 +0000 (+0000) Subject: (x_own_selection): Catch errors around XSetSelectionOwner. X-Git-Tag: emacs-19.34~8550 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c650d108f1497756ffde2297822e98bda3272606;p=emacs.git (x_own_selection): Catch errors around XSetSelectionOwner. --- diff --git a/src/xselect.c b/src/xselect.c index ef3a78d694d..bd5b979d257 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -249,7 +249,10 @@ x_own_selection (selection_name, selection_value) selection_atom = symbol_to_x_atom (display, selection_name); BLOCK_INPUT; + x_catch_errors (); XSetSelectionOwner (display, selection_atom, selecting_window, time); + x_check_errors ("Can't set selection: %s"); + x_uncatch_errors (); UNBLOCK_INPUT; /* Now update the local cache */