Mercurial > emacs
changeset 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 | 6271a23dda53 |
children | 784301c18c40 |
files | src/xselect.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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