diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 14 | ||||
| -rw-r--r-- | src/bidi.c | 1 | ||||
| -rw-r--r-- | src/editfns.c | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 1 |
4 files changed, 16 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e22eab5f072..723556414f4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -787,6 +787,20 @@ | |||
| 787 | rather than rolling our own approximation. | 787 | rather than rolling our own approximation. |
| 788 | (SCROLL_BAR_VEC_SIZE): Remove; not used. | 788 | (SCROLL_BAR_VEC_SIZE): Remove; not used. |
| 789 | 789 | ||
| 790 | 2011-10-13 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 791 | |||
| 792 | * editfns.c (Fset_time_zone_rule): Replace free with xfree to | ||
| 793 | avoid crash when xmalloc overrun checking is enabled. | ||
| 794 | |||
| 795 | 2011-10-13 Eli Zaretskii <eliz@gnu.org> | ||
| 796 | |||
| 797 | * xdisp.c (Fcurrent_bidi_paragraph_direction): Initialize | ||
| 798 | itb.paragraph_dir to NEUTRAL_DIR. Fixes an occasional incorrect | ||
| 799 | cursor motion with <left> and <right> arrow keys. | ||
| 800 | |||
| 801 | * bidi.c (bidi_init_it): Don't initialize paragraph_dir here, as | ||
| 802 | some callers set that themselves. | ||
| 803 | |||
| 790 | 2011-10-12 Eli Zaretskii <eliz@gnu.org> | 804 | 2011-10-12 Eli Zaretskii <eliz@gnu.org> |
| 791 | 805 | ||
| 792 | * xdisp.c (find_row_edges): Handle the case where ROW comes from a | 806 | * xdisp.c (find_row_edges): Handle the case where ROW comes from a |
diff --git a/src/bidi.c b/src/bidi.c index e4965ed59ac..c6d7db96576 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -808,7 +808,6 @@ bidi_init_it (ptrdiff_t charpos, ptrdiff_t bytepos, int frame_window_p, | |||
| 808 | bidi_it->nchars = -1; /* to be computed in bidi_resolve_explicit_1 */ | 808 | bidi_it->nchars = -1; /* to be computed in bidi_resolve_explicit_1 */ |
| 809 | bidi_it->first_elt = 1; | 809 | bidi_it->first_elt = 1; |
| 810 | bidi_set_paragraph_end (bidi_it); | 810 | bidi_set_paragraph_end (bidi_it); |
| 811 | bidi_it->paragraph_dir = NEUTRAL_DIR; | ||
| 812 | bidi_it->new_paragraph = 1; | 811 | bidi_it->new_paragraph = 1; |
| 813 | bidi_it->separator_limit = -1; | 812 | bidi_it->separator_limit = -1; |
| 814 | bidi_it->type = NEUTRAL_B; | 813 | bidi_it->type = NEUTRAL_B; |
diff --git a/src/editfns.c b/src/editfns.c index 8489a47649e..48b601860ca 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2069,7 +2069,7 @@ only the former. */) | |||
| 2069 | } | 2069 | } |
| 2070 | 2070 | ||
| 2071 | set_time_zone_rule (tzstring); | 2071 | set_time_zone_rule (tzstring); |
| 2072 | free (environbuf); | 2072 | xfree (environbuf); |
| 2073 | environbuf = environ; | 2073 | environbuf = environ; |
| 2074 | 2074 | ||
| 2075 | return Qnil; | 2075 | return Qnil; |
diff --git a/src/xdisp.c b/src/xdisp.c index e9e8f8f4206..a264da3892a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -19491,6 +19491,7 @@ See also `bidi-paragraph-direction'. */) | |||
| 19491 | bytepos--; | 19491 | bytepos--; |
| 19492 | } | 19492 | } |
| 19493 | bidi_init_it (pos, bytepos, FRAME_WINDOW_P (SELECTED_FRAME ()), &itb); | 19493 | bidi_init_it (pos, bytepos, FRAME_WINDOW_P (SELECTED_FRAME ()), &itb); |
| 19494 | itb.paragraph_dir = NEUTRAL_DIR; | ||
| 19494 | itb.string.s = NULL; | 19495 | itb.string.s = NULL; |
| 19495 | itb.string.lstring = Qnil; | 19496 | itb.string.lstring = Qnil; |
| 19496 | itb.string.bufpos = 0; | 19497 | itb.string.bufpos = 0; |