Mercurial > emacs
comparison src/buffer.c @ 108003:4b71850034e6
* buffer.h (struct buffer): Remove unused var `direction_reversed'.
* buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
* bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Tue, 20 Apr 2010 13:01:39 -0400 |
| parents | bef5d1738c0b |
| children | 452f0cc5f879 |
comparison
equal
deleted
inserted
replaced
| 108002:c609e6e60b3d | 108003:4b71850034e6 |
|---|---|
| 5173 XSETFASTINT (buffer_defaults.tab_width, 8); | 5173 XSETFASTINT (buffer_defaults.tab_width, 8); |
| 5174 buffer_defaults.truncate_lines = Qnil; | 5174 buffer_defaults.truncate_lines = Qnil; |
| 5175 buffer_defaults.word_wrap = Qnil; | 5175 buffer_defaults.word_wrap = Qnil; |
| 5176 buffer_defaults.ctl_arrow = Qt; | 5176 buffer_defaults.ctl_arrow = Qt; |
| 5177 buffer_defaults.bidi_display_reordering = Qnil; | 5177 buffer_defaults.bidi_display_reordering = Qnil; |
| 5178 buffer_defaults.direction_reversed = Qnil; | |
| 5179 buffer_defaults.bidi_paragraph_direction = Qnil; | 5178 buffer_defaults.bidi_paragraph_direction = Qnil; |
| 5180 buffer_defaults.cursor_type = Qt; | 5179 buffer_defaults.cursor_type = Qt; |
| 5181 buffer_defaults.extra_line_spacing = Qnil; | 5180 buffer_defaults.extra_line_spacing = Qnil; |
| 5182 buffer_defaults.cursor_in_non_selected_windows = Qt; | 5181 buffer_defaults.cursor_in_non_selected_windows = Qt; |
| 5183 | 5182 |
| 5260 #endif | 5259 #endif |
| 5261 XSETFASTINT (buffer_local_flags.syntax_table, idx); ++idx; | 5260 XSETFASTINT (buffer_local_flags.syntax_table, idx); ++idx; |
| 5262 XSETFASTINT (buffer_local_flags.cache_long_line_scans, idx); ++idx; | 5261 XSETFASTINT (buffer_local_flags.cache_long_line_scans, idx); ++idx; |
| 5263 XSETFASTINT (buffer_local_flags.category_table, idx); ++idx; | 5262 XSETFASTINT (buffer_local_flags.category_table, idx); ++idx; |
| 5264 XSETFASTINT (buffer_local_flags.bidi_display_reordering, idx); ++idx; | 5263 XSETFASTINT (buffer_local_flags.bidi_display_reordering, idx); ++idx; |
| 5265 XSETFASTINT (buffer_local_flags.direction_reversed, idx); ++idx; | |
| 5266 XSETFASTINT (buffer_local_flags.bidi_paragraph_direction, idx); ++idx; | 5264 XSETFASTINT (buffer_local_flags.bidi_paragraph_direction, idx); ++idx; |
| 5267 XSETFASTINT (buffer_local_flags.buffer_file_coding_system, idx); | 5265 XSETFASTINT (buffer_local_flags.buffer_file_coding_system, idx); |
| 5268 /* Make this one a permanent local. */ | 5266 /* Make this one a permanent local. */ |
| 5269 buffer_permanent_local_flags[idx++] = 1; | 5267 buffer_permanent_local_flags[idx++] = 1; |
| 5270 XSETFASTINT (buffer_local_flags.left_margin_cols, idx); ++idx; | 5268 XSETFASTINT (buffer_local_flags.left_margin_cols, idx); ++idx; |
| 5782 | 5780 |
| 5783 The variable `coding-system-for-write', if non-nil, overrides this variable. | 5781 The variable `coding-system-for-write', if non-nil, overrides this variable. |
| 5784 | 5782 |
| 5785 This variable is never applied to a way of decoding a file while reading it. */); | 5783 This variable is never applied to a way of decoding a file while reading it. */); |
| 5786 | 5784 |
| 5787 DEFVAR_PER_BUFFER ("direction-reversed", | |
| 5788 ¤t_buffer->direction_reversed, Qnil, | |
| 5789 doc: /* Non-nil means set beginning of lines at the right edge of the window. | |
| 5790 See also the variable `bidi-display-reordering'. */); | |
| 5791 | |
| 5792 DEFVAR_PER_BUFFER ("bidi-display-reordering", | 5785 DEFVAR_PER_BUFFER ("bidi-display-reordering", |
| 5793 ¤t_buffer->bidi_display_reordering, Qnil, | 5786 ¤t_buffer->bidi_display_reordering, Qnil, |
| 5794 doc: /* Non-nil means reorder bidirectional text for display in the visual order. | 5787 doc: /* Non-nil means reorder bidirectional text for display in the visual order. |
| 5795 See also the variable `direction-reversed'. */); | 5788 See also the variable `direction-reversed'. */); |
| 5796 | 5789 |
| 5797 DEFVAR_PER_BUFFER ("bidi-paragraph-direction", | 5790 DEFVAR_PER_BUFFER ("bidi-paragraph-direction", |
| 5798 ¤t_buffer->bidi_paragraph_direction, Qnil, | 5791 ¤t_buffer->bidi_paragraph_direction, Qnil, |
| 5799 doc: /* *If non-nil, forces directionality of text paragraphs in the buffer. | 5792 doc: /* *If non-nil, forces directionality of text paragraphs in the buffer. |
| 5800 | 5793 |
| 5801 If this is nil (the default), the direction of each paragraph is | 5794 If this is nil (the default), the direction of each paragraph is |
| 5802 determined by the first strong directional character of its text. | 5795 determined by the first strong directional character of its text. |
| 5803 The values of `right-to-left' and `left-to-right' override that. | 5796 The values of `right-to-left' and `left-to-right' override that. |
| 5804 Any other value is treated as nil. | 5797 Any other value is treated as nil. |
| 5805 | 5798 |
| 5806 This variable has no effect unless the buffer's value of | 5799 This variable has no effect unless the buffer's value of |
| 5807 \`bidi-display-reordering' is non-nil. */); | 5800 \`bidi-display-reordering' is non-nil. */); |
| 5808 | 5801 |
| 5809 DEFVAR_PER_BUFFER ("truncate-lines", ¤t_buffer->truncate_lines, Qnil, | 5802 DEFVAR_PER_BUFFER ("truncate-lines", ¤t_buffer->truncate_lines, Qnil, |
| 5810 doc: /* *Non-nil means do not display continuation lines. | 5803 doc: /* *Non-nil means do not display continuation lines. |
