aboutsummaryrefslogtreecommitdiffstats
path: root/src/xselect.c
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-09 09:14:23 +0400
committerDmitry Antipov2012-08-09 09:14:23 +0400
commita2752828083a77421efdcd59938eeb21657c39a3 (patch)
tree13a3ddaf12f8794882d552d0f15aa3011a96ef58 /src/xselect.c
parente0cc4efac7f170e81c9b95f1a616c1595442936e (diff)
downloademacs-a2752828083a77421efdcd59938eeb21657c39a3.tar.gz
emacs-a2752828083a77421efdcd59938eeb21657c39a3.zip
Use TSET for write access to Lisp_Object slots of struct terminal.
* termhooks.h (TSET): New macro. * coding.c, terminal.c, xselect.c: Adjust users.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xselect.c b/src/xselect.c
index ff779b91944..664b5f92a15 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -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. */