summaryrefslogtreecommitdiff
path: root/src/bidi.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2009-12-31 15:04:11 -0500
committerEli Zaretskii <eliz@gnu.org>2009-12-31 15:04:11 -0500
commitf44e260c0263804c89335f21f2778e36b3af351f (patch)
tree0033199644b6fa1248e8050a08fcf1ff4da7abb7 /src/bidi.c
parentb7b65b15091c57cf5b5c28caeac83aded8f5e9aa (diff)
downloademacs-f44e260c0263804c89335f21f2778e36b3af351f.tar.gz
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.
Diffstat (limited to 'src/bidi.c')
-rw-r--r--src/bidi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bidi.c b/src/bidi.c
index 2a3a9706767..46382b2b66c 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -155,6 +155,7 @@ int bidi_ignore_explicit_marks_for_paragraph_level = 1;
bidi_dir_t bidi_overriding_paragraph_direction = NEUTRAL_DIR;
+/* FIXME: Unused? */
#define ASCII_BIDI_TYPE_SET(STR, TYPE) \
do { \
unsigned char *p; \
@@ -448,7 +449,8 @@ bidi_initialize ()
bidi_type_table = Fmake_char_table (Qnil, make_number (STRONG_L));
for (i = 0; i < sizeof bidi_type / sizeof bidi_type[0]; i++)
- char_table_set_range (bidi_type_table, bidi_type[i].from, bidi_type[i].to,
+ char_table_set_range (bidi_type_table, bidi_type[i].from,
+ bidi_type[i].to ? bidi_type[i].to : bidi_type[i].from,
make_number (bidi_type[i].type));
bidi_initialized = 1;
}