Mercurial > emacs
changeset 7303:a4f8f33135e7
(x_own_selection): Catch errors around XSetSelectionOwner.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 04 May 1994 00:46:39 +0000 |
parents | 1d9c6f42c7ae |
children | cccf1cbf8944 |
files | src/xselect.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xselect.c Wed May 04 00:38:14 1994 +0000 +++ b/src/xselect.c Wed May 04 00:46:39 1994 +0000 @@ -249,7 +249,10 @@ 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 */