diff options
| author | Joakim Verona | 2013-08-14 08:37:00 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-14 08:37:00 +0200 |
| commit | 0d50a0024015b4198a75dc70475b351d7c98d74f (patch) | |
| tree | 84351e43007d54e43de7e2dc349d7ed0f1e13224 /src/window.c | |
| parent | ce7942f31ff4f4902ef2648020f2b96047b68cda (diff) | |
| parent | 2084152aee6fe88fda43ffb5fd654aeae5d12129 (diff) | |
| download | emacs-0d50a0024015b4198a75dc70475b351d7c98d74f.tar.gz emacs-0d50a0024015b4198a75dc70475b351d7c98d74f.zip | |
merge from trunk
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c index c61a02aeb01..887c3a92ab7 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1542,7 +1542,7 @@ if it isn't already recorded. */) | |||
| 1542 | set_buffer_internal (old_buffer); | 1542 | set_buffer_internal (old_buffer); |
| 1543 | } | 1543 | } |
| 1544 | else | 1544 | else |
| 1545 | XSETINT (value, BUF_Z (b) - XFASTINT (w->window_end_pos)); | 1545 | XSETINT (value, BUF_Z (b) - w->window_end_pos); |
| 1546 | 1546 | ||
| 1547 | return value; | 1547 | return value; |
| 1548 | } | 1548 | } |
| @@ -2036,8 +2036,8 @@ replace_window (Lisp_Object old, Lisp_Object new, int setflag) | |||
| 2036 | n->phys_cursor_width = -1; | 2036 | n->phys_cursor_width = -1; |
| 2037 | n->must_be_updated_p = 0; | 2037 | n->must_be_updated_p = 0; |
| 2038 | n->pseudo_window_p = 0; | 2038 | n->pseudo_window_p = 0; |
| 2039 | wset_window_end_vpos (n, make_number (0)); | 2039 | n->window_end_vpos = 0; |
| 2040 | wset_window_end_pos (n, make_number (0)); | 2040 | n->window_end_pos = 0; |
| 2041 | n->window_end_valid = 0; | 2041 | n->window_end_valid = 0; |
| 2042 | } | 2042 | } |
| 2043 | 2043 | ||
| @@ -3173,8 +3173,8 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer, | |||
| 3173 | bset_display_count (b, make_number (XINT (BVAR (b, display_count)) + 1)); | 3173 | bset_display_count (b, make_number (XINT (BVAR (b, display_count)) + 1)); |
| 3174 | bset_display_time (b, Fcurrent_time ()); | 3174 | bset_display_time (b, Fcurrent_time ()); |
| 3175 | 3175 | ||
| 3176 | wset_window_end_pos (w, make_number (0)); | 3176 | w->window_end_pos = 0; |
| 3177 | wset_window_end_vpos (w, make_number (0)); | 3177 | w->window_end_vpos = 0; |
| 3178 | memset (&w->last_cursor, 0, sizeof w->last_cursor); | 3178 | memset (&w->last_cursor, 0, sizeof w->last_cursor); |
| 3179 | 3179 | ||
| 3180 | if (!(keep_margins_p && samebuf)) | 3180 | if (!(keep_margins_p && samebuf)) |
| @@ -3440,8 +3440,6 @@ make_window (void) | |||
| 3440 | wset_start (w, Fmake_marker ()); | 3440 | wset_start (w, Fmake_marker ()); |
| 3441 | wset_pointm (w, Fmake_marker ()); | 3441 | wset_pointm (w, Fmake_marker ()); |
| 3442 | wset_vertical_scroll_bar_type (w, Qt); | 3442 | wset_vertical_scroll_bar_type (w, Qt); |
| 3443 | wset_window_end_pos (w, make_number (0)); | ||
| 3444 | wset_window_end_vpos (w, make_number (0)); | ||
| 3445 | /* These Lisp fields are marked specially so they're not set to nil by | 3443 | /* These Lisp fields are marked specially so they're not set to nil by |
| 3446 | allocate_window. */ | 3444 | allocate_window. */ |
| 3447 | wset_prev_buffers (w, Qnil); | 3445 | wset_prev_buffers (w, Qnil); |