Mercurial > emacs
comparison src/buffer.c @ 107584:e0df0337f248
Retrospective commit from 2009-08-15.
Start of work on bidi Emacs 23/24.
bidi.c (bidi_initialize): Fix initialization of bidi_type_table.
xdisp.c (set_iterator_to_next): Fix position setting after call
to bidi_get_next_char_visually.
bidi.c: Include stdio.h unconditionally. Fix and elaborate
commentary. Add Copyright blurb.
| author | Eli Zaretskii <eliz@gnu.org> |
|---|---|
| date | Thu, 31 Dec 2009 15:04:11 -0500 |
| parents | f35e7896a0fe |
| children | 69c12db7031d |
comparison
equal
deleted
inserted
replaced
| 107583:f35e7896a0fe | 107584:e0df0337f248 |
|---|---|
| 5184 | 5184 |
| 5185 XSETFASTINT (buffer_defaults.tab_width, 8); | 5185 XSETFASTINT (buffer_defaults.tab_width, 8); |
| 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.enable_bidi_display = Qnil; | 5189 buffer_defaults.bidi_display_reordering = Qnil; |
| 5190 buffer_defaults.orientation_reversed = Qnil; | 5190 buffer_defaults.direction_reversed = Qnil; |
| 5191 buffer_defaults.cursor_type = Qt; | 5191 buffer_defaults.cursor_type = Qt; |
| 5192 buffer_defaults.extra_line_spacing = Qnil; | 5192 buffer_defaults.extra_line_spacing = Qnil; |
| 5193 buffer_defaults.cursor_in_non_selected_windows = Qt; | 5193 buffer_defaults.cursor_in_non_selected_windows = Qt; |
| 5194 | 5194 |
| 5195 #ifdef DOS_NT | 5195 #ifdef DOS_NT |
| 5270 buffer_permanent_local_flags[idx++] = 1; | 5270 buffer_permanent_local_flags[idx++] = 1; |
| 5271 #endif | 5271 #endif |
| 5272 XSETFASTINT (buffer_local_flags.syntax_table, idx); ++idx; | 5272 XSETFASTINT (buffer_local_flags.syntax_table, idx); ++idx; |
| 5273 XSETFASTINT (buffer_local_flags.cache_long_line_scans, idx); ++idx; | 5273 XSETFASTINT (buffer_local_flags.cache_long_line_scans, idx); ++idx; |
| 5274 XSETFASTINT (buffer_local_flags.category_table, idx); ++idx; | 5274 XSETFASTINT (buffer_local_flags.category_table, idx); ++idx; |
| 5275 XSETFASTINT (buffer_local_flags.enable_bidi_display, idx); ++idx; | 5275 XSETFASTINT (buffer_local_flags.bidi_display_reordering, idx); ++idx; |
| 5276 XSETFASTINT (buffer_local_flags.orientation_reversed, idx); ++idx; | 5276 XSETFASTINT (buffer_local_flags.direction_reversed, idx); ++idx; |
| 5277 XSETFASTINT (buffer_local_flags.buffer_file_coding_system, idx); | 5277 XSETFASTINT (buffer_local_flags.buffer_file_coding_system, idx); |
| 5278 /* Make this one a permanent local. */ | 5278 /* Make this one a permanent local. */ |
| 5279 buffer_permanent_local_flags[idx++] = 1; | 5279 buffer_permanent_local_flags[idx++] = 1; |
| 5280 XSETFASTINT (buffer_local_flags.left_margin_cols, idx); ++idx; | 5280 XSETFASTINT (buffer_local_flags.left_margin_cols, idx); ++idx; |
| 5281 XSETFASTINT (buffer_local_flags.right_margin_cols, idx); ++idx; | 5281 XSETFASTINT (buffer_local_flags.right_margin_cols, idx); ++idx; |
| 5528 DEFVAR_LISP_NOPRO ("default-ctl-arrow", | 5528 DEFVAR_LISP_NOPRO ("default-ctl-arrow", |
| 5529 &buffer_defaults.ctl_arrow, | 5529 &buffer_defaults.ctl_arrow, |
| 5530 doc: /* Default value of `ctl-arrow' for buffers that do not override it. | 5530 doc: /* Default value of `ctl-arrow' for buffers that do not override it. |
| 5531 This is the same as (default-value 'ctl-arrow). */); | 5531 This is the same as (default-value 'ctl-arrow). */); |
| 5532 | 5532 |
| 5533 DEFVAR_LISP_NOPRO ("default-enable-bidi-display", | 5533 DEFVAR_LISP_NOPRO ("default-bidi-display-reordering", |
| 5534 &buffer_defaults.enable_bidi_display, | 5534 &buffer_defaults.bidi_display_reordering, |
| 5535 doc: /* *Default value of `enable-bidi-display' for buffers not overriding it. | 5535 doc: /* *Default value of `bidi-display-reordering' for buffers not overriding it. |
| 5536 This is the same as (default-value 'enable-bidi-display). */); | 5536 This is the same as (default-value 'bidi-display-reordering). */); |
| 5537 | 5537 |
| 5538 DEFVAR_LISP_NOPRO ("default-orientation-reversed", | 5538 DEFVAR_LISP_NOPRO ("default-direction-reversed", |
| 5539 &buffer_defaults.orientation_reversed, | 5539 &buffer_defaults.direction_reversed, |
| 5540 doc: /* *Default value of `orientation-reversed' for buffers that do not override it. | 5540 doc: /* Default value of `direction-reversed' for buffers that do not override it. |
| 5541 This is the same as (default-value 'orientation-reversed). */); | 5541 This is the same as (default-value 'direction-reversed). */); |
| 5542 | 5542 |
| 5543 DEFVAR_LISP_NOPRO ("default-enable-multibyte-characters", | 5543 DEFVAR_LISP_NOPRO ("default-enable-multibyte-characters", |
| 5544 &buffer_defaults.enable_multibyte_characters, | 5544 &buffer_defaults.enable_multibyte_characters, |
| 5545 doc: /* *Default value of `enable-multibyte-characters' for buffers not overriding it. | 5545 doc: /* *Default value of `enable-multibyte-characters' for buffers not overriding it. |
| 5546 This is the same as (default-value 'enable-multibyte-characters). */); | 5546 This is the same as (default-value 'enable-multibyte-characters). */); |
| 5794 | 5794 |
| 5795 The variable `coding-system-for-write', if non-nil, overrides this variable. | 5795 The variable `coding-system-for-write', if non-nil, overrides this variable. |
| 5796 | 5796 |
| 5797 This variable is never applied to a way of decoding a file while reading it. */); | 5797 This variable is never applied to a way of decoding a file while reading it. */); |
| 5798 | 5798 |
| 5799 DEFVAR_PER_BUFFER ("orientation-reversed", | 5799 DEFVAR_PER_BUFFER ("direction-reversed", |
| 5800 ¤t_buffer->orientation_reversed, Qnil, | 5800 ¤t_buffer->direction_reversed, Qnil, |
| 5801 doc: /* Non-nil means set beginning of lines at the right end of the window. | 5801 doc: /* Non-nil means set beginning of lines at the right edge of the window. |
| 5802 See also the variable `enable-bidi-display'. */); | 5802 See also the variable `bidi-display-reordering'. */); |
| 5803 | 5803 |
| 5804 DEFVAR_PER_BUFFER ("enable-bidi-display", | 5804 DEFVAR_PER_BUFFER ("bidi-display-reordering", |
| 5805 ¤t_buffer->enable_bidi_display, Qnil, | 5805 ¤t_buffer->bidi_display_reordering, Qnil, |
| 5806 doc: /*Non-nil means display bidi text in correct visual order. | 5806 doc: /*Non-nil means reorder bidirectional text for display in the visual order. |
| 5807 See also the variable `orientation-reversed'. */); | 5807 See also the variable `direction-reversed'. */); |
| 5808 | 5808 |
| 5809 DEFVAR_PER_BUFFER ("truncate-lines", ¤t_buffer->truncate_lines, Qnil, | 5809 DEFVAR_PER_BUFFER ("truncate-lines", ¤t_buffer->truncate_lines, Qnil, |
| 5810 doc: /* *Non-nil means do not display continuation lines. | 5810 doc: /* *Non-nil means do not display continuation lines. |
| 5811 Instead, give each line of text just one screen line. | 5811 Instead, give each line of text just one screen line. |
| 5812 | 5812 |
