Mercurial > emacs
diff src/w32select.c @ 22745:ef9607e709bc
(Fw32_set_clipboard_data): Set Vlast_coding_system_used.
(Fw32_get_clipboard_data): Likewise.
| author | Andrew Innes <andrewi@gnu.org> |
|---|---|
| date | Sun, 12 Jul 1998 20:24:23 +0000 |
| parents | 5d3f50b4c8d2 |
| children | 4d4e775cf6f7 |
line wrap: on
line diff
--- a/src/w32select.c Sun Jul 12 19:13:45 1998 +0000 +++ b/src/w32select.c Sun Jul 12 20:24:23 1998 +0000 @@ -168,6 +168,8 @@ } GlobalUnlock (htext); + + Vlast_coding_system_used = Qraw_text; } else { @@ -188,6 +190,7 @@ if ((dst = (unsigned char *) GlobalLock (htext)) == NULL) goto error; encode_coding (&coding, src, dst, nbytes, bufsize); + Vlast_coding_system_used = coding.symbol; GlobalUnlock (htext); /* Shrink data block to actual size. */ htext2 = GlobalReAlloc (htext, coding.produced, GMEM_MOVEABLE | GMEM_DDESHARE); @@ -257,6 +260,7 @@ bufsize = decoding_buffer_size (&coding, nbytes); buf = (unsigned char *) xmalloc (bufsize); decode_coding (&coding, src, buf, nbytes, bufsize); + Vlast_coding_system_used = coding.symbol; truelen = (coding.fake_multibyte ? multibyte_chars_in_text (buf, coding.produced) : coding.produced_char); @@ -301,6 +305,8 @@ /* copied remaining partial line -> now finished */ break; } + + Vlast_coding_system_used = Qraw_text; } GlobalUnlock (htext);
