]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_get_foreign_selection): Return nil if desired selection could not
authorChong Yidong <cyd@stupidchicken.com>
Wed, 20 Aug 2008 22:09:56 +0000 (22:09 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 20 Aug 2008 22:09:56 +0000 (22:09 +0000)
be obtained, instead of signalling an error.

src/xselect.c

index 50a42e38b86bc63b06fac55dd3c848b697fb03c0..7573be894d8ba8c8b91ed6c284a47fa0ddf9a57d 100644 (file)
@@ -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