Mercurial > emacs
comparison src/buffer.c @ 107602:d44bdcba4457
Retrospective commit from 2009-11-14.
Resurrect support for integer values of `cursor' property.
Rename paragraph-direction to bidi-paragraph-direction.
xdisp.c (init_iterator, text_outside_line_unchanged_p)
(try_window_id): Rename paragraph_direction to
bidi_paragraph_direction.
(set_cursor_from_row): Handle integer values of `cursor' property
on display strings.
buffer.c (init_buffer_once, syms_of_buffer): Rename
paragraph_direction to bidi_paragraph_direction.
buffer.h (struct buffer): Rename paragraph_direction to
bidi_paragraph_direction.
| author | Eli Zaretskii <eliz@gnu.org> |
|---|---|
| date | Fri, 01 Jan 2010 06:57:39 -0500 |
| parents | 866e76f8ad75 |
| children | b1e1b45c9fb6 |
comparison
equal
deleted
inserted
replaced
| 107601:ee023eee6207 | 107602:d44bdcba4457 |
|---|---|
| 5186 buffer_defaults.truncate_lines = Qnil; | 5186 buffer_defaults.truncate_lines = Qnil; |
| 5187 buffer_defaults.word_wrap = Qnil; | 5187 buffer_defaults.word_wrap = Qnil; |
| 5188 buffer_defaults.ctl_arrow = Qt; | 5188 buffer_defaults.ctl_arrow = Qt; |
| 5189 buffer_defaults.bidi_display_reordering = Qnil; | 5189 buffer_defaults.bidi_display_reordering = Qnil; |
| 5190 buffer_defaults.direction_reversed = Qnil; | 5190 buffer_defaults.direction_reversed = Qnil; |
| 5191 buffer_defaults.paragraph_direction = Qnil; | 5191 buffer_defaults.bidi_paragraph_direction = Qnil; |
| 5192 buffer_defaults.cursor_type = Qt; | 5192 buffer_defaults.cursor_type = Qt; |
| 5193 buffer_defaults.extra_line_spacing = Qnil; | 5193 buffer_defaults.extra_line_spacing = Qnil; |
| 5194 buffer_defaults.cursor_in_non_selected_windows = Qt; | 5194 buffer_defaults.cursor_in_non_selected_windows = Qt; |
| 5195 | 5195 |
| 5196 #ifdef DOS_NT | 5196 #ifdef DOS_NT |
| 5273 XSETFASTINT (buffer_local_flags.syntax_table, idx); ++idx; | 5273 XSETFASTINT (buffer_local_flags.syntax_table, idx); ++idx; |
| 5274 XSETFASTINT (buffer_local_flags.cache_long_line_scans, idx); ++idx; | 5274 XSETFASTINT (buffer_local_flags.cache_long_line_scans, idx); ++idx; |
| 5275 XSETFASTINT (buffer_local_flags.category_table, idx); ++idx; | 5275 XSETFASTINT (buffer_local_flags.category_table, idx); ++idx; |
| 5276 XSETFASTINT (buffer_local_flags.bidi_display_reordering, idx); ++idx; | 5276 XSETFASTINT (buffer_local_flags.bidi_display_reordering, idx); ++idx; |
| 5277 XSETFASTINT (buffer_local_flags.direction_reversed, idx); ++idx; | 5277 XSETFASTINT (buffer_local_flags.direction_reversed, idx); ++idx; |
| 5278 XSETFASTINT (buffer_local_flags.paragraph_direction, idx); ++idx; | 5278 XSETFASTINT (buffer_local_flags.bidi_paragraph_direction, idx); ++idx; |
| 5279 XSETFASTINT (buffer_local_flags.buffer_file_coding_system, idx); | 5279 XSETFASTINT (buffer_local_flags.buffer_file_coding_system, idx); |
| 5280 /* Make this one a permanent local. */ | 5280 /* Make this one a permanent local. */ |
| 5281 buffer_permanent_local_flags[idx++] = 1; | 5281 buffer_permanent_local_flags[idx++] = 1; |
| 5282 XSETFASTINT (buffer_local_flags.left_margin_cols, idx); ++idx; | 5282 XSETFASTINT (buffer_local_flags.left_margin_cols, idx); ++idx; |
| 5283 XSETFASTINT (buffer_local_flags.right_margin_cols, idx); ++idx; | 5283 XSETFASTINT (buffer_local_flags.right_margin_cols, idx); ++idx; |
| 5796 DEFVAR_PER_BUFFER ("bidi-display-reordering", | 5796 DEFVAR_PER_BUFFER ("bidi-display-reordering", |
| 5797 ¤t_buffer->bidi_display_reordering, Qnil, | 5797 ¤t_buffer->bidi_display_reordering, Qnil, |
| 5798 doc: /* Non-nil means reorder bidirectional text for display in the visual order. | 5798 doc: /* Non-nil means reorder bidirectional text for display in the visual order. |
| 5799 See also the variable `direction-reversed'. */); | 5799 See also the variable `direction-reversed'. */); |
| 5800 | 5800 |
| 5801 DEFVAR_PER_BUFFER ("paragraph-direction", | 5801 DEFVAR_PER_BUFFER ("bidi-paragraph-direction", |
| 5802 ¤t_buffer->paragraph_direction, Qnil, | 5802 ¤t_buffer->bidi_paragraph_direction, Qnil, |
| 5803 doc: /* *If non-nil, forces directionality of text paragraphs in the buffer. | 5803 doc: /* *If non-nil, forces directionality of text paragraphs in the buffer. |
| 5804 | 5804 |
| 5805 If this is nil (the default), the direction of each paragraph is | 5805 If this is nil (the default), the direction of each paragraph is |
| 5806 determined by the first strong directional character of its text. | 5806 determined by the first strong directional character of its text. |
| 5807 The values of `right-to-left' and `left-to-right' override that. | 5807 The values of `right-to-left' and `left-to-right' override that. |
