# HG changeset patch # User Eli Zaretskii # Date 900340175 0 # Node ID 14bde44d261ce0a1c04e1be0e2b3804b08a50d77 # Parent 8d234814a5a6f601e4f0a329b1d7da4d66ebb5ae (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. diff -r 8d234814a5a6 -r 14bde44d261c src/w16select.c --- 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 (); }