diff options
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 188 |
1 files changed, 94 insertions, 94 deletions
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 | |||
| 881 | INLINE void | 881 | INLINE void |
| 882 | bset_bidi_paragraph_direction (struct buffer *b, Lisp_Object val) | 882 | bset_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 | } |
| 886 | INLINE void | 886 | INLINE void |
| 887 | bset_cache_long_scans (struct buffer *b, Lisp_Object val) | 887 | bset_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 | } |
| 891 | INLINE void | 891 | INLINE void |
| 892 | bset_case_canon_table (struct buffer *b, Lisp_Object val) | 892 | bset_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 | } |
| 896 | INLINE void | 896 | INLINE void |
| 897 | bset_case_eqv_table (struct buffer *b, Lisp_Object val) | 897 | bset_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 | } |
| 901 | INLINE void | 901 | INLINE void |
| 902 | bset_directory (struct buffer *b, Lisp_Object val) | 902 | bset_directory (struct buffer *b, Lisp_Object val) |
| 903 | { | 903 | { |
| 904 | b->directory = val; | 904 | b->directory_ = val; |
| 905 | } | 905 | } |
| 906 | INLINE void | 906 | INLINE void |
| 907 | bset_display_count (struct buffer *b, Lisp_Object val) | 907 | bset_display_count (struct buffer *b, Lisp_Object val) |
| 908 | { | 908 | { |
| 909 | b->display_count = val; | 909 | b->display_count_ = val; |
| 910 | } | 910 | } |
| 911 | INLINE void | 911 | INLINE void |
| 912 | bset_display_time (struct buffer *b, Lisp_Object val) | 912 | bset_display_time (struct buffer *b, Lisp_Object val) |
| 913 | { | 913 | { |
| 914 | b->display_time = val; | 914 | b->display_time_ = val; |
| 915 | } | 915 | } |
| 916 | INLINE void | 916 | INLINE void |
| 917 | bset_downcase_table (struct buffer *b, Lisp_Object val) | 917 | bset_downcase_table (struct buffer *b, Lisp_Object val) |
| 918 | { | 918 | { |
| 919 | b->downcase_table = val; | 919 | b->downcase_table_ = val; |
| 920 | } | 920 | } |
| 921 | INLINE void | 921 | INLINE void |
| 922 | bset_enable_multibyte_characters (struct buffer *b, Lisp_Object val) | 922 | bset_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 | } |
| 926 | INLINE void | 926 | INLINE void |
| 927 | bset_filename (struct buffer *b, Lisp_Object val) | 927 | bset_filename (struct buffer *b, Lisp_Object val) |
| 928 | { | 928 | { |
| 929 | b->filename = val; | 929 | b->filename_ = val; |
| 930 | } | 930 | } |
| 931 | INLINE void | 931 | INLINE void |
| 932 | bset_keymap (struct buffer *b, Lisp_Object val) | 932 | bset_keymap (struct buffer *b, Lisp_Object val) |
| 933 | { | 933 | { |
| 934 | b->keymap = val; | 934 | b->keymap_ = val; |
| 935 | } | 935 | } |
| 936 | INLINE void | 936 | INLINE void |
| 937 | bset_last_selected_window (struct buffer *b, Lisp_Object val) | 937 | bset_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 | } |
| 941 | INLINE void | 941 | INLINE void |
| 942 | bset_local_var_alist (struct buffer *b, Lisp_Object val) | 942 | bset_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 | } |
| 946 | INLINE void | 946 | INLINE void |
| 947 | bset_mark_active (struct buffer *b, Lisp_Object val) | 947 | bset_mark_active (struct buffer *b, Lisp_Object val) |
| 948 | { | 948 | { |
| 949 | b->mark_active = val; | 949 | b->mark_active_ = val; |
| 950 | } | 950 | } |
| 951 | INLINE void | 951 | INLINE void |
| 952 | bset_point_before_scroll (struct buffer *b, Lisp_Object val) | 952 | bset_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 | } |
| 956 | INLINE void | 956 | INLINE void |
| 957 | bset_read_only (struct buffer *b, Lisp_Object val) | 957 | bset_read_only (struct buffer *b, Lisp_Object val) |
| 958 | { | 958 | { |
| 959 | b->read_only = val; | 959 | b->read_only_ = val; |
| 960 | } | 960 | } |
| 961 | INLINE void | 961 | INLINE void |
| 962 | bset_truncate_lines (struct buffer *b, Lisp_Object val) | 962 | bset_truncate_lines (struct buffer *b, Lisp_Object val) |
| 963 | { | 963 | { |
| 964 | b->truncate_lines = val; | 964 | b->truncate_lines_ = val; |
| 965 | } | 965 | } |
| 966 | INLINE void | 966 | INLINE void |
| 967 | bset_undo_list (struct buffer *b, Lisp_Object val) | 967 | bset_undo_list (struct buffer *b, Lisp_Object val) |
| 968 | { | 968 | { |
| 969 | b->undo_list = val; | 969 | b->undo_list_ = val; |
| 970 | } | 970 | } |
| 971 | INLINE void | 971 | INLINE void |
| 972 | bset_upcase_table (struct buffer *b, Lisp_Object val) | 972 | bset_upcase_table (struct buffer *b, Lisp_Object val) |
| 973 | { | 973 | { |
| 974 | b->upcase_table = val; | 974 | b->upcase_table_ = val; |
| 975 | } | 975 | } |
| 976 | INLINE void | 976 | INLINE void |
| 977 | bset_width_table (struct buffer *b, Lisp_Object val) | 977 | bset_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 |