aboutsummaryrefslogtreecommitdiffstats
path: root/src/xselect.c
diff options
context:
space:
mode:
authorJoakim Verona2012-08-15 21:49:40 +0200
committerJoakim Verona2012-08-15 21:49:40 +0200
commitb648c26ec642a1dc58c0bd7e59d6011b964dbe37 (patch)
treef0f3b38ffa9054702f475fc53622e28da14f97b1 /src/xselect.c
parentc8b0fc1999006af5a4317b44068fac13d9592143 (diff)
parent94c9ece10275f8ca9323c38f93607f1046035c79 (diff)
downloademacs-b648c26ec642a1dc58c0bd7e59d6011b964dbe37.tar.gz
emacs-b648c26ec642a1dc58c0bd7e59d6011b964dbe37.zip
upstream
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/xselect.c b/src/xselect.c
index e2da561e953..664b5f92a15 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -216,7 +216,7 @@ x_stop_queuing_selection_requests (void)
216 TRACE1 ("RESTORE SELECTION EVENT %p", queue_tmp); 216 TRACE1 ("RESTORE SELECTION EVENT %p", queue_tmp);
217 kbd_buffer_unget_event (&queue_tmp->event); 217 kbd_buffer_unget_event (&queue_tmp->event);
218 selection_queue = queue_tmp->next; 218 selection_queue = queue_tmp->next;
219 xfree ((char *)queue_tmp); 219 xfree (queue_tmp);
220 } 220 }
221} 221}
222 222
@@ -353,8 +353,8 @@ x_own_selection (Lisp_Object selection_name, Lisp_Object selection_value,
353 INTEGER_TO_CONS (timestamp), frame); 353 INTEGER_TO_CONS (timestamp), frame);
354 prev_value = LOCAL_SELECTION (selection_name, dpyinfo); 354 prev_value = LOCAL_SELECTION (selection_name, dpyinfo);
355 355
356 dpyinfo->terminal->Vselection_alist 356 TSET (dpyinfo->terminal, Vselection_alist,
357 = Fcons (selection_data, dpyinfo->terminal->Vselection_alist); 357 Fcons (selection_data, dpyinfo->terminal->Vselection_alist));
358 358
359 /* If we already owned the selection, remove the old selection 359 /* If we already owned the selection, remove the old selection
360 data. Don't use Fdelq as that may QUIT. */ 360 data. Don't use Fdelq as that may QUIT. */
@@ -989,7 +989,7 @@ x_handle_selection_clear (struct input_event *event)
989 break; 989 break;
990 } 990 }
991 } 991 }
992 dpyinfo->terminal->Vselection_alist = Vselection_alist; 992 TSET (dpyinfo->terminal, Vselection_alist, Vselection_alist);
993 993
994 /* Run the `x-lost-selection-functions' abnormal hook. */ 994 /* Run the `x-lost-selection-functions' abnormal hook. */
995 { 995 {
@@ -1039,7 +1039,7 @@ x_clear_frame_selections (FRAME_PTR f)
1039 args[1] = Fcar (Fcar (t->Vselection_alist)); 1039 args[1] = Fcar (Fcar (t->Vselection_alist));
1040 Frun_hook_with_args (2, args); 1040 Frun_hook_with_args (2, args);
1041 1041
1042 t->Vselection_alist = XCDR (t->Vselection_alist); 1042 TSET (t, Vselection_alist, XCDR (t->Vselection_alist));
1043 } 1043 }
1044 1044
1045 /* Delete elements after the beginning of Vselection_alist. */ 1045 /* Delete elements after the beginning of Vselection_alist. */
@@ -1321,7 +1321,7 @@ x_get_window_property (Display *display, Window window, Atom property,
1321 goto done; 1321 goto done;
1322 1322
1323 /* This was allocated by Xlib, so use XFree. */ 1323 /* This was allocated by Xlib, so use XFree. */
1324 XFree ((char *) tmp_data); 1324 XFree (tmp_data);
1325 1325
1326 if (*actual_type_ret == None || *actual_format_ret == 0) 1326 if (*actual_type_ret == None || *actual_format_ret == 0)
1327 goto done; 1327 goto done;
@@ -1403,7 +1403,7 @@ x_get_window_property (Display *display, Window window, Atom property,
1403 offset += bytes_gotten; 1403 offset += bytes_gotten;
1404 1404
1405 /* This was allocated by Xlib, so use XFree. */ 1405 /* This was allocated by Xlib, so use XFree. */
1406 XFree ((char *) tmp_data); 1406 XFree (tmp_data);
1407 } 1407 }
1408 1408
1409 XFlush (display); 1409 XFlush (display);
@@ -1568,7 +1568,7 @@ x_get_window_property_as_lisp_data (Display *display, Window window,
1568 BLOCK_INPUT; 1568 BLOCK_INPUT;
1569 /* Use xfree, not XFree, because x_get_window_property 1569 /* Use xfree, not XFree, because x_get_window_property
1570 calls xmalloc itself. */ 1570 calls xmalloc itself. */
1571 xfree ((char *) data); 1571 xfree (data);
1572 UNBLOCK_INPUT; 1572 UNBLOCK_INPUT;
1573 receive_incremental_selection (display, window, property, target_type, 1573 receive_incremental_selection (display, window, property, target_type,
1574 min_size_bytes, &data, &bytes, 1574 min_size_bytes, &data, &bytes,
@@ -1589,7 +1589,7 @@ x_get_window_property_as_lisp_data (Display *display, Window window,
1589 1589
1590 /* Use xfree, not XFree, because x_get_window_property 1590 /* Use xfree, not XFree, because x_get_window_property
1591 calls xmalloc itself. */ 1591 calls xmalloc itself. */
1592 xfree ((char *) data); 1592 xfree (data);
1593 return val; 1593 return val;
1594} 1594}
1595 1595