summaryrefslogtreecommitdiff
path: root/src/xselect.c
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2008-08-20 22:09:56 +0000
committerChong Yidong <cyd@stupidchicken.com>2008-08-20 22:09:56 +0000
commit9d8e09a32438e1a2b63fabafda8e22a2935dced1 (patch)
treee4b19235b110e58fc19e3ad8b616963c2a858133 /src/xselect.c
parent69b00d2f60bc1123a9cf80d5483ecfd151a9b1cd (diff)
downloademacs-9d8e09a32438e1a2b63fabafda8e22a2935dced1.tar.gz
(x_get_foreign_selection): Return nil if desired selection could not
be obtained, instead of signalling an error.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xselect.c b/src/xselect.c
index 50a42e38b86..7573be894d8 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1471,7 +1471,7 @@ x_get_foreign_selection (selection_symbol, target_type, time_stamp)
if (NILP (XCAR (reading_selection_reply)))
error ("Timed out waiting for reply from selection owner");
if (EQ (XCAR (reading_selection_reply), Qlambda))
- error ("No `%s' selection", SDATA (SYMBOL_NAME (selection_symbol)));
+ return Qnil;
/* Otherwise, the selection is waiting for us on the requested property. */
return