diff options
| author | Dmitry Antipov | 2013-08-29 15:22:28 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-29 15:22:28 +0400 |
| commit | 101ed2bbbd42b780675fabb7a990f7613b1fb154 (patch) | |
| tree | 8415b28300f8da54f2e8fe78ff02e62ae580f1ef /src | |
| parent | 1f5cf2009af2779ad81412b9d111b37f6e2fd841 (diff) | |
| download | emacs-101ed2bbbd42b780675fabb7a990f7613b1fb154.tar.gz emacs-101ed2bbbd42b780675fabb7a990f7613b1fb154.zip | |
* alloc.c (Fmake_marker, build_marker): Zero need_adjustment
field of new marker (for sanity and safety).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/alloc.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a2a58487672..4bdb6de0689 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2013-08-29 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2013-08-29 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * alloc.c (Fmake_marker, build_marker): Zero need_adjustment | ||
| 4 | field of new marker (for sanity and safety). | ||
| 5 | |||
| 6 | 2013-08-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 7 | |||
| 3 | * xterm.c (x_clear_area): Lost 7th arg because it is always False. | 8 | * xterm.c (x_clear_area): Lost 7th arg because it is always False. |
| 4 | (x_after_update_window_line, x_scroll_bar_create): | 9 | (x_after_update_window_line, x_scroll_bar_create): |
| 5 | (x_scroll_bar_set_handle, XTset_vertical_scroll_bar): | 10 | (x_scroll_bar_set_handle, XTset_vertical_scroll_bar): |
diff --git a/src/alloc.c b/src/alloc.c index ebb8ef58991..8417ef4982b 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -3479,6 +3479,7 @@ DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0, | |||
| 3479 | p->charpos = 0; | 3479 | p->charpos = 0; |
| 3480 | p->next = NULL; | 3480 | p->next = NULL; |
| 3481 | p->insertion_type = 0; | 3481 | p->insertion_type = 0; |
| 3482 | p->need_adjustment = 0; | ||
| 3482 | return val; | 3483 | return val; |
| 3483 | } | 3484 | } |
| 3484 | 3485 | ||
| @@ -3503,6 +3504,7 @@ build_marker (struct buffer *buf, ptrdiff_t charpos, ptrdiff_t bytepos) | |||
| 3503 | m->charpos = charpos; | 3504 | m->charpos = charpos; |
| 3504 | m->bytepos = bytepos; | 3505 | m->bytepos = bytepos; |
| 3505 | m->insertion_type = 0; | 3506 | m->insertion_type = 0; |
| 3507 | m->need_adjustment = 0; | ||
| 3506 | m->next = BUF_MARKERS (buf); | 3508 | m->next = BUF_MARKERS (buf); |
| 3507 | BUF_MARKERS (buf) = m; | 3509 | BUF_MARKERS (buf) = m; |
| 3508 | return obj; | 3510 | return obj; |