aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorOleh Krehel2015-04-23 12:36:22 +0200
committerOleh Krehel2015-04-29 08:53:55 +0200
commitf66b16c3659ed3d58ce700190b22001db77d9bfd (patch)
tree02fb1ccf25cfdf5de20094b8f598cc30fb6b1747 /src/keyboard.h
parent4594f894e60a50e3b5449d762b44a6c69b1bcae6 (diff)
downloademacs-f66b16c3659ed3d58ce700190b22001db77d9bfd.tar.gz
emacs-f66b16c3659ed3d58ce700190b22001db77d9bfd.zip
Remove the deprecated INTERNAL_FIELD macro by expanding it
* src/lisp.h (INTERNAL_FIELD): Remove. (DEFVAR_KBOARD): Modify accordingly. * alloc.c, buffer.c, buffer.h, category.c, keyboard.c, keyboard.h: * syntax.c: Adjust users. * src/buffer.c (compact_buffer): Use BVAR.
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index 0ce6d184482..bcdeaf62165 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -25,7 +25,7 @@ INLINE_HEADER_BEGIN
25 25
26/* Most code should use this macro to access Lisp fields in struct kboard. */ 26/* Most code should use this macro to access Lisp fields in struct kboard. */
27 27
28#define KVAR(kboard, field) ((kboard)->INTERNAL_FIELD (field)) 28#define KVAR(kboard, field) ((kboard)->field ## _)
29 29
30/* Each KBOARD represents one logical input stream from which Emacs 30/* Each KBOARD represents one logical input stream from which Emacs
31 gets input. If we are using ordinary terminals, it has one KBOARD 31 gets input. If we are using ordinary terminals, it has one KBOARD
@@ -78,32 +78,32 @@ struct kboard
78 can effectively wait for input in the any-kboard state, and hence 78 can effectively wait for input in the any-kboard state, and hence
79 avoid blocking out the other KBOARDs. See universal-argument in 79 avoid blocking out the other KBOARDs. See universal-argument in
80 lisp/simple.el for an example. */ 80 lisp/simple.el for an example. */
81 Lisp_Object INTERNAL_FIELD (Voverriding_terminal_local_map); 81 Lisp_Object Voverriding_terminal_local_map_;
82 82
83 /* Last command executed by the editor command loop, not counting 83 /* Last command executed by the editor command loop, not counting
84 commands that set the prefix argument. */ 84 commands that set the prefix argument. */
85 Lisp_Object INTERNAL_FIELD (Vlast_command); 85 Lisp_Object Vlast_command_;
86 86
87 /* Normally same as last-command, but never modified by other commands. */ 87 /* Normally same as last-command, but never modified by other commands. */
88 Lisp_Object INTERNAL_FIELD (Vreal_last_command); 88 Lisp_Object Vreal_last_command_;
89 89
90 /* User-supplied table to translate input characters through. */ 90 /* User-supplied table to translate input characters through. */
91 Lisp_Object INTERNAL_FIELD (Vkeyboard_translate_table); 91 Lisp_Object Vkeyboard_translate_table_;
92 92
93 /* Last command that may be repeated by `repeat'. */ 93 /* Last command that may be repeated by `repeat'. */
94 Lisp_Object INTERNAL_FIELD (Vlast_repeatable_command); 94 Lisp_Object Vlast_repeatable_command_;
95 95
96 /* The prefix argument for the next command, in raw form. */ 96 /* The prefix argument for the next command, in raw form. */
97 Lisp_Object INTERNAL_FIELD (Vprefix_arg); 97 Lisp_Object Vprefix_arg_;
98 98
99 /* Saved prefix argument for the last command, in raw form. */ 99 /* Saved prefix argument for the last command, in raw form. */
100 Lisp_Object INTERNAL_FIELD (Vlast_prefix_arg); 100 Lisp_Object Vlast_prefix_arg_;
101 101
102 /* Unread events specific to this kboard. */ 102 /* Unread events specific to this kboard. */
103 Lisp_Object INTERNAL_FIELD (kbd_queue); 103 Lisp_Object kbd_queue_;
104 104
105 /* Non-nil while a kbd macro is being defined. */ 105 /* Non-nil while a kbd macro is being defined. */
106 Lisp_Object INTERNAL_FIELD (defining_kbd_macro); 106 Lisp_Object defining_kbd_macro_;
107 107
108 /* The start of storage for the current keyboard macro. */ 108 /* The start of storage for the current keyboard macro. */
109 Lisp_Object *kbd_macro_buffer; 109 Lisp_Object *kbd_macro_buffer;
@@ -125,28 +125,28 @@ struct kboard
125 ptrdiff_t kbd_macro_bufsize; 125 ptrdiff_t kbd_macro_bufsize;
126 126
127 /* Last anonymous kbd macro defined. */ 127 /* Last anonymous kbd macro defined. */
128 Lisp_Object INTERNAL_FIELD (Vlast_kbd_macro); 128 Lisp_Object Vlast_kbd_macro_;
129 129
130 /* Alist of system-specific X windows key symbols. */ 130 /* Alist of system-specific X windows key symbols. */
131 Lisp_Object INTERNAL_FIELD (Vsystem_key_alist); 131 Lisp_Object Vsystem_key_alist_;
132 132
133 /* Cache for modify_event_symbol. */ 133 /* Cache for modify_event_symbol. */
134 Lisp_Object INTERNAL_FIELD (system_key_syms); 134 Lisp_Object system_key_syms_;
135 135
136 /* The kind of display: x, w32, ... */ 136 /* The kind of display: x, w32, ... */
137 Lisp_Object INTERNAL_FIELD (Vwindow_system); 137 Lisp_Object Vwindow_system_;
138 138
139 /* Keymap mapping keys to alternative preferred forms. 139 /* Keymap mapping keys to alternative preferred forms.
140 See the DEFVAR for more documentation. */ 140 See the DEFVAR for more documentation. */
141 Lisp_Object INTERNAL_FIELD (Vlocal_function_key_map); 141 Lisp_Object Vlocal_function_key_map_;
142 142
143 /* Keymap mapping ASCII function key sequences onto their preferred 143 /* Keymap mapping ASCII function key sequences onto their preferred
144 forms. Initialized by the terminal-specific lisp files. See the 144 forms. Initialized by the terminal-specific lisp files. See the
145 DEFVAR for more documentation. */ 145 DEFVAR for more documentation. */
146 Lisp_Object INTERNAL_FIELD (Vinput_decode_map); 146 Lisp_Object Vinput_decode_map_;
147 147
148 /* Minibufferless frames on this display use this frame's minibuffer. */ 148 /* Minibufferless frames on this display use this frame's minibuffer. */
149 Lisp_Object INTERNAL_FIELD (Vdefault_minibuffer_frame); 149 Lisp_Object Vdefault_minibuffer_frame_;
150 150
151 /* Number of displays using this KBOARD. Normally 1, but can be 151 /* Number of displays using this KBOARD. Normally 1, but can be
152 larger when you have multiple screens on a single X display. */ 152 larger when you have multiple screens on a single X display. */
@@ -154,7 +154,7 @@ struct kboard
154 154
155 /* The text we're echoing in the modeline - partial key sequences, 155 /* The text we're echoing in the modeline - partial key sequences,
156 usually. This is nil when not echoing. */ 156 usually. This is nil when not echoing. */
157 Lisp_Object INTERNAL_FIELD (echo_string); 157 Lisp_Object echo_string_;
158 158
159 /* This flag indicates that events were put into kbd_queue 159 /* This flag indicates that events were put into kbd_queue
160 while Emacs was running for some other KBOARD. 160 while Emacs was running for some other KBOARD.
@@ -179,42 +179,42 @@ struct kboard
179INLINE void 179INLINE void
180kset_default_minibuffer_frame (struct kboard *kb, Lisp_Object val) 180kset_default_minibuffer_frame (struct kboard *kb, Lisp_Object val)
181{ 181{
182 kb->INTERNAL_FIELD (Vdefault_minibuffer_frame) = val; 182 kb->Vdefault_minibuffer_frame_ = val;
183} 183}
184INLINE void 184INLINE void
185kset_defining_kbd_macro (struct kboard *kb, Lisp_Object val) 185kset_defining_kbd_macro (struct kboard *kb, Lisp_Object val)
186{ 186{
187 kb->INTERNAL_FIELD (defining_kbd_macro) = val; 187 kb->defining_kbd_macro_ = val;
188} 188}
189INLINE void 189INLINE void
190kset_input_decode_map (struct kboard *kb, Lisp_Object val) 190kset_input_decode_map (struct kboard *kb, Lisp_Object val)
191{ 191{
192 kb->INTERNAL_FIELD (Vinput_decode_map) = val; 192 kb->Vinput_decode_map_ = val;
193} 193}
194INLINE void 194INLINE void
195kset_last_command (struct kboard *kb, Lisp_Object val) 195kset_last_command (struct kboard *kb, Lisp_Object val)
196{ 196{
197 kb->INTERNAL_FIELD (Vlast_command) = val; 197 kb->Vlast_command_ = val;
198} 198}
199INLINE void 199INLINE void
200kset_last_kbd_macro (struct kboard *kb, Lisp_Object val) 200kset_last_kbd_macro (struct kboard *kb, Lisp_Object val)
201{ 201{
202 kb->INTERNAL_FIELD (Vlast_kbd_macro) = val; 202 kb->Vlast_kbd_macro_ = val;
203} 203}
204INLINE void 204INLINE void
205kset_prefix_arg (struct kboard *kb, Lisp_Object val) 205kset_prefix_arg (struct kboard *kb, Lisp_Object val)
206{ 206{
207 kb->INTERNAL_FIELD (Vprefix_arg) = val; 207 kb->Vprefix_arg_ = val;
208} 208}
209INLINE void 209INLINE void
210kset_system_key_alist (struct kboard *kb, Lisp_Object val) 210kset_system_key_alist (struct kboard *kb, Lisp_Object val)
211{ 211{
212 kb->INTERNAL_FIELD (Vsystem_key_alist) = val; 212 kb->Vsystem_key_alist_ = val;
213} 213}
214INLINE void 214INLINE void
215kset_window_system (struct kboard *kb, Lisp_Object val) 215kset_window_system (struct kboard *kb, Lisp_Object val)
216{ 216{
217 kb->INTERNAL_FIELD (Vwindow_system) = val; 217 kb->Vwindow_system_ = val;
218} 218}
219 219
220/* Temporarily used before a frame has been opened. */ 220/* Temporarily used before a frame has been opened. */