diff options
| author | Chong Yidong | 2008-08-20 22:09:56 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-08-20 22:09:56 +0000 |
| commit | 12061f06d772893e57e915091e0d67f93cfd2e97 (patch) | |
| tree | 1a0d50b1d20f811893082dc2c49a199200219417 /src/xselect.c | |
| parent | 1eff4ab33b009e0a5c7bf334338652db315b16ea (diff) | |
| download | emacs-12061f06d772893e57e915091e0d67f93cfd2e97.tar.gz emacs-12061f06d772893e57e915091e0d67f93cfd2e97.zip | |
(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.c | 2 |
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) | |||
| 1471 | if (NILP (XCAR (reading_selection_reply))) | 1471 | if (NILP (XCAR (reading_selection_reply))) |
| 1472 | error ("Timed out waiting for reply from selection owner"); | 1472 | error ("Timed out waiting for reply from selection owner"); |
| 1473 | if (EQ (XCAR (reading_selection_reply), Qlambda)) | 1473 | if (EQ (XCAR (reading_selection_reply), Qlambda)) |
| 1474 | error ("No `%s' selection", SDATA (SYMBOL_NAME (selection_symbol))); | 1474 | return Qnil; |
| 1475 | 1475 | ||
| 1476 | /* Otherwise, the selection is waiting for us on the requested property. */ | 1476 | /* Otherwise, the selection is waiting for us on the requested property. */ |
| 1477 | return | 1477 | return |