diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-17 17:07:52 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-17 17:07:52 -0700 |
commit | 3f22b86fc7d9b66ff3e332b9a56350e93ddbd0aa (patch) | |
tree | cbdad3a66ebab38dba4f41ec3ad861252618b4fd /src/xselect.c | |
parent | 15dbb4d6ba5dea7d3e0f45ab3fd038c2b305a145 (diff) | |
download | emacs-3f22b86fc7d9b66ff3e332b9a56350e93ddbd0aa.tar.gz |
* termhooks.h (TSET): Remove.
Replace all uses with calls to new setter functions.
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
(TERMHOOKS_INLINE): New macro.
(tset_charset_list, tset_selection_alist): New setter functions.
* terminal.c (TERMHOOKS_INLINE):
Define to EXTERN_INLINE, so that the corresponding functions
are compiled into code.
(tset_param_alist): New setter function.
Fixes: debbugs:12215
Diffstat (limited to 'src/xselect.c')
-rw-r--r-- | src/xselect.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/xselect.c b/src/xselect.c index 664b5f92a15..463bd6e37b0 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -353,8 +353,9 @@ x_own_selection (Lisp_Object selection_name, Lisp_Object selection_value, INTEGER_TO_CONS (timestamp), frame); prev_value = LOCAL_SELECTION (selection_name, dpyinfo); - TSET (dpyinfo->terminal, Vselection_alist, - Fcons (selection_data, dpyinfo->terminal->Vselection_alist)); + tset_selection_alist + (dpyinfo->terminal, + Fcons (selection_data, dpyinfo->terminal->Vselection_alist)); /* If we already owned the selection, remove the old selection data. Don't use Fdelq as that may QUIT. */ @@ -989,7 +990,7 @@ x_handle_selection_clear (struct input_event *event) break; } } - TSET (dpyinfo->terminal, Vselection_alist, Vselection_alist); + tset_selection_alist (dpyinfo->terminal, Vselection_alist); /* Run the `x-lost-selection-functions' abnormal hook. */ { @@ -1039,7 +1040,7 @@ x_clear_frame_selections (FRAME_PTR f) args[1] = Fcar (Fcar (t->Vselection_alist)); Frun_hook_with_args (2, args); - TSET (t, Vselection_alist, XCDR (t->Vselection_alist)); + tset_selection_alist (t, XCDR (t->Vselection_alist)); } /* Delete elements after the beginning of Vselection_alist. */ |