diff options
author | Karl Heuer <kwzh@gnu.org> | 1994-03-25 00:42:33 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1994-03-25 00:42:33 +0000 |
commit | 9d2d1dd88ccc5efb63754d47bee26df61067bab5 (patch) | |
tree | 0b8525ff73303b8ef12dd65e4e658e97fbd3b555 /src/xselect.c | |
parent | 9838119052cfea1f831bb700c2f7ca90ce7f9817 (diff) | |
download | emacs-9d2d1dd88ccc5efb63754d47bee26df61067bab5.tar.gz |
(x_get_local_selection, x_handle_selection_request): Use assignment, not
initialization.
Diffstat (limited to 'src/xselect.c')
-rw-r--r-- | src/xselect.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/src/xselect.c b/src/xselect.c index c2da7b0655b..c56402e182f 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -323,9 +323,11 @@ x_get_local_selection (selection_symbol, target_type) else if (CONSP (target_type) && XCONS (target_type)->car == QMULTIPLE) { - Lisp_Object pairs = XCONS (target_type)->cdr; - int size = XVECTOR (pairs)->size; + Lisp_Object pairs; + int size; int i; + pairs = XCONS (target_type)->cdr; + size = XVECTOR (pairs)->size; /* If the target is MULTIPLE, then target_type looks like (MULTIPLE . [[SELECTION1 TARGET1] [SELECTION2 TARGET2] ... ]) We modify the second element of each pair in the vector and @@ -333,7 +335,8 @@ x_get_local_selection (selection_symbol, target_type) */ for (i = 0; i < size; i++) { - Lisp_Object pair = XVECTOR (pairs)->contents [i]; + Lisp_Object pair; + pair = XVECTOR (pairs)->contents [i]; XVECTOR (pair)->contents [1] = x_get_local_selection (XVECTOR (pair)->contents [0], XVECTOR (pair)->contents [1]); @@ -594,14 +597,19 @@ x_handle_selection_request (event) struct input_event *event; { struct gcpro gcpro1, gcpro2, gcpro3; - Lisp_Object local_selection_data = Qnil; + Lisp_Object local_selection_data; Lisp_Object selection_symbol; - Lisp_Object target_symbol = Qnil; - Lisp_Object converted_selection = Qnil; + Lisp_Object target_symbol; + Lisp_Object converted_selection; Time local_selection_time; - Lisp_Object successful_p = Qnil; + Lisp_Object successful_p; int count; + local_selection_data = Qnil; + target_symbol = Qnil; + converted_selection = Qnil; + successful_p = Qnil; + GCPRO3 (local_selection_data, converted_selection, target_symbol); selection_symbol = x_atom_to_symbol (SELECTION_EVENT_DISPLAY (event), @@ -676,7 +684,8 @@ x_handle_selection_request (event) /* Let random lisp code notice that the selection has been asked for. */ { - Lisp_Object rest = Vx_sent_selection_hooks; + Lisp_Object rest; + rest = Vx_sent_selection_hooks; if (!EQ (rest, Qunbound)) for (; CONSP (rest); rest = Fcdr (rest)) call3 (Fcar (rest), selection_symbol, target_symbol, successful_p); |