Mercurial > emacs
changeset 3166:419d3bf1cb2b
(x_get_local_selection): If no conversion function
exists for the requested type, just return nil.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 27 May 1993 04:01:13 +0000 |
parents | 6b47ab3b2a88 |
children | e4bcdaa214b1 |
files | src/xselect.c |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xselect.c Thu May 27 03:56:12 1993 +0000 +++ b/src/xselect.c Thu May 27 04:01:13 1993 +0000 @@ -357,13 +357,12 @@ CHECK_SYMBOL (target_type, 0); handler_fn = Fcdr (Fassq (target_type, Vselection_converter_alist)); - if (NILP (handler_fn)) - Fsignal (Qerror, - Fcons (build_string ("missing selection-conversion function"), - Fcons (target_type, Fcons (value, Qnil)))); - value = call3 (handler_fn, - selection_symbol, target_type, - XCONS (XCONS (local_value)->cdr)->car); + if (!NILP (handler_fn)) + value = call3 (handler_fn, + selection_symbol, target_type, + XCONS (XCONS (local_value)->cdr)->car); + else + value = Qnil; unbind_to (count, Qnil); }