diff options
| author | Karl Heuer | 1995-03-31 03:40:01 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-03-31 03:40:01 +0000 |
| commit | 04649dbcaf356a489d09031867f32476f2f3cced (patch) | |
| tree | 48facc16559ac4b57f6a3b4d2e62093f3a2aad11 /src/xselect.c | |
| parent | 108aa1b5f05b036d9bd0926fd820e89c44fc92e7 (diff) | |
| download | emacs-04649dbcaf356a489d09031867f32476f2f3cced.tar.gz emacs-04649dbcaf356a489d09031867f32476f2f3cced.zip | |
(Fx_store_cut_buffer_internal): Use the flag in the
frame's x_display_info, not a global flag.
(Fx_rotate_cut_buffers_internal): Likewise.
Diffstat (limited to 'src/xselect.c')
| -rw-r--r-- | src/xselect.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/xselect.c b/src/xselect.c index f8f12cbbeeb..50c752bae0b 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -1902,8 +1902,6 @@ and t is the same as `SECONDARY'.)") | |||
| 1902 | 1902 | ||
| 1903 | #ifdef CUT_BUFFER_SUPPORT | 1903 | #ifdef CUT_BUFFER_SUPPORT |
| 1904 | 1904 | ||
| 1905 | static int cut_buffers_initialized; /* Whether we're sure they all exist */ | ||
| 1906 | |||
| 1907 | /* Ensure that all 8 cut buffers exist. ICCCM says we gotta... */ | 1905 | /* Ensure that all 8 cut buffers exist. ICCCM says we gotta... */ |
| 1908 | static void | 1906 | static void |
| 1909 | initialize_cut_buffers (display, window) | 1907 | initialize_cut_buffers (display, window) |
| @@ -1924,7 +1922,6 @@ initialize_cut_buffers (display, window) | |||
| 1924 | FROB (XA_CUT_BUFFER7); | 1922 | FROB (XA_CUT_BUFFER7); |
| 1925 | #undef FROB | 1923 | #undef FROB |
| 1926 | UNBLOCK_INPUT; | 1924 | UNBLOCK_INPUT; |
| 1927 | cut_buffers_initialized = 1; | ||
| 1928 | } | 1925 | } |
| 1929 | 1926 | ||
| 1930 | 1927 | ||
| @@ -2009,7 +2006,11 @@ DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal, | |||
| 2009 | bytes = XSTRING (string)->size; | 2006 | bytes = XSTRING (string)->size; |
| 2010 | bytes_remaining = bytes; | 2007 | bytes_remaining = bytes; |
| 2011 | 2008 | ||
| 2012 | if (! cut_buffers_initialized) initialize_cut_buffers (display, window); | 2009 | if (! FRAME_X_DISPLAY_INFO (selected_frame)->cut_buffers_initialized) |
| 2010 | { | ||
| 2011 | initialize_cut_buffers (display, window); | ||
| 2012 | FRAME_X_DISPLAY_INFO (selected_frame)->cut_buffers_initialized = 1; | ||
| 2013 | } | ||
| 2013 | 2014 | ||
| 2014 | BLOCK_INPUT; | 2015 | BLOCK_INPUT; |
| 2015 | 2016 | ||
| @@ -2052,8 +2053,11 @@ positive means move values forward, negative means backward.") | |||
| 2052 | CHECK_NUMBER (n, 0); | 2053 | CHECK_NUMBER (n, 0); |
| 2053 | if (XINT (n) == 0) | 2054 | if (XINT (n) == 0) |
| 2054 | return n; | 2055 | return n; |
| 2055 | if (! cut_buffers_initialized) | 2056 | if (! FRAME_X_DISPLAY_INFO (selected_frame)->cut_buffers_initialized) |
| 2056 | initialize_cut_buffers (display, window); | 2057 | { |
| 2058 | initialize_cut_buffers (display, window); | ||
| 2059 | FRAME_X_DISPLAY_INFO (selected_frame)->cut_buffers_initialized = 1; | ||
| 2060 | } | ||
| 2057 | 2061 | ||
| 2058 | props[0] = XA_CUT_BUFFER0; | 2062 | props[0] = XA_CUT_BUFFER0; |
| 2059 | props[1] = XA_CUT_BUFFER1; | 2063 | props[1] = XA_CUT_BUFFER1; |
| @@ -2084,7 +2088,6 @@ syms_of_xselect () | |||
| 2084 | defsubr (&Sx_get_cut_buffer_internal); | 2088 | defsubr (&Sx_get_cut_buffer_internal); |
| 2085 | defsubr (&Sx_store_cut_buffer_internal); | 2089 | defsubr (&Sx_store_cut_buffer_internal); |
| 2086 | defsubr (&Sx_rotate_cut_buffers_internal); | 2090 | defsubr (&Sx_rotate_cut_buffers_internal); |
| 2087 | cut_buffers_initialized = 0; | ||
| 2088 | #endif | 2091 | #endif |
| 2089 | 2092 | ||
| 2090 | reading_selection_reply = Fcons (Qnil, Qnil); | 2093 | reading_selection_reply = Fcons (Qnil, Qnil); |