mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-13 03:06:23 -08:00
(x_get_local_selection): If no conversion function
exists for the requested type, just return nil.
This commit is contained in:
parent
a6c87ac86c
commit
1eb4d468b5
1 changed files with 6 additions and 7 deletions
|
|
@ -357,13 +357,12 @@ x_get_local_selection (selection_symbol, target_type)
|
|||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue