Mercurial > emacs
changeset 22749:14bde44d261c
(set_clipboard_data, get_clipboard_data, Fw16_set_clipboard_data,
Fw16_get_clipboard_data, Fx_selection_exists_p): Use CF_OEMTEXT instead
of CF_TEXT.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Mon, 13 Jul 1998 14:29:35 +0000 |
parents | 8d234814a5a6 |
children | b38cb406ed80 |
files | src/w16select.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w16select.c Mon Jul 13 02:11:16 1998 +0000 +++ b/src/w16select.c Mon Jul 13 14:29:35 1998 +0000 @@ -234,11 +234,11 @@ unsigned long xbuf_addr, buf_offset; unsigned char *dp = Data, *dstart = dp; - if (Format != CF_TEXT) + if (Format != CF_OEMTEXT) return 0; /* need to know final size after '\r' chars are inserted (the - standard CF_TEXT clipboard format uses CRLF line endings, + standard CF_OEMTEXT clipboard format uses CRLF line endings, while Emacs uses just LF internally). */ truelen = Size; @@ -327,7 +327,7 @@ unsigned long xbuf_addr; unsigned char *dp = Data; - if (Format != CF_TEXT) + if (Format != CF_OEMTEXT) return 0; if (Size == 0) @@ -476,7 +476,7 @@ goto error; ok = empty_clipboard () - && (ok1 = set_clipboard_data (CF_TEXT, src, nbytes, no_crlf_conversion)); + && (ok1 = set_clipboard_data (CF_OEMTEXT, src, nbytes, no_crlf_conversion)); if (!no_crlf_conversion) Vlast_coding_system_used = Qraw_text; @@ -532,14 +532,14 @@ if (!open_clipboard ()) goto unblock; - if ((data_size = get_clipboard_data_size (CF_TEXT)) == 0 || + if ((data_size = get_clipboard_data_size (CF_OEMTEXT)) == 0 || (htext = (unsigned char *)xmalloc (data_size)) == 0) goto closeclip; /* need to know final size after '\r' chars are removed because we can't change the string size manually, and doing an extra copy is silly */ - if ((truelen = get_clipboard_data (CF_TEXT, htext, data_size, 0)) == 0) + if ((truelen = get_clipboard_data (CF_OEMTEXT, htext, data_size, 0)) == 0) goto closeclip; /* Do we need to decode it? */ @@ -567,7 +567,7 @@ setup_coding_system (Fcheck_coding_system (Vclipboard_coding_system), &coding); coding.mode |= CODING_MODE_LAST_BLOCK; - truelen = get_clipboard_data (CF_TEXT, htext, data_size, 1); + truelen = get_clipboard_data (CF_OEMTEXT, htext, data_size, 1); bufsize = decoding_buffer_size (&coding, truelen); buf = (unsigned char *) xmalloc (bufsize); decode_coding (&coding, htext, buf, truelen, bufsize); @@ -633,7 +633,7 @@ if (open_clipboard ()) { - if (get_clipboard_data_size (CF_TEXT)) + if (get_clipboard_data_size (CF_OEMTEXT)) val = Qt; close_clipboard (); }