diff options
| author | Eli Zaretskii | 2011-10-12 17:12:52 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2011-10-12 17:12:52 +0200 |
| commit | 79beb1785aac3f8326f58710462e4b6be7f0449a (patch) | |
| tree | 34104af74f3ff651b26b789992c4e6034da44e65 /src | |
| parent | 0074aef2275e06a767e75cc1b87d22cd7e47cd36 (diff) | |
| download | emacs-79beb1785aac3f8326f58710462e4b6be7f0449a.tar.gz emacs-79beb1785aac3f8326f58710462e4b6be7f0449a.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/bidi.c | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3c101365965..0d1faa3ba2f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2011-10-12 Eli Zaretskii <eliz@gnu.org> | 1 | 2011-10-12 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * bidi.c (bidi_level_of_next_char): | ||
| 4 | * xdisp.c (get_visually_first_element): Remove old incorrect | ||
| 5 | comments regarding the Unicode Line Separator character. | ||
| 6 | |||
| 3 | * bidi.c (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR. | 7 | * bidi.c (bidi_init_it): Initialize paragraph_dir to NEUTRAL_DIR. |
| 4 | 8 | ||
| 5 | 2011-10-12 Dmitry Antipov <dmantipov@yandex.ru> | 9 | 2011-10-12 Dmitry Antipov <dmantipov@yandex.ru> |
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) | |||
| 2128 | do { | 2128 | do { |
| 2129 | ch = bidi_fetch_char (bpos += clen, cpos += nc, &disp_pos, &dpp, &bs, | 2129 | ch = bidi_fetch_char (bpos += clen, cpos += nc, &disp_pos, &dpp, &bs, |
| 2130 | fwp, &clen, &nc); | 2130 | fwp, &clen, &nc); |
| 2131 | if (ch == '\n' || ch == BIDI_EOB /* || ch == LINESEP_CHAR */) | 2131 | if (ch == '\n' || ch == BIDI_EOB) |
| 2132 | chtype = NEUTRAL_B; | 2132 | chtype = NEUTRAL_B; |
| 2133 | else | 2133 | else |
| 2134 | chtype = bidi_get_type (ch, NEUTRAL_DIR); | 2134 | chtype = bidi_get_type (ch, NEUTRAL_DIR); |
| @@ -2178,7 +2178,6 @@ bidi_level_of_next_char (struct bidi_it *bidi_it) | |||
| 2178 | else if (bidi_it->orig_type == NEUTRAL_B /* L1 */ | 2178 | else if (bidi_it->orig_type == NEUTRAL_B /* L1 */ |
| 2179 | || bidi_it->orig_type == NEUTRAL_S | 2179 | || bidi_it->orig_type == NEUTRAL_S |
| 2180 | || bidi_it->ch == '\n' || bidi_it->ch == BIDI_EOB | 2180 | || bidi_it->ch == '\n' || bidi_it->ch == BIDI_EOB |
| 2181 | /* || bidi_it->ch == LINESEP_CHAR */ | ||
| 2182 | || (bidi_it->orig_type == NEUTRAL_WS | 2181 | || (bidi_it->orig_type == NEUTRAL_WS |
| 2183 | && (bidi_it->next_for_ws.type == NEUTRAL_B | 2182 | && (bidi_it->next_for_ws.type == NEUTRAL_B |
| 2184 | || bidi_it->next_for_ws.type == NEUTRAL_S))) | 2183 | || 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) | |||
| 7148 | } | 7148 | } |
| 7149 | else if (it->bidi_it.charpos == bob | 7149 | else if (it->bidi_it.charpos == bob |
| 7150 | || (!string_p | 7150 | || (!string_p |
| 7151 | /* FIXME: Should support all Unicode line separators. */ | ||
| 7152 | && (FETCH_CHAR (it->bidi_it.bytepos - 1) == '\n' | 7151 | && (FETCH_CHAR (it->bidi_it.bytepos - 1) == '\n' |
| 7153 | || FETCH_CHAR (it->bidi_it.bytepos) == '\n'))) | 7152 | || FETCH_CHAR (it->bidi_it.bytepos) == '\n'))) |
| 7154 | { | 7153 | { |