aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPaul Eggert2012-08-17 16:38:43 -0700
committerPaul Eggert2012-08-17 16:38:43 -0700
commit15dbb4d6ba5dea7d3e0f45ab3fd038c2b305a145 (patch)
tree2b8f35fcfd05d43551b873d4390264768f099dfb /src/xterm.c
parentf00af5b1c24515f20f96cfd8d59983ab62fb3f25 (diff)
downloademacs-15dbb4d6ba5dea7d3e0f45ab3fd038c2b305a145.tar.gz
emacs-15dbb4d6ba5dea7d3e0f45ab3fd038c2b305a145.zip
* keyboard.h (KSET): Remove.
Replace all uses with calls to new setter functions. Use INLINE_HEADER_BEGIN, INLINE_HEADER_END. (KEYBOARD_INLINE): New macro. (kset_default_minibuffer_frame, kset_defining_kbd_macro) (kset_input_decode_map, kset_last_command, kset_last_kbd_macro) (kset_prefix_arg, kset_system_key_alist, kset_window_system): New setter functions. * keyboard.c (KEYBOARD_INLINE): Define to EXTERN_INLINE, so that the corresponding functions are compiled into code. (kset_echo_string, kset_kbd_queue) (kset_keyboard_translate_table, kset_last_prefix_arg) (kset_last_repeatable_command, kset_local_function_key_map) (kset_overriding_terminal_local_map, kset_real_last_command) (kset_system_key_syms): New setter functions. Fixes: debbugs:12215
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 715e3664ec2..6a195543ed7 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7834,7 +7834,7 @@ x_connection_closed (Display *dpy, const char *error_message)
7834 { 7834 {
7835 /* Set this to t so that delete_frame won't get confused 7835 /* Set this to t so that delete_frame won't get confused
7836 trying to find a replacement. */ 7836 trying to find a replacement. */
7837 KSET (FRAME_KBOARD (XFRAME (frame)), Vdefault_minibuffer_frame, Qt); 7837 kset_default_minibuffer_frame (FRAME_KBOARD (XFRAME (frame)), Qt);
7838 delete_frame (frame, Qnoelisp); 7838 delete_frame (frame, Qnoelisp);
7839 } 7839 }
7840 7840
@@ -10114,7 +10114,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
10114 { 10114 {
10115 terminal->kboard = xmalloc (sizeof *terminal->kboard); 10115 terminal->kboard = xmalloc (sizeof *terminal->kboard);
10116 init_kboard (terminal->kboard); 10116 init_kboard (terminal->kboard);
10117 KSET (terminal->kboard, Vwindow_system, Qx); 10117 kset_window_system (terminal->kboard, Qx);
10118 10118
10119 /* Add the keyboard to the list before running Lisp code (via 10119 /* Add the keyboard to the list before running Lisp code (via
10120 Qvendor_specific_keysyms below), since these are not traced 10120 Qvendor_specific_keysyms below), since these are not traced
@@ -10136,9 +10136,10 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
10136 /* Temporarily hide the partially initialized terminal. */ 10136 /* Temporarily hide the partially initialized terminal. */
10137 terminal_list = terminal->next_terminal; 10137 terminal_list = terminal->next_terminal;
10138 UNBLOCK_INPUT; 10138 UNBLOCK_INPUT;
10139 KSET (terminal->kboard, Vsystem_key_alist, 10139 kset_system_key_alist
10140 call1 (Qvendor_specific_keysyms, 10140 (terminal->kboard,
10141 vendor ? build_string (vendor) : empty_unibyte_string)); 10141 call1 (Qvendor_specific_keysyms,
10142 vendor ? build_string (vendor) : empty_unibyte_string));
10142 BLOCK_INPUT; 10143 BLOCK_INPUT;
10143 terminal->next_terminal = terminal_list; 10144 terminal->next_terminal = terminal_list;
10144 terminal_list = terminal; 10145 terminal_list = terminal;