From: Eli Zaretskii Date: Wed, 12 Oct 2011 15:12:52 +0000 (+0200) Subject: Remove incorrect comments about U+2028 LS character. X-Git-Tag: emacs-pretest-24.0.91~140 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=79beb1785aac3f8326f58710462e4b6be7f0449a;p=emacs.git Remove incorrect comments about U+2028 LS character. See http://www.unicode.org/mail-arch/unicode-ml/y2011-m10/0048.html for more details. src/bidi.c (bidi_level_of_next_char): src/xdisp.c (get_visually_first_element): Remove old incorrect comments regarding the Unicode Line Separator character. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3c101365965..0d1faa3ba2f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2011-10-12 Eli Zaretskii + * bidi.c (bidi_level_of_next_char): + * xdisp.c (get_visually_first_element): Remove old incorrect + comments regarding the Unicode Line Separator character. + * bidi.c (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR. 2011-10-12 Dmitry Antipov diff --git a/src/bidi.c b/src/bidi.c index 2c312b14a10..d6be41f47a9 100644 --- a/src/bidi.c +++ b/src/bidi.c @@ -2128,7 +2128,7 @@ bidi_level_of_next_char (struct bidi_it *bidi_it) do { ch = bidi_fetch_char (bpos += clen, cpos += nc, &disp_pos, &dpp, &bs, fwp, &clen, &nc); - if (ch == '\n' || ch == BIDI_EOB /* || ch == LINESEP_CHAR */) + if (ch == '\n' || ch == BIDI_EOB) chtype = NEUTRAL_B; else chtype = bidi_get_type (ch, NEUTRAL_DIR); @@ -2178,7 +2178,6 @@ bidi_level_of_next_char (struct bidi_it *bidi_it) else if (bidi_it->orig_type == NEUTRAL_B /* L1 */ || bidi_it->orig_type == NEUTRAL_S || bidi_it->ch == '\n' || bidi_it->ch == BIDI_EOB - /* || bidi_it->ch == LINESEP_CHAR */ || (bidi_it->orig_type == NEUTRAL_WS && (bidi_it->next_for_ws.type == NEUTRAL_B || bidi_it->next_for_ws.type == NEUTRAL_S))) diff --git a/src/xdisp.c b/src/xdisp.c index 86098553e1d..b44c2fc765e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -7148,7 +7148,6 @@ get_visually_first_element (struct it *it) } else if (it->bidi_it.charpos == bob || (!string_p - /* FIXME: Should support all Unicode line separators. */ && (FETCH_CHAR (it->bidi_it.bytepos - 1) == '\n' || FETCH_CHAR (it->bidi_it.bytepos) == '\n'))) {