Mercurial > hg > xemacs-beta
diff src/select-x.c @ 5922:4b055de36bb9 cygwin
merging heads 2
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Fri, 27 Feb 2015 17:47:15 +0000 |
parents | 2f22818d92d4 |
children | 574f0cded429 |
line wrap: on
line diff
--- a/src/select-x.c Wed Apr 23 22:22:37 2014 +0100 +++ b/src/select-x.c Fri Feb 27 17:47:15 2015 +0000 @@ -1379,9 +1379,8 @@ Display *display = DEVICE_X_DISPLAY (d); Window window = RootWindow (display, 0); /* Cutbuffers are on frame 0 */ Atom cut_buffer_atom; - const Ibyte *data = XSTRING_DATA (string); - Bytecount bytes = XSTRING_LENGTH (string); - Bytecount bytes_remaining; + const Ibyte *data; + Bytecount bytes, bytes_remaining; Bytecount max_bytes = SELECTION_QUANTUM (display); #ifdef MULE const Ibyte *ptr, *end; @@ -1393,7 +1392,10 @@ CHECK_CUTBUFFER (cutbuffer); CHECK_STRING (string); + cut_buffer_atom = symbol_to_x_atom (d, cutbuffer, 0); + data = XSTRING_DATA (string); + bytes = XSTRING_LENGTH (string); if (! cut_buffers_initialized) initialize_cut_buffers (display, window);