diff options
author | Eli Zaretskii <eliz@gnu.org> | 2010-01-01 06:27:51 -0500 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2010-01-01 06:27:51 -0500 |
commit | c143c213258b4dc980dab0629e571ff0c227fc34 (patch) | |
tree | 01977cfa7bda8a1b3e9cc260da29c7eda511ab84 /src/buffer.c | |
parent | b44d9321f299626113e7b2e15371b20f7ad38892 (diff) | |
download | emacs-c143c213258b4dc980dab0629e571ff0c227fc34.tar.gz |
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.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/buffer.c b/src/buffer.c index 8484abcdbb5..0d9247eb61b 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -5532,26 +5532,11 @@ This is the same as (default-value 'abbrev-mode). */); 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 @@ See also the variable `bidi-display-reordering'. */); 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", |