aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Innes1998-07-12 20:24:23 +0000
committerAndrew Innes1998-07-12 20:24:23 +0000
commit0108f679e4334ee197cb0605cf0ad0fe23bd9c04 (patch)
tree920e0e0300eaef51267f055f51a17619e13b9f95 /src
parent0469366f994d3c03006c30262408379e416a03d4 (diff)
downloademacs-0108f679e4334ee197cb0605cf0ad0fe23bd9c04.tar.gz
emacs-0108f679e4334ee197cb0605cf0ad0fe23bd9c04.zip
(Fw32_set_clipboard_data): Set Vlast_coding_system_used.
(Fw32_get_clipboard_data): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/w32select.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/w32select.c b/src/w32select.c
index 883a6292183..7248559c38f 100644
--- a/src/w32select.c
+++ b/src/w32select.c
@@ -168,6 +168,8 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, Sw32_set_clipboard_dat
168 } 168 }
169 169
170 GlobalUnlock (htext); 170 GlobalUnlock (htext);
171
172 Vlast_coding_system_used = Qraw_text;
171 } 173 }
172 else 174 else
173 { 175 {
@@ -188,6 +190,7 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, Sw32_set_clipboard_dat
188 if ((dst = (unsigned char *) GlobalLock (htext)) == NULL) 190 if ((dst = (unsigned char *) GlobalLock (htext)) == NULL)
189 goto error; 191 goto error;
190 encode_coding (&coding, src, dst, nbytes, bufsize); 192 encode_coding (&coding, src, dst, nbytes, bufsize);
193 Vlast_coding_system_used = coding.symbol;
191 GlobalUnlock (htext); 194 GlobalUnlock (htext);
192 /* Shrink data block to actual size. */ 195 /* Shrink data block to actual size. */
193 htext2 = GlobalReAlloc (htext, coding.produced, GMEM_MOVEABLE | GMEM_DDESHARE); 196 htext2 = GlobalReAlloc (htext, coding.produced, GMEM_MOVEABLE | GMEM_DDESHARE);
@@ -257,6 +260,7 @@ DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, Sw32_get_clipboard_dat
257 bufsize = decoding_buffer_size (&coding, nbytes); 260 bufsize = decoding_buffer_size (&coding, nbytes);
258 buf = (unsigned char *) xmalloc (bufsize); 261 buf = (unsigned char *) xmalloc (bufsize);
259 decode_coding (&coding, src, buf, nbytes, bufsize); 262 decode_coding (&coding, src, buf, nbytes, bufsize);
263 Vlast_coding_system_used = coding.symbol;
260 truelen = (coding.fake_multibyte 264 truelen = (coding.fake_multibyte
261 ? multibyte_chars_in_text (buf, coding.produced) 265 ? multibyte_chars_in_text (buf, coding.produced)
262 : coding.produced_char); 266 : coding.produced_char);
@@ -301,6 +305,8 @@ DEFUN ("w32-get-clipboard-data", Fw32_get_clipboard_data, Sw32_get_clipboard_dat
301 /* copied remaining partial line -> now finished */ 305 /* copied remaining partial line -> now finished */
302 break; 306 break;
303 } 307 }
308
309 Vlast_coding_system_used = Qraw_text;
304 } 310 }
305 311
306 GlobalUnlock (htext); 312 GlobalUnlock (htext);