aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2002-05-31 17:42:32 +0000
committerEli Zaretskii <[email protected]>2002-05-31 17:42:32 +0000
commitf326600bb8c4e888ae3dea678c8324c3f5addea4 (patch)
tree2f2e37ed2082878ea0caae8af177b86b5c3a7594
parent420a345c0fe6c9911fcdc9925ae769986a0f2a4e (diff)
(lisp_data_to_selection_data): Always set selection
type as string if x_encode_text returns streingp non-NULL.
-rw-r--r--src/xselect.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/xselect.c b/src/xselect.c
index a92943c538..28b3338757 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1766,15 +1766,7 @@ lisp_data_to_selection_data (display, obj,
(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);