Mercurial > emacs
comparison src/xselect.c @ 45985:5be0ff42cd30
(selection_data_to_lisp_data): Disable composition handling.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 24 Jun 2002 00:37:24 +0000 |
parents | 1f957476e757 |
children | 3f111801efb4 |
comparison
equal
deleted
inserted
replaced
45984:f95eb5f690c3 | 45985:5be0ff42cd30 |
---|---|
1644 (Fcheck_coding_system(Vnext_selection_coding_system), &coding); | 1644 (Fcheck_coding_system(Vnext_selection_coding_system), &coding); |
1645 coding.src_multibyte = 0; | 1645 coding.src_multibyte = 0; |
1646 coding.dst_multibyte = 1; | 1646 coding.dst_multibyte = 1; |
1647 Vnext_selection_coding_system = Qnil; | 1647 Vnext_selection_coding_system = Qnil; |
1648 coding.mode |= CODING_MODE_LAST_BLOCK; | 1648 coding.mode |= CODING_MODE_LAST_BLOCK; |
1649 /* We explicitely disable composition handling because | |
1650 selection data should not contain any composition | |
1651 sequence. */ | |
1652 coding.composing = COMPOSITION_DISABLED; | |
1649 bufsize = decoding_buffer_size (&coding, size); | 1653 bufsize = decoding_buffer_size (&coding, size); |
1650 buf = (unsigned char *) xmalloc (bufsize); | 1654 buf = (unsigned char *) xmalloc (bufsize); |
1651 decode_coding (&coding, data, buf, size, bufsize); | 1655 decode_coding (&coding, data, buf, size, bufsize); |
1652 str = make_string_from_bytes ((char *) buf, | 1656 str = make_string_from_bytes ((char *) buf, |
1653 coding.produced_char, coding.produced); | 1657 coding.produced_char, coding.produced); |