diff src/xselect.c @ 97575:f188167016d0

(x_get_foreign_selection): Return nil if desired selection could not be obtained, instead of signalling an error.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 20 Aug 2008 22:09:56 +0000
parents 840bd675fd85
children 69913c2322d0
line wrap: on
line diff
--- a/src/xselect.c	Wed Aug 20 22:09:40 2008 +0000
+++ b/src/xselect.c	Wed Aug 20 22:09:56 2008 +0000
@@ -1471,7 +1471,7 @@
   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