summaryrefslogtreecommitdiff
path: root/src/xselect.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-02-14 21:40:43 +0000
committerKarl Heuer <kwzh@gnu.org>1994-02-14 21:40:43 +0000
commitfc4b82be005e935bbb00b4deb3e6c5dc467cbcc0 (patch)
tree0f34f713812550f44aed731ae3111ad39a6617bb /src/xselect.c
parent907cfff2d9f8f84f2a13e3b41ce7d842d6284c86 (diff)
downloademacs-fc4b82be005e935bbb00b4deb3e6c5dc467cbcc0.tar.gz
(x-own-selection-internal, x-get-selection-internal,
x-disown-selection-internal, x-selection-owner-p, x-selection-exists-p, x-get-cut-buffer-internal, x-store-cut-buffer-internal, x-rotate-cut-buffers-internal): call check_x.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xselect.c b/src/xselect.c
index 943f21d094c..c2da7b0655b 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1577,6 +1577,7 @@ anything that the functions on `selection-converter-alist' know about.")
(selection_name, selection_value)
Lisp_Object selection_name, selection_value;
{
+ check_x ();
CHECK_SYMBOL (selection_name, 0);
if (NILP (selection_value)) error ("selection-value may not be nil.");
x_own_selection (selection_name, selection_value);
@@ -1600,6 +1601,7 @@ TYPE is the type of data desired, typically `STRING'.")
Lisp_Object val = Qnil;
struct gcpro gcpro1, gcpro2;
GCPRO2 (target_type, val); /* we store newly consed data into these */
+ check_x ();
CHECK_SYMBOL (selection_symbol, 0);
#if 0 /* #### MULTIPLE doesn't work yet */
@@ -1648,6 +1650,7 @@ Disowning it means there is no such selection.")
Atom selection_atom;
XSelectionClearEvent event;
+ check_x ();
CHECK_SYMBOL (selection, 0);
if (NILP (time))
timestamp = last_event_timestamp;
@@ -1708,6 +1711,7 @@ and t is the same as `SECONDARY'.)")
(selection)
Lisp_Object selection;
{
+ check_x ();
CHECK_SYMBOL (selection, 0);
if (EQ (selection, Qnil)) selection = QPRIMARY;
if (EQ (selection, Qt)) selection = QSECONDARY;
@@ -1731,6 +1735,7 @@ and t is the same as `SECONDARY'.)")
Window owner;
Atom atom;
Display *dpy = x_current_display;
+ check_x ();
CHECK_SYMBOL (selection, 0);
if (!NILP (Fx_selection_owner_p (selection)))
return Qt;
@@ -1801,6 +1806,7 @@ DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal,
unsigned long size;
Lisp_Object ret;
+ check_x ();
CHECK_CUT_BUFFER (buffer, 0);
buffer_atom = symbol_to_x_atom (display, buffer);
@@ -1835,6 +1841,7 @@ DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal,
int max_bytes = SELECTION_QUANTUM (display);
if (max_bytes > MAX_SELECTION_QUANTUM) max_bytes = MAX_SELECTION_QUANTUM;
+ check_x ();
CHECK_CUT_BUFFER (buffer, 0);
CHECK_STRING (string, 0);
buffer_atom = symbol_to_x_atom (display, buffer);
@@ -1879,6 +1886,7 @@ positive means move values forward, negative means backward.")
Window window = RootWindow (display, 0); /* Cut buffers are on screen 0 */
Atom props [8];
+ check_x ();
CHECK_NUMBER (n, 0);
if (XINT (n) == 0) return n;
if (! cut_buffers_initialized) initialize_cut_buffers (display, window);