diff options
| author | Joakim Verona | 2013-02-02 00:03:52 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-02-02 00:03:52 +0100 |
| commit | 9aa1f4ecdb156a4135c3f7f6125a2b5a40258038 (patch) | |
| tree | 4026361436b73220b9ae03f2251d2248eeaac700 /src/window.c | |
| parent | ae8a4617f3829786fc675b0dd8d818697da6a214 (diff) | |
| parent | 35e854998e2ab2155875683411beb0518236da18 (diff) | |
| download | emacs-9aa1f4ecdb156a4135c3f7f6125a2b5a40258038.tar.gz emacs-9aa1f4ecdb156a4135c3f7f6125a2b5a40258038.zip | |
auto upstream
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c index f75c17a3d4f..b9165e21d3b 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -117,9 +117,6 @@ Lisp_Object minibuf_selected_window; | |||
| 117 | /* Hook run at end of temp_output_buffer_show. */ | 117 | /* Hook run at end of temp_output_buffer_show. */ |
| 118 | static Lisp_Object Qtemp_buffer_show_hook; | 118 | static Lisp_Object Qtemp_buffer_show_hook; |
| 119 | 119 | ||
| 120 | /* Incremented for each window created. */ | ||
| 121 | static int sequence_number; | ||
| 122 | |||
| 123 | /* Nonzero after init_window_once has finished. */ | 120 | /* Nonzero after init_window_once has finished. */ |
| 124 | static int window_initialized; | 121 | static int window_initialized; |
| 125 | 122 | ||
| @@ -287,8 +284,9 @@ adjust_window_count (struct window *w, int arg) | |||
| 287 | b = b->base_buffer; | 284 | b = b->base_buffer; |
| 288 | b->window_count += arg; | 285 | b->window_count += arg; |
| 289 | eassert (b->window_count >= 0); | 286 | eassert (b->window_count >= 0); |
| 290 | /* Catch redisplay's attention. */ | 287 | /* These should be recalculated by redisplay code. */ |
| 291 | w->window_end_valid = 0; | 288 | w->window_end_valid = 0; |
| 289 | w->base_line_pos = 0; | ||
| 292 | } | 290 | } |
| 293 | } | 291 | } |
| 294 | 292 | ||
| @@ -3430,8 +3428,6 @@ make_parent_window (Lisp_Object window, int horflag) | |||
| 3430 | adjust_window_count (p, 1); | 3428 | adjust_window_count (p, 1); |
| 3431 | XSETWINDOW (parent, p); | 3429 | XSETWINDOW (parent, p); |
| 3432 | 3430 | ||
| 3433 | p->sequence_number = ++sequence_number; | ||
| 3434 | |||
| 3435 | replace_window (window, parent, 1); | 3431 | replace_window (window, parent, 1); |
| 3436 | 3432 | ||
| 3437 | wset_next (o, Qnil); | 3433 | wset_next (o, Qnil); |
| @@ -3480,7 +3476,7 @@ make_window (void) | |||
| 3480 | w->nrows_scale_factor = w->ncols_scale_factor = 1; | 3476 | w->nrows_scale_factor = w->ncols_scale_factor = 1; |
| 3481 | w->phys_cursor_type = -1; | 3477 | w->phys_cursor_type = -1; |
| 3482 | w->phys_cursor_width = -1; | 3478 | w->phys_cursor_width = -1; |
| 3483 | w->sequence_number = ++sequence_number; | 3479 | w->column_number_displayed = -1; |
| 3484 | 3480 | ||
| 3485 | /* Reset window_list. */ | 3481 | /* Reset window_list. */ |
| 3486 | Vwindow_list = Qnil; | 3482 | Vwindow_list = Qnil; |