# HG changeset patch # User Eli Zaretskii # Date 1022866952 0 # Node ID 09ecca30779fcb435b061f7cb5e3c2efb607a036 # Parent b5294e5e5b92604dda297a3c83472dde8e97ad07 (lisp_data_to_selection_data): Always set selection type as string if x_encode_text returns streingp non-NULL. diff -r b5294e5e5b92 -r 09ecca30779f src/xselect.c --- a/src/xselect.c Fri May 31 16:31:51 2002 +0000 +++ b/src/xselect.c Fri May 31 17:42:32 2002 +0000 @@ -1766,15 +1766,7 @@ (int *) size_ret, &stringp); *nofree_ret = (*data_ret == XSTRING (obj)->data); if (NILP (type)) - { - if (stringp && *nofree_ret) - type = QSTRING; - else if (EQ (Vnext_selection_coding_system, - Qcompound_text_with_extensions)) - type = QCOMPOUND_TEXT; - else - type = (stringp ? QSTRING : QCOMPOUND_TEXT); - } + type = (stringp ? QSTRING : QCOMPOUND_TEXT); Vlast_coding_system_used = (*nofree_ret ? Qraw_text : Vnext_selection_coding_system);