aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2003-04-06 20:35:06 +0000
committerRichard M. Stallman2003-04-06 20:35:06 +0000
commit4f06187ff25aec873a5f79606f465774562cbd49 (patch)
treea8da297fda7a748ef379c22439920ed1e9150195 /src
parent55a91ea3b58f0bf998f5138b7b61fada48cf25c0 (diff)
downloademacs-4f06187ff25aec873a5f79606f465774562cbd49.tar.gz
emacs-4f06187ff25aec873a5f79606f465774562cbd49.zip
(x_handle_selection_request): Move UNGCPRO to very end.
Diffstat (limited to 'src')
-rw-r--r--src/xselect.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c
index bf1690e909f..5fd2c862cb7 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -425,6 +425,9 @@ x_get_local_selection (selection_symbol, target_type, local_request)
425 425
426 CHECK_SYMBOL (target_type); 426 CHECK_SYMBOL (target_type);
427 handler_fn = Fcdr (Fassq (target_type, Vselection_converter_alist)); 427 handler_fn = Fcdr (Fassq (target_type, Vselection_converter_alist));
428 /* gcpro is not needed here since nothing but HANDLER_FN
429 is live, and that ought to be a symbol. */
430
428 if (!NILP (handler_fn)) 431 if (!NILP (handler_fn))
429 value = call3 (handler_fn, 432 value = call3 (handler_fn,
430 selection_symbol, (local_request ? Qnil : target_type), 433 selection_symbol, (local_request ? Qnil : target_type),
@@ -837,8 +840,6 @@ x_handle_selection_request (event)
837 840
838 DONE: 841 DONE:
839 842
840 UNGCPRO;
841
842 /* Let random lisp code notice that the selection has been asked for. */ 843 /* Let random lisp code notice that the selection has been asked for. */
843 { 844 {
844 Lisp_Object rest; 845 Lisp_Object rest;
@@ -847,6 +848,8 @@ x_handle_selection_request (event)
847 for (; CONSP (rest); rest = Fcdr (rest)) 848 for (; CONSP (rest); rest = Fcdr (rest))
848 call3 (Fcar (rest), selection_symbol, target_symbol, successful_p); 849 call3 (Fcar (rest), selection_symbol, target_symbol, successful_p);
849 } 850 }
851
852 UNGCPRO;
850} 853}
851 854
852/* Handle a SelectionClear event EVENT, which indicates that some 855/* Handle a SelectionClear event EVENT, which indicates that some