Mercurial > emacs
diff src/buffer.c @ 107596:866e76f8ad75
Retrospective commit from 2009-10-08.
Finish up working on paragraph's base direction.
Start working on display of right-to-left glyph rows.
Rewrite set_cursor_from_row to support bidi.
xdisp.c (string_buffer_position_lim): New function.
(string_buffer_position): Most of code moved to
string_buffer_position_lim. Last argument and return value are
now EMACS_INT; all callers changed.
(set_cursor_from_row): Rewritten to support bidirectional text and
reversed glyph rows.
dispextern.h <string_buffer_position>: Update prototype.
bidi.c (bidi_paragraph_init): Fix initialization of POS.
dispextern.h (struct glyph_row): New member reversed_p.
buffer.c (syms_of_buffer): Remove DEFVAR_LISP_NOPRO for
default-direction-reversed, default-bidi-display-reordering, and
default-paragraph-direction.
| author | Eli Zaretskii <eliz@gnu.org> |
|---|---|
| date | Fri, 01 Jan 2010 06:27:51 -0500 |
| parents | 69c12db7031d |
| children | d44bdcba4457 |
line wrap: on
line diff
--- a/src/buffer.c Fri Jan 01 06:22:52 2010 -0500 +++ b/src/buffer.c Fri Jan 01 06:27:51 2010 -0500 @@ -5532,26 +5532,11 @@ doc: /* Default value of `ctl-arrow' for buffers that do not override it. This is the same as (default-value 'ctl-arrow). */); - DEFVAR_LISP_NOPRO ("default-bidi-display-reordering", - &buffer_defaults.bidi_display_reordering, - doc: /* *Default value of `bidi-display-reordering' for buffers not overriding it. -This is the same as (default-value 'bidi-display-reordering). */); - - DEFVAR_LISP_NOPRO ("default-direction-reversed", - &buffer_defaults.direction_reversed, - doc: /* Default value of `direction-reversed' for buffers that do not override it. -This is the same as (default-value 'direction-reversed). */); - DEFVAR_LISP_NOPRO ("default-enable-multibyte-characters", &buffer_defaults.enable_multibyte_characters, doc: /* *Default value of `enable-multibyte-characters' for buffers not overriding it. This is the same as (default-value 'enable-multibyte-characters). */); - DEFVAR_LISP_NOPRO ("default-paragraph-direction", - &buffer_defaults.paragraph_direction, - doc: /* Default value of `paragraph-direction' for buffers that do not override it. -This is the same as (default-value 'paragraph-direction). */); - DEFVAR_LISP_NOPRO ("default-buffer-file-coding-system", &buffer_defaults.buffer_file_coding_system, doc: /* Default value of `buffer-file-coding-system' for buffers not overriding it. @@ -5810,7 +5795,7 @@ DEFVAR_PER_BUFFER ("bidi-display-reordering", ¤t_buffer->bidi_display_reordering, Qnil, - doc: /*Non-nil means reorder bidirectional text for display in the visual order. + doc: /* Non-nil means reorder bidirectional text for display in the visual order. See also the variable `direction-reversed'. */); DEFVAR_PER_BUFFER ("paragraph-direction",
