From: Chong Yidong Date: Thu, 26 May 2011 19:20:59 +0000 (-0400) Subject: src/xselect.c (x_handle_selection_request): Fix typo in last change. X-Git-Tag: emacs-pretest-24.0.90~104^2~618^2~150 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=757c92750c8a9f1c1b69437f19afe62e5f31d9ce;p=emacs.git src/xselect.c (x_handle_selection_request): Fix typo in last change. --- diff --git a/src/xselect.c b/src/xselect.c index 4c9a402e36e..15eb22c5d6f 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -811,10 +811,6 @@ x_handle_selection_request (struct input_event *event) int success = 0; int count = SPECPDL_INDEX (); - TRACE2 ("x_handle_selection_request, from=0x%08lx time=%lu", - (unsigned long) SELECTION_EVENT_REQUESTOR (event), - (unsigned long) SELECTION_EVENT_TIME (event)); - GCPRO2 (local_selection_data, target_symbol); /* Decline if we don't own any selections. */ @@ -836,6 +832,10 @@ x_handle_selection_request (struct input_event *event) x_start_queuing_selection_requests (); record_unwind_protect (queue_selection_requests_unwind, Qnil); + TRACE2 ("x_handle_selection_request: selection=%s, target=%s", + SDATA (SYMBOL_NAME (selection_symbol)), + SDATA (SYMBOL_NAME (target_symbol))); + if (EQ (target_symbol, QMULTIPLE)) { /* For MULTIPLE targets, the event property names a list of atom @@ -849,7 +849,7 @@ x_handle_selection_request (struct input_event *event) multprop = x_get_window_property_as_lisp_data (display, requestor, property, QMULTIPLE, selection); - if (!VECTORP (multprop) || !(ASIZE (multprop) % 2)) + if (!VECTORP (multprop) || ASIZE (multprop) % 2) goto DONE; nselections = ASIZE (multprop) / 2;