aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleh Krehel2015-04-28 19:03:52 +0200
committerOleh Krehel2015-04-28 19:19:55 +0200
commit5da3780604802ba86625dac927f8f6a48b6df2cc (patch)
tree56482d8fc2b2cc6fb5f4154a3f87463f3a75e185
parentbed17055404bf43e17deb40897bee49db985de52 (diff)
downloademacs-scratch/remove-internal-field.tar.gz
emacs-scratch/remove-internal-field.zip
Mark previous uses of INTERNAL_FIELD with a trailing underscorescratch/remove-internal-field
* src/.gdbinit: Revert the previous changes. * src/buffer.c (compact_buffer): Use BVAR.
-rw-r--r--src/.gdbinit4
-rw-r--r--src/alloc.c2
-rw-r--r--src/buffer.c92
-rw-r--r--src/buffer.h188
-rw-r--r--src/category.c2
-rw-r--r--src/keyboard.c18
-rw-r--r--src/keyboard.h52
-rw-r--r--src/lisp.h2
-rw-r--r--src/syntax.c2
9 files changed, 181 insertions, 181 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 81d0f516cd9..91beaef8d73 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -378,7 +378,7 @@ define pwinx
378 printf "Window %d ", $int 378 printf "Window %d ", $int
379 xgetptr $w->buffer 379 xgetptr $w->buffer
380 set $tem = (struct buffer *) $ptr 380 set $tem = (struct buffer *) $ptr
381 xgetptr $tem->name 381 xgetptr $tem->name_
382 printf "%s", ((struct Lisp_String *) $ptr)->data 382 printf "%s", ((struct Lisp_String *) $ptr)->data
383 printf "\n" 383 printf "\n"
384 xgetptr $w->start 384 xgetptr $w->start
@@ -898,7 +898,7 @@ end
898define xbuffer 898define xbuffer
899 xgetptr $ 899 xgetptr $
900 print (struct buffer *) $ptr 900 print (struct buffer *) $ptr
901 xgetptr $->name 901 xgetptr $->name_
902 output ((struct Lisp_String *) $ptr)->data 902 output ((struct Lisp_String *) $ptr)->data
903 echo \n 903 echo \n
904end 904end
diff --git a/src/alloc.c b/src/alloc.c
index 509ac59c9d4..688363d06e3 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -4496,7 +4496,7 @@ live_buffer_p (struct mem_node *m, void *p)
4496 must not have been killed. */ 4496 must not have been killed. */
4497 return (m->type == MEM_TYPE_BUFFER 4497 return (m->type == MEM_TYPE_BUFFER
4498 && p == m->start 4498 && p == m->start
4499 && !NILP (((struct buffer *) p)->name)); 4499 && !NILP (((struct buffer *) p)->name_));
4500} 4500}
4501 4501
4502#endif /* GC_MARK_STACK || defined GC_MALLOC_CHECK */ 4502#endif /* GC_MARK_STACK || defined GC_MALLOC_CHECK */
diff --git a/src/buffer.c b/src/buffer.c
index 7312d160e3c..b09676c438d 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -134,227 +134,227 @@ CHECK_OVERLAY (Lisp_Object x)
134static void 134static void
135bset_abbrev_mode (struct buffer *b, Lisp_Object val) 135bset_abbrev_mode (struct buffer *b, Lisp_Object val)
136{ 136{
137 b->abbrev_mode = val; 137 b->abbrev_mode_ = val;
138} 138}
139static void 139static void
140bset_abbrev_table (struct buffer *b, Lisp_Object val) 140bset_abbrev_table (struct buffer *b, Lisp_Object val)
141{ 141{
142 b->abbrev_table = val; 142 b->abbrev_table_ = val;
143} 143}
144static void 144static void
145bset_auto_fill_function (struct buffer *b, Lisp_Object val) 145bset_auto_fill_function (struct buffer *b, Lisp_Object val)
146{ 146{
147 b->auto_fill_function = val; 147 b->auto_fill_function_ = val;
148} 148}
149static void 149static void
150bset_auto_save_file_format (struct buffer *b, Lisp_Object val) 150bset_auto_save_file_format (struct buffer *b, Lisp_Object val)
151{ 151{
152 b->auto_save_file_format = val; 152 b->auto_save_file_format_ = val;
153} 153}
154static void 154static void
155bset_auto_save_file_name (struct buffer *b, Lisp_Object val) 155bset_auto_save_file_name (struct buffer *b, Lisp_Object val)
156{ 156{
157 b->auto_save_file_name = val; 157 b->auto_save_file_name_ = val;
158} 158}
159static void 159static void
160bset_backed_up (struct buffer *b, Lisp_Object val) 160bset_backed_up (struct buffer *b, Lisp_Object val)
161{ 161{
162 b->backed_up = val; 162 b->backed_up_ = val;
163} 163}
164static void 164static void
165bset_begv_marker (struct buffer *b, Lisp_Object val) 165bset_begv_marker (struct buffer *b, Lisp_Object val)
166{ 166{
167 b->begv_marker = val; 167 b->begv_marker_ = val;
168} 168}
169static void 169static void
170bset_bidi_display_reordering (struct buffer *b, Lisp_Object val) 170bset_bidi_display_reordering (struct buffer *b, Lisp_Object val)
171{ 171{
172 b->bidi_display_reordering = val; 172 b->bidi_display_reordering_ = val;
173} 173}
174static void 174static void
175bset_buffer_file_coding_system (struct buffer *b, Lisp_Object val) 175bset_buffer_file_coding_system (struct buffer *b, Lisp_Object val)
176{ 176{
177 b->buffer_file_coding_system = val; 177 b->buffer_file_coding_system_ = val;
178} 178}
179static void 179static void
180bset_case_fold_search (struct buffer *b, Lisp_Object val) 180bset_case_fold_search (struct buffer *b, Lisp_Object val)
181{ 181{
182 b->case_fold_search = val; 182 b->case_fold_search_ = val;
183} 183}
184static void 184static void
185bset_ctl_arrow (struct buffer *b, Lisp_Object val) 185bset_ctl_arrow (struct buffer *b, Lisp_Object val)
186{ 186{
187 b->ctl_arrow = val; 187 b->ctl_arrow_ = val;
188} 188}
189static void 189static void
190bset_cursor_in_non_selected_windows (struct buffer *b, Lisp_Object val) 190bset_cursor_in_non_selected_windows (struct buffer *b, Lisp_Object val)
191{ 191{
192 b->cursor_in_non_selected_windows = val; 192 b->cursor_in_non_selected_windows_ = val;
193} 193}
194static void 194static void
195bset_cursor_type (struct buffer *b, Lisp_Object val) 195bset_cursor_type (struct buffer *b, Lisp_Object val)
196{ 196{
197 b->cursor_type = val; 197 b->cursor_type_ = val;
198} 198}
199static void 199static void
200bset_display_table (struct buffer *b, Lisp_Object val) 200bset_display_table (struct buffer *b, Lisp_Object val)
201{ 201{
202 b->display_table = val; 202 b->display_table_ = val;
203} 203}
204static void 204static void
205bset_extra_line_spacing (struct buffer *b, Lisp_Object val) 205bset_extra_line_spacing (struct buffer *b, Lisp_Object val)
206{ 206{
207 b->extra_line_spacing = val; 207 b->extra_line_spacing_ = val;
208} 208}
209static void 209static void
210bset_file_format (struct buffer *b, Lisp_Object val) 210bset_file_format (struct buffer *b, Lisp_Object val)
211{ 211{
212 b->file_format = val; 212 b->file_format_ = val;
213} 213}
214static void 214static void
215bset_file_truename (struct buffer *b, Lisp_Object val) 215bset_file_truename (struct buffer *b, Lisp_Object val)
216{ 216{
217 b->file_truename = val; 217 b->file_truename_ = val;
218} 218}
219static void 219static void
220bset_fringe_cursor_alist (struct buffer *b, Lisp_Object val) 220bset_fringe_cursor_alist (struct buffer *b, Lisp_Object val)
221{ 221{
222 b->fringe_cursor_alist = val; 222 b->fringe_cursor_alist_ = val;
223} 223}
224static void 224static void
225bset_fringe_indicator_alist (struct buffer *b, Lisp_Object val) 225bset_fringe_indicator_alist (struct buffer *b, Lisp_Object val)
226{ 226{
227 b->fringe_indicator_alist = val; 227 b->fringe_indicator_alist_ = val;
228} 228}
229static void 229static void
230bset_fringes_outside_margins (struct buffer *b, Lisp_Object val) 230bset_fringes_outside_margins (struct buffer *b, Lisp_Object val)
231{ 231{
232 b->fringes_outside_margins = val; 232 b->fringes_outside_margins_ = val;
233} 233}
234static void 234static void
235bset_header_line_format (struct buffer *b, Lisp_Object val) 235bset_header_line_format (struct buffer *b, Lisp_Object val)
236{ 236{
237 b->header_line_format = val; 237 b->header_line_format_ = val;
238} 238}
239static void 239static void
240bset_indicate_buffer_boundaries (struct buffer *b, Lisp_Object val) 240bset_indicate_buffer_boundaries (struct buffer *b, Lisp_Object val)
241{ 241{
242 b->indicate_buffer_boundaries = val; 242 b->indicate_buffer_boundaries_ = val;
243} 243}
244static void 244static void
245bset_indicate_empty_lines (struct buffer *b, Lisp_Object val) 245bset_indicate_empty_lines (struct buffer *b, Lisp_Object val)
246{ 246{
247 b->indicate_empty_lines = val; 247 b->indicate_empty_lines_ = val;
248} 248}
249static void 249static void
250bset_invisibility_spec (struct buffer *b, Lisp_Object val) 250bset_invisibility_spec (struct buffer *b, Lisp_Object val)
251{ 251{
252 b->invisibility_spec = val; 252 b->invisibility_spec_ = val;
253} 253}
254static void 254static void
255bset_left_fringe_width (struct buffer *b, Lisp_Object val) 255bset_left_fringe_width (struct buffer *b, Lisp_Object val)
256{ 256{
257 b->left_fringe_width = val; 257 b->left_fringe_width_ = val;
258} 258}
259static void 259static void
260bset_major_mode (struct buffer *b, Lisp_Object val) 260bset_major_mode (struct buffer *b, Lisp_Object val)
261{ 261{
262 b->major_mode = val; 262 b->major_mode_ = val;
263} 263}
264static void 264static void
265bset_mark (struct buffer *b, Lisp_Object val) 265bset_mark (struct buffer *b, Lisp_Object val)
266{ 266{
267 b->mark = val; 267 b->mark_ = val;
268} 268}
269static void 269static void
270bset_minor_modes (struct buffer *b, Lisp_Object val) 270bset_minor_modes (struct buffer *b, Lisp_Object val)
271{ 271{
272 b->minor_modes = val; 272 b->minor_modes_ = val;
273} 273}
274static void 274static void
275bset_mode_line_format (struct buffer *b, Lisp_Object val) 275bset_mode_line_format (struct buffer *b, Lisp_Object val)
276{ 276{
277 b->mode_line_format = val; 277 b->mode_line_format_ = val;
278} 278}
279static void 279static void
280bset_mode_name (struct buffer *b, Lisp_Object val) 280bset_mode_name (struct buffer *b, Lisp_Object val)
281{ 281{
282 b->mode_name = val; 282 b->mode_name_ = val;
283} 283}
284static void 284static void
285bset_name (struct buffer *b, Lisp_Object val) 285bset_name (struct buffer *b, Lisp_Object val)
286{ 286{
287 b->name = val; 287 b->name_ = val;
288} 288}
289static void 289static void
290bset_overwrite_mode (struct buffer *b, Lisp_Object val) 290bset_overwrite_mode (struct buffer *b, Lisp_Object val)
291{ 291{
292 b->overwrite_mode = val; 292 b->overwrite_mode_ = val;
293} 293}
294static void 294static void
295bset_pt_marker (struct buffer *b, Lisp_Object val) 295bset_pt_marker (struct buffer *b, Lisp_Object val)
296{ 296{
297 b->pt_marker = val; 297 b->pt_marker_ = val;
298} 298}
299static void 299static void
300bset_right_fringe_width (struct buffer *b, Lisp_Object val) 300bset_right_fringe_width (struct buffer *b, Lisp_Object val)
301{ 301{
302 b->right_fringe_width = val; 302 b->right_fringe_width_ = val;
303} 303}
304static void 304static void
305bset_save_length (struct buffer *b, Lisp_Object val) 305bset_save_length (struct buffer *b, Lisp_Object val)
306{ 306{
307 b->save_length = val; 307 b->save_length_ = val;
308} 308}
309static void 309static void
310bset_scroll_bar_width (struct buffer *b, Lisp_Object val) 310bset_scroll_bar_width (struct buffer *b, Lisp_Object val)
311{ 311{
312 b->scroll_bar_width = val; 312 b->scroll_bar_width_ = val;
313} 313}
314static void 314static void
315bset_scroll_bar_height (struct buffer *b, Lisp_Object val) 315bset_scroll_bar_height (struct buffer *b, Lisp_Object val)
316{ 316{
317 b->scroll_bar_height = val; 317 b->scroll_bar_height_ = val;
318} 318}
319static void 319static void
320bset_scroll_down_aggressively (struct buffer *b, Lisp_Object val) 320bset_scroll_down_aggressively (struct buffer *b, Lisp_Object val)
321{ 321{
322 b->scroll_down_aggressively = val; 322 b->scroll_down_aggressively_ = val;
323} 323}
324static void 324static void
325bset_scroll_up_aggressively (struct buffer *b, Lisp_Object val) 325bset_scroll_up_aggressively (struct buffer *b, Lisp_Object val)
326{ 326{
327 b->scroll_up_aggressively = val; 327 b->scroll_up_aggressively_ = val;
328} 328}
329static void 329static void
330bset_selective_display (struct buffer *b, Lisp_Object val) 330bset_selective_display (struct buffer *b, Lisp_Object val)
331{ 331{
332 b->selective_display = val; 332 b->selective_display_ = val;
333} 333}
334static void 334static void
335bset_selective_display_ellipses (struct buffer *b, Lisp_Object val) 335bset_selective_display_ellipses (struct buffer *b, Lisp_Object val)
336{ 336{
337 b->selective_display_ellipses = val; 337 b->selective_display_ellipses_ = val;
338} 338}
339static void 339static void
340bset_vertical_scroll_bar_type (struct buffer *b, Lisp_Object val) 340bset_vertical_scroll_bar_type (struct buffer *b, Lisp_Object val)
341{ 341{
342 b->vertical_scroll_bar_type = val; 342 b->vertical_scroll_bar_type_ = val;
343} 343}
344static void 344static void
345bset_horizontal_scroll_bar_type (struct buffer *b, Lisp_Object val) 345bset_horizontal_scroll_bar_type (struct buffer *b, Lisp_Object val)
346{ 346{
347 b->horizontal_scroll_bar_type = val; 347 b->horizontal_scroll_bar_type_ = val;
348} 348}
349static void 349static void
350bset_word_wrap (struct buffer *b, Lisp_Object val) 350bset_word_wrap (struct buffer *b, Lisp_Object val)
351{ 351{
352 b->word_wrap = val; 352 b->word_wrap_ = val;
353} 353}
354static void 354static void
355bset_zv_marker (struct buffer *b, Lisp_Object val) 355bset_zv_marker (struct buffer *b, Lisp_Object val)
356{ 356{
357 b->zv_marker = val; 357 b->zv_marker_ = val;
358} 358}
359 359
360void 360void
@@ -1591,7 +1591,7 @@ compact_buffer (struct buffer *buffer)
1591 turned off in that buffer. Calling truncate_undo_list on 1591 turned off in that buffer. Calling truncate_undo_list on
1592 Qt tends to return NULL, which effectively turns undo back on. 1592 Qt tends to return NULL, which effectively turns undo back on.
1593 So don't call truncate_undo_list if undo_list is Qt. */ 1593 So don't call truncate_undo_list if undo_list is Qt. */
1594 if (!EQ (buffer->undo_list, Qt)) 1594 if (!EQ (BVAR(buffer, undo_list), Qt))
1595 truncate_undo_list (buffer); 1595 truncate_undo_list (buffer);
1596 1596
1597 /* Shrink buffer gaps. */ 1597 /* Shrink buffer gaps. */
diff --git a/src/buffer.h b/src/buffer.h
index 0aa4b49357e..a0410d454cd 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -483,7 +483,7 @@ struct buffer_text
483 483
484/* Most code should use this macro to access Lisp fields in struct buffer. */ 484/* Most code should use this macro to access Lisp fields in struct buffer. */
485 485
486#define BVAR(buf, field) ((buf)->field) 486#define BVAR(buf, field) ((buf)->field ## _)
487 487
488/* This is the structure that the buffer Lisp object points to. */ 488/* This is the structure that the buffer Lisp object points to. */
489 489
@@ -492,17 +492,17 @@ struct buffer
492 struct vectorlike_header header; 492 struct vectorlike_header header;
493 493
494 /* The name of this buffer. */ 494 /* The name of this buffer. */
495 Lisp_Object name; 495 Lisp_Object name_;
496 496
497 /* The name of the file visited in this buffer, or nil. */ 497 /* The name of the file visited in this buffer, or nil. */
498 Lisp_Object filename; 498 Lisp_Object filename_;
499 499
500 /* Directory for expanding relative file names. */ 500 /* Directory for expanding relative file names. */
501 Lisp_Object directory; 501 Lisp_Object directory_;
502 502
503 /* True if this buffer has been backed up (if you write to the visited 503 /* True if this buffer has been backed up (if you write to the visited
504 file and it hasn't been backed up, then a backup will be made). */ 504 file and it hasn't been backed up, then a backup will be made). */
505 Lisp_Object backed_up; 505 Lisp_Object backed_up_;
506 506
507 /* Length of file when last read or saved. 507 /* Length of file when last read or saved.
508 -1 means auto saving turned off because buffer shrank a lot. 508 -1 means auto saving turned off because buffer shrank a lot.
@@ -510,132 +510,132 @@ struct buffer
510 (That value is used with buffer-swap-text.) 510 (That value is used with buffer-swap-text.)
511 This is not in the struct buffer_text 511 This is not in the struct buffer_text
512 because it's not used in indirect buffers at all. */ 512 because it's not used in indirect buffers at all. */
513 Lisp_Object save_length; 513 Lisp_Object save_length_;
514 514
515 /* File name used for auto-saving this buffer. 515 /* File name used for auto-saving this buffer.
516 This is not in the struct buffer_text 516 This is not in the struct buffer_text
517 because it's not used in indirect buffers at all. */ 517 because it's not used in indirect buffers at all. */
518 Lisp_Object auto_save_file_name; 518 Lisp_Object auto_save_file_name_;
519 519
520 /* Non-nil if buffer read-only. */ 520 /* Non-nil if buffer read-only. */
521 Lisp_Object read_only; 521 Lisp_Object read_only_;
522 522
523 /* "The mark". This is a marker which may 523 /* "The mark". This is a marker which may
524 point into this buffer or may point nowhere. */ 524 point into this buffer or may point nowhere. */
525 Lisp_Object mark; 525 Lisp_Object mark_;
526 526
527 /* Alist of elements (SYMBOL . VALUE-IN-THIS-BUFFER) for all 527 /* Alist of elements (SYMBOL . VALUE-IN-THIS-BUFFER) for all
528 per-buffer variables of this buffer. For locally unbound 528 per-buffer variables of this buffer. For locally unbound
529 symbols, just the symbol appears as the element. */ 529 symbols, just the symbol appears as the element. */
530 Lisp_Object local_var_alist; 530 Lisp_Object local_var_alist_;
531 531
532 /* Symbol naming major mode (e.g., lisp-mode). */ 532 /* Symbol naming major mode (e.g., lisp-mode). */
533 Lisp_Object major_mode; 533 Lisp_Object major_mode_;
534 534
535 /* Pretty name of major mode (e.g., "Lisp"). */ 535 /* Pretty name of major mode (e.g., "Lisp"). */
536 Lisp_Object mode_name; 536 Lisp_Object mode_name_;
537 537
538 /* Mode line element that controls format of mode line. */ 538 /* Mode line element that controls format of mode line. */
539 Lisp_Object mode_line_format; 539 Lisp_Object mode_line_format_;
540 540
541 /* Analogous to mode_line_format for the line displayed at the top 541 /* Analogous to mode_line_format for the line displayed at the top
542 of windows. Nil means don't display that line. */ 542 of windows. Nil means don't display that line. */
543 Lisp_Object header_line_format; 543 Lisp_Object header_line_format_;
544 544
545 /* Keys that are bound local to this buffer. */ 545 /* Keys that are bound local to this buffer. */
546 Lisp_Object keymap; 546 Lisp_Object keymap_;
547 547
548 /* This buffer's local abbrev table. */ 548 /* This buffer's local abbrev table. */
549 Lisp_Object abbrev_table; 549 Lisp_Object abbrev_table_;
550 550
551 /* This buffer's syntax table. */ 551 /* This buffer's syntax table. */
552 Lisp_Object syntax_table; 552 Lisp_Object syntax_table_;
553 553
554 /* This buffer's category table. */ 554 /* This buffer's category table. */
555 Lisp_Object category_table; 555 Lisp_Object category_table_;
556 556
557 /* Values of several buffer-local variables. */ 557 /* Values of several buffer-local variables. */
558 /* tab-width is buffer-local so that redisplay can find it 558 /* tab-width is buffer-local so that redisplay can find it
559 in buffers that are not current. */ 559 in buffers that are not current. */
560 Lisp_Object case_fold_search; 560 Lisp_Object case_fold_search_;
561 Lisp_Object tab_width; 561 Lisp_Object tab_width_;
562 Lisp_Object fill_column; 562 Lisp_Object fill_column_;
563 Lisp_Object left_margin; 563 Lisp_Object left_margin_;
564 564
565 /* Function to call when insert space past fill column. */ 565 /* Function to call when insert space past fill column. */
566 Lisp_Object auto_fill_function; 566 Lisp_Object auto_fill_function_;
567 567
568 /* Case table for case-conversion in this buffer. 568 /* Case table for case-conversion in this buffer.
569 This char-table maps each char into its lower-case version. */ 569 This char-table maps each char into its lower-case version. */
570 Lisp_Object downcase_table; 570 Lisp_Object downcase_table_;
571 571
572 /* Char-table mapping each char to its upper-case version. */ 572 /* Char-table mapping each char to its upper-case version. */
573 Lisp_Object upcase_table; 573 Lisp_Object upcase_table_;
574 574
575 /* Char-table for conversion for case-folding search. */ 575 /* Char-table for conversion for case-folding search. */
576 Lisp_Object case_canon_table; 576 Lisp_Object case_canon_table_;
577 577
578 /* Char-table of equivalences for case-folding search. */ 578 /* Char-table of equivalences for case-folding search. */
579 Lisp_Object case_eqv_table; 579 Lisp_Object case_eqv_table_;
580 580
581 /* Non-nil means do not display continuation lines. */ 581 /* Non-nil means do not display continuation lines. */
582 Lisp_Object truncate_lines; 582 Lisp_Object truncate_lines_;
583 583
584 /* Non-nil means to use word wrapping when displaying continuation lines. */ 584 /* Non-nil means to use word wrapping when displaying continuation lines. */
585 Lisp_Object word_wrap; 585 Lisp_Object word_wrap_;
586 586
587 /* Non-nil means display ctl chars with uparrow. */ 587 /* Non-nil means display ctl chars with uparrow. */
588 Lisp_Object ctl_arrow; 588 Lisp_Object ctl_arrow_;
589 589
590 /* Non-nil means reorder bidirectional text for display in the 590 /* Non-nil means reorder bidirectional text for display in the
591 visual order. */ 591 visual order. */
592 Lisp_Object bidi_display_reordering; 592 Lisp_Object bidi_display_reordering_;
593 593
594 /* If non-nil, specifies which direction of text to force in all the 594 /* If non-nil, specifies which direction of text to force in all the
595 paragraphs of the buffer. Nil means determine paragraph 595 paragraphs of the buffer. Nil means determine paragraph
596 direction dynamically for each paragraph. */ 596 direction dynamically for each paragraph. */
597 Lisp_Object bidi_paragraph_direction; 597 Lisp_Object bidi_paragraph_direction_;
598 598
599 /* Non-nil means do selective display; 599 /* Non-nil means do selective display;
600 see doc string in syms_of_buffer (buffer.c) for details. */ 600 see doc string in syms_of_buffer (buffer.c) for details. */
601 Lisp_Object selective_display; 601 Lisp_Object selective_display_;
602 602
603 /* Non-nil means show ... at end of line followed by invisible lines. */ 603 /* Non-nil means show ... at end of line followed by invisible lines. */
604 Lisp_Object selective_display_ellipses; 604 Lisp_Object selective_display_ellipses_;
605 605
606 /* Alist of (FUNCTION . STRING) for each minor mode enabled in buffer. */ 606 /* Alist of (FUNCTION . STRING) for each minor mode enabled in buffer. */
607 Lisp_Object minor_modes; 607 Lisp_Object minor_modes_;
608 608
609 /* t if "self-insertion" should overwrite; `binary' if it should also 609 /* t if "self-insertion" should overwrite; `binary' if it should also
610 overwrite newlines and tabs - for editing executables and the like. */ 610 overwrite newlines and tabs - for editing executables and the like. */
611 Lisp_Object overwrite_mode; 611 Lisp_Object overwrite_mode_;
612 612
613 /* Non-nil means abbrev mode is on. Expand abbrevs automatically. */ 613 /* Non-nil means abbrev mode is on. Expand abbrevs automatically. */
614 Lisp_Object abbrev_mode; 614 Lisp_Object abbrev_mode_;
615 615
616 /* Display table to use for text in this buffer. */ 616 /* Display table to use for text in this buffer. */
617 Lisp_Object display_table; 617 Lisp_Object display_table_;
618 618
619 /* t means the mark and region are currently active. */ 619 /* t means the mark and region are currently active. */
620 Lisp_Object mark_active; 620 Lisp_Object mark_active_;
621 621
622 /* Non-nil means the buffer contents are regarded as multi-byte 622 /* Non-nil means the buffer contents are regarded as multi-byte
623 form of characters, not a binary code. */ 623 form of characters, not a binary code. */
624 Lisp_Object enable_multibyte_characters; 624 Lisp_Object enable_multibyte_characters_;
625 625
626 /* Coding system to be used for encoding the buffer contents on 626 /* Coding system to be used for encoding the buffer contents on
627 saving. */ 627 saving. */
628 Lisp_Object buffer_file_coding_system; 628 Lisp_Object buffer_file_coding_system_;
629 629
630 /* List of symbols naming the file format used for visited file. */ 630 /* List of symbols naming the file format used for visited file. */
631 Lisp_Object file_format; 631 Lisp_Object file_format_;
632 632
633 /* List of symbols naming the file format used for auto-save file. */ 633 /* List of symbols naming the file format used for auto-save file. */
634 Lisp_Object auto_save_file_format; 634 Lisp_Object auto_save_file_format_;
635 635
636 /* True if the newline position cache, width run cache and BIDI paragraph 636 /* True if the newline position cache, width run cache and BIDI paragraph
637 cache are enabled. See search.c, indent.c and bidi.c for details. */ 637 cache are enabled. See search.c, indent.c and bidi.c for details. */
638 Lisp_Object cache_long_scans; 638 Lisp_Object cache_long_scans_;
639 639
640 /* If the width run cache is enabled, this table contains the 640 /* If the width run cache is enabled, this table contains the
641 character widths width_run_cache (see above) assumes. When we 641 character widths width_run_cache (see above) assumes. When we
@@ -643,104 +643,104 @@ struct buffer
643 current display table to see whether the display table has 643 current display table to see whether the display table has
644 affected the widths of any characters. If it has, we 644 affected the widths of any characters. If it has, we
645 invalidate the width run cache, and re-initialize width_table. */ 645 invalidate the width run cache, and re-initialize width_table. */
646 Lisp_Object width_table; 646 Lisp_Object width_table_;
647 647
648 /* In an indirect buffer, or a buffer that is the base of an 648 /* In an indirect buffer, or a buffer that is the base of an
649 indirect buffer, this holds a marker that records 649 indirect buffer, this holds a marker that records
650 PT for this buffer when the buffer is not current. */ 650 PT for this buffer when the buffer is not current. */
651 Lisp_Object pt_marker; 651 Lisp_Object pt_marker_;
652 652
653 /* In an indirect buffer, or a buffer that is the base of an 653 /* In an indirect buffer, or a buffer that is the base of an
654 indirect buffer, this holds a marker that records 654 indirect buffer, this holds a marker that records
655 BEGV for this buffer when the buffer is not current. */ 655 BEGV for this buffer when the buffer is not current. */
656 Lisp_Object begv_marker; 656 Lisp_Object begv_marker_;
657 657
658 /* In an indirect buffer, or a buffer that is the base of an 658 /* In an indirect buffer, or a buffer that is the base of an
659 indirect buffer, this holds a marker that records 659 indirect buffer, this holds a marker that records
660 ZV for this buffer when the buffer is not current. */ 660 ZV for this buffer when the buffer is not current. */
661 Lisp_Object zv_marker; 661 Lisp_Object zv_marker_;
662 662
663 /* This holds the point value before the last scroll operation. 663 /* This holds the point value before the last scroll operation.
664 Explicitly setting point sets this to nil. */ 664 Explicitly setting point sets this to nil. */
665 Lisp_Object point_before_scroll; 665 Lisp_Object point_before_scroll_;
666 666
667 /* Truename of the visited file, or nil. */ 667 /* Truename of the visited file, or nil. */
668 Lisp_Object file_truename; 668 Lisp_Object file_truename_;
669 669
670 /* Invisibility spec of this buffer. 670 /* Invisibility spec of this buffer.
671 t => any non-nil `invisible' property means invisible. 671 t => any non-nil `invisible' property means invisible.
672 A list => `invisible' property means invisible 672 A list => `invisible' property means invisible
673 if it is memq in that list. */ 673 if it is memq in that list. */
674 Lisp_Object invisibility_spec; 674 Lisp_Object invisibility_spec_;
675 675
676 /* This is the last window that was selected with this buffer in it, 676 /* This is the last window that was selected with this buffer in it,
677 or nil if that window no longer displays this buffer. */ 677 or nil if that window no longer displays this buffer. */
678 Lisp_Object last_selected_window; 678 Lisp_Object last_selected_window_;
679 679
680 /* Incremented each time the buffer is displayed in a window. */ 680 /* Incremented each time the buffer is displayed in a window. */
681 Lisp_Object display_count; 681 Lisp_Object display_count_;
682 682
683 /* Widths of left and right marginal areas for windows displaying 683 /* Widths of left and right marginal areas for windows displaying
684 this buffer. */ 684 this buffer. */
685 Lisp_Object left_margin_cols; 685 Lisp_Object left_margin_cols_;
686 Lisp_Object right_margin_cols; 686 Lisp_Object right_margin_cols_;
687 687
688 /* Widths of left and right fringe areas for windows displaying 688 /* Widths of left and right fringe areas for windows displaying
689 this buffer. */ 689 this buffer. */
690 Lisp_Object left_fringe_width; 690 Lisp_Object left_fringe_width_;
691 Lisp_Object right_fringe_width; 691 Lisp_Object right_fringe_width_;
692 692
693 /* Non-nil means fringes are drawn outside display margins; 693 /* Non-nil means fringes are drawn outside display margins;
694 othersize draw them between margin areas and text. */ 694 othersize draw them between margin areas and text. */
695 Lisp_Object fringes_outside_margins; 695 Lisp_Object fringes_outside_margins_;
696 696
697 /* Width, height and types of scroll bar areas for windows displaying 697 /* Width, height and types of scroll bar areas for windows displaying
698 this buffer. */ 698 this buffer. */
699 Lisp_Object scroll_bar_width; 699 Lisp_Object scroll_bar_width_;
700 Lisp_Object scroll_bar_height; 700 Lisp_Object scroll_bar_height_;
701 Lisp_Object vertical_scroll_bar_type; 701 Lisp_Object vertical_scroll_bar_type_;
702 Lisp_Object horizontal_scroll_bar_type; 702 Lisp_Object horizontal_scroll_bar_type_;
703 703
704 /* Non-nil means indicate lines not displaying text (in a style 704 /* Non-nil means indicate lines not displaying text (in a style
705 like vi). */ 705 like vi). */
706 Lisp_Object indicate_empty_lines; 706 Lisp_Object indicate_empty_lines_;
707 707
708 /* Non-nil means indicate buffer boundaries and scrolling. */ 708 /* Non-nil means indicate buffer boundaries and scrolling. */
709 Lisp_Object indicate_buffer_boundaries; 709 Lisp_Object indicate_buffer_boundaries_;
710 710
711 /* Logical to physical fringe bitmap mappings. */ 711 /* Logical to physical fringe bitmap mappings. */
712 Lisp_Object fringe_indicator_alist; 712 Lisp_Object fringe_indicator_alist_;
713 713
714 /* Logical to physical cursor bitmap mappings. */ 714 /* Logical to physical cursor bitmap mappings. */
715 Lisp_Object fringe_cursor_alist; 715 Lisp_Object fringe_cursor_alist_;
716 716
717 /* Time stamp updated each time this buffer is displayed in a window. */ 717 /* Time stamp updated each time this buffer is displayed in a window. */
718 Lisp_Object display_time; 718 Lisp_Object display_time_;
719 719
720 /* If scrolling the display because point is below the bottom of a 720 /* If scrolling the display because point is below the bottom of a
721 window showing this buffer, try to choose a window start so 721 window showing this buffer, try to choose a window start so
722 that point ends up this number of lines from the top of the 722 that point ends up this number of lines from the top of the
723 window. Nil means that scrolling method isn't used. */ 723 window. Nil means that scrolling method isn't used. */
724 Lisp_Object scroll_up_aggressively; 724 Lisp_Object scroll_up_aggressively_;
725 725
726 /* If scrolling the display because point is above the top of a 726 /* If scrolling the display because point is above the top of a
727 window showing this buffer, try to choose a window start so 727 window showing this buffer, try to choose a window start so
728 that point ends up this number of lines from the bottom of the 728 that point ends up this number of lines from the bottom of the
729 window. Nil means that scrolling method isn't used. */ 729 window. Nil means that scrolling method isn't used. */
730 Lisp_Object scroll_down_aggressively; 730 Lisp_Object scroll_down_aggressively_;
731 731
732 /* Desired cursor type in this buffer. See the doc string of 732 /* Desired cursor type in this buffer. See the doc string of
733 per-buffer variable `cursor-type'. */ 733 per-buffer variable `cursor-type'. */
734 Lisp_Object cursor_type; 734 Lisp_Object cursor_type_;
735 735
736 /* An integer > 0 means put that number of pixels below text lines 736 /* An integer > 0 means put that number of pixels below text lines
737 in the display of this buffer. */ 737 in the display of this buffer. */
738 Lisp_Object extra_line_spacing; 738 Lisp_Object extra_line_spacing_;
739 739
740 /* Cursor type to display in non-selected windows. 740 /* Cursor type to display in non-selected windows.
741 t means to use hollow box cursor. 741 t means to use hollow box cursor.
742 See `cursor-type' for other values. */ 742 See `cursor-type' for other values. */
743 Lisp_Object cursor_in_non_selected_windows; 743 Lisp_Object cursor_in_non_selected_windows_;
744 744
745 /* No more Lisp_Object beyond this point. Except undo_list, 745 /* No more Lisp_Object beyond this point. Except undo_list,
746 which is handled specially in Fgarbage_collect. */ 746 which is handled specially in Fgarbage_collect. */
@@ -872,7 +872,7 @@ struct buffer
872 buffer of an indirect buffer. But we can't store it in the 872 buffer of an indirect buffer. But we can't store it in the
873 struct buffer_text because local variables have to be right in 873 struct buffer_text because local variables have to be right in
874 the struct buffer. So we copy it around in set_buffer_internal. */ 874 the struct buffer. So we copy it around in set_buffer_internal. */
875 Lisp_Object undo_list; 875 Lisp_Object undo_list_;
876}; 876};
877 877
878/* Most code should use these functions to set Lisp fields in struct 878/* Most code should use these functions to set Lisp fields in struct
@@ -881,102 +881,102 @@ struct buffer
881INLINE void 881INLINE void
882bset_bidi_paragraph_direction (struct buffer *b, Lisp_Object val) 882bset_bidi_paragraph_direction (struct buffer *b, Lisp_Object val)
883{ 883{
884 b->bidi_paragraph_direction = val; 884 b->bidi_paragraph_direction_ = val;
885} 885}
886INLINE void 886INLINE void
887bset_cache_long_scans (struct buffer *b, Lisp_Object val) 887bset_cache_long_scans (struct buffer *b, Lisp_Object val)
888{ 888{
889 b->cache_long_scans = val; 889 b->cache_long_scans_ = val;
890} 890}
891INLINE void 891INLINE void
892bset_case_canon_table (struct buffer *b, Lisp_Object val) 892bset_case_canon_table (struct buffer *b, Lisp_Object val)
893{ 893{
894 b->case_canon_table = val; 894 b->case_canon_table_ = val;
895} 895}
896INLINE void 896INLINE void
897bset_case_eqv_table (struct buffer *b, Lisp_Object val) 897bset_case_eqv_table (struct buffer *b, Lisp_Object val)
898{ 898{
899 b->case_eqv_table = val; 899 b->case_eqv_table_ = val;
900} 900}
901INLINE void 901INLINE void
902bset_directory (struct buffer *b, Lisp_Object val) 902bset_directory (struct buffer *b, Lisp_Object val)
903{ 903{
904 b->directory = val; 904 b->directory_ = val;
905} 905}
906INLINE void 906INLINE void
907bset_display_count (struct buffer *b, Lisp_Object val) 907bset_display_count (struct buffer *b, Lisp_Object val)
908{ 908{
909 b->display_count = val; 909 b->display_count_ = val;
910} 910}
911INLINE void 911INLINE void
912bset_display_time (struct buffer *b, Lisp_Object val) 912bset_display_time (struct buffer *b, Lisp_Object val)
913{ 913{
914 b->display_time = val; 914 b->display_time_ = val;
915} 915}
916INLINE void 916INLINE void
917bset_downcase_table (struct buffer *b, Lisp_Object val) 917bset_downcase_table (struct buffer *b, Lisp_Object val)
918{ 918{
919 b->downcase_table = val; 919 b->downcase_table_ = val;
920} 920}
921INLINE void 921INLINE void
922bset_enable_multibyte_characters (struct buffer *b, Lisp_Object val) 922bset_enable_multibyte_characters (struct buffer *b, Lisp_Object val)
923{ 923{
924 b->enable_multibyte_characters = val; 924 b->enable_multibyte_characters_ = val;
925} 925}
926INLINE void 926INLINE void
927bset_filename (struct buffer *b, Lisp_Object val) 927bset_filename (struct buffer *b, Lisp_Object val)
928{ 928{
929 b->filename = val; 929 b->filename_ = val;
930} 930}
931INLINE void 931INLINE void
932bset_keymap (struct buffer *b, Lisp_Object val) 932bset_keymap (struct buffer *b, Lisp_Object val)
933{ 933{
934 b->keymap = val; 934 b->keymap_ = val;
935} 935}
936INLINE void 936INLINE void
937bset_last_selected_window (struct buffer *b, Lisp_Object val) 937bset_last_selected_window (struct buffer *b, Lisp_Object val)
938{ 938{
939 b->last_selected_window = val; 939 b->last_selected_window_ = val;
940} 940}
941INLINE void 941INLINE void
942bset_local_var_alist (struct buffer *b, Lisp_Object val) 942bset_local_var_alist (struct buffer *b, Lisp_Object val)
943{ 943{
944 b->local_var_alist = val; 944 b->local_var_alist_ = val;
945} 945}
946INLINE void 946INLINE void
947bset_mark_active (struct buffer *b, Lisp_Object val) 947bset_mark_active (struct buffer *b, Lisp_Object val)
948{ 948{
949 b->mark_active = val; 949 b->mark_active_ = val;
950} 950}
951INLINE void 951INLINE void
952bset_point_before_scroll (struct buffer *b, Lisp_Object val) 952bset_point_before_scroll (struct buffer *b, Lisp_Object val)
953{ 953{
954 b->point_before_scroll = val; 954 b->point_before_scroll_ = val;
955} 955}
956INLINE void 956INLINE void
957bset_read_only (struct buffer *b, Lisp_Object val) 957bset_read_only (struct buffer *b, Lisp_Object val)
958{ 958{
959 b->read_only = val; 959 b->read_only_ = val;
960} 960}
961INLINE void 961INLINE void
962bset_truncate_lines (struct buffer *b, Lisp_Object val) 962bset_truncate_lines (struct buffer *b, Lisp_Object val)
963{ 963{
964 b->truncate_lines = val; 964 b->truncate_lines_ = val;
965} 965}
966INLINE void 966INLINE void
967bset_undo_list (struct buffer *b, Lisp_Object val) 967bset_undo_list (struct buffer *b, Lisp_Object val)
968{ 968{
969 b->undo_list = val; 969 b->undo_list_ = val;
970} 970}
971INLINE void 971INLINE void
972bset_upcase_table (struct buffer *b, Lisp_Object val) 972bset_upcase_table (struct buffer *b, Lisp_Object val)
973{ 973{
974 b->upcase_table = val; 974 b->upcase_table_ = val;
975} 975}
976INLINE void 976INLINE void
977bset_width_table (struct buffer *b, Lisp_Object val) 977bset_width_table (struct buffer *b, Lisp_Object val)
978{ 978{
979 b->width_table = val; 979 b->width_table_ = val;
980} 980}
981 981
982/* Number of Lisp_Objects at the beginning of struct buffer. 982/* Number of Lisp_Objects at the beginning of struct buffer.
@@ -1253,7 +1253,7 @@ extern int last_per_buffer_idx;
1253 from the start of a buffer structure. */ 1253 from the start of a buffer structure. */
1254 1254
1255#define PER_BUFFER_VAR_OFFSET(VAR) \ 1255#define PER_BUFFER_VAR_OFFSET(VAR) \
1256 offsetof (struct buffer, VAR) 1256 offsetof (struct buffer, VAR ## _)
1257 1257
1258/* Used to iterate over normal Lisp_Object fields of struct buffer (all 1258/* Used to iterate over normal Lisp_Object fields of struct buffer (all
1259 Lisp_Objects except undo_list). If you add, remove, or reorder 1259 Lisp_Objects except undo_list). If you add, remove, or reorder
diff --git a/src/category.c b/src/category.c
index 1bf9366c6d6..ab90f5ff093 100644
--- a/src/category.c
+++ b/src/category.c
@@ -41,7 +41,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
41static void 41static void
42bset_category_table (struct buffer *b, Lisp_Object val) 42bset_category_table (struct buffer *b, Lisp_Object val)
43{ 43{
44 b->category_table = val; 44 b->category_table_ = val;
45} 45}
46 46
47/* The version number of the latest category table. Each category 47/* The version number of the latest category table. Each category
diff --git a/src/keyboard.c b/src/keyboard.c
index 97d79df3700..c2739df10fa 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -391,47 +391,47 @@ static void store_user_signal_events (void);
391static void 391static void
392kset_echo_string (struct kboard *kb, Lisp_Object val) 392kset_echo_string (struct kboard *kb, Lisp_Object val)
393{ 393{
394 kb->echo_string = val; 394 kb->echo_string_ = val;
395} 395}
396static void 396static void
397kset_kbd_queue (struct kboard *kb, Lisp_Object val) 397kset_kbd_queue (struct kboard *kb, Lisp_Object val)
398{ 398{
399 kb->kbd_queue = val; 399 kb->kbd_queue_ = val;
400} 400}
401static void 401static void
402kset_keyboard_translate_table (struct kboard *kb, Lisp_Object val) 402kset_keyboard_translate_table (struct kboard *kb, Lisp_Object val)
403{ 403{
404 kb->Vkeyboard_translate_table = val; 404 kb->Vkeyboard_translate_table_ = val;
405} 405}
406static void 406static void
407kset_last_prefix_arg (struct kboard *kb, Lisp_Object val) 407kset_last_prefix_arg (struct kboard *kb, Lisp_Object val)
408{ 408{
409 kb->Vlast_prefix_arg = val; 409 kb->Vlast_prefix_arg_ = val;
410} 410}
411static void 411static void
412kset_last_repeatable_command (struct kboard *kb, Lisp_Object val) 412kset_last_repeatable_command (struct kboard *kb, Lisp_Object val)
413{ 413{
414 kb->Vlast_repeatable_command = val; 414 kb->Vlast_repeatable_command_ = val;
415} 415}
416static void 416static void
417kset_local_function_key_map (struct kboard *kb, Lisp_Object val) 417kset_local_function_key_map (struct kboard *kb, Lisp_Object val)
418{ 418{
419 kb->Vlocal_function_key_map = val; 419 kb->Vlocal_function_key_map_ = val;
420} 420}
421static void 421static void
422kset_overriding_terminal_local_map (struct kboard *kb, Lisp_Object val) 422kset_overriding_terminal_local_map (struct kboard *kb, Lisp_Object val)
423{ 423{
424 kb->Voverriding_terminal_local_map = val; 424 kb->Voverriding_terminal_local_map_ = val;
425} 425}
426static void 426static void
427kset_real_last_command (struct kboard *kb, Lisp_Object val) 427kset_real_last_command (struct kboard *kb, Lisp_Object val)
428{ 428{
429 kb->Vreal_last_command = val; 429 kb->Vreal_last_command_ = val;
430} 430}
431static void 431static void
432kset_system_key_syms (struct kboard *kb, Lisp_Object val) 432kset_system_key_syms (struct kboard *kb, Lisp_Object val)
433{ 433{
434 kb->system_key_syms = val; 434 kb->system_key_syms_ = val;
435} 435}
436 436
437 437
diff --git a/src/keyboard.h b/src/keyboard.h
index 33a94014ca1..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)->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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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->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->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->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->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->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->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->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->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. */
diff --git a/src/lisp.h b/src/lisp.h
index 40a3c9353d2..6d34ce3b052 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2896,7 +2896,7 @@ extern void defvar_kboard (struct Lisp_Kboard_Objfwd *, const char *, int);
2896#define DEFVAR_KBOARD(lname, vname, doc) \ 2896#define DEFVAR_KBOARD(lname, vname, doc) \
2897 do { \ 2897 do { \
2898 static struct Lisp_Kboard_Objfwd ko_fwd; \ 2898 static struct Lisp_Kboard_Objfwd ko_fwd; \
2899 defvar_kboard (&ko_fwd, lname, offsetof (KBOARD, vname)); \ 2899 defvar_kboard (&ko_fwd, lname, offsetof (KBOARD, vname ## _)); \
2900 } while (false) 2900 } while (false)
2901 2901
2902/* Save and restore the instruction and environment pointers, 2902/* Save and restore the instruction and environment pointers,
diff --git a/src/syntax.c b/src/syntax.c
index 7833ee84479..1695815902a 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -186,7 +186,7 @@ static bool in_classes (int, Lisp_Object);
186static void 186static void
187bset_syntax_table (struct buffer *b, Lisp_Object val) 187bset_syntax_table (struct buffer *b, Lisp_Object val)
188{ 188{
189 b->syntax_table = val; 189 b->syntax_table_ = val;
190} 190}
191 191
192/* Whether the syntax of the character C has the prefix flag set. */ 192/* Whether the syntax of the character C has the prefix flag set. */