aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorGerd Moellmann1999-09-05 16:39:19 +0000
committerGerd Moellmann1999-09-05 16:39:19 +0000
commit045dee35ff74932bbaa0d603bd6f0b4e51a6fbd0 (patch)
treed30d50ac8f82d4994290a9fb87eb34816f563fc6 /src/dispnew.c
parente5e7779fb41613580088a4819264cc10a0eea230 (diff)
downloademacs-045dee35ff74932bbaa0d603bd6f0b4e51a6fbd0.tar.gz
emacs-045dee35ff74932bbaa0d603bd6f0b4e51a6fbd0.zip
Change
`top-line' and `top_line' to `header-line' and `header_line'. Likewise for similar spellings.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index b21f5796e01..ee3fbc3e335 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -508,18 +508,18 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
508 int i; 508 int i;
509 int new_rows; 509 int new_rows;
510 int marginal_areas_changed_p = 0; 510 int marginal_areas_changed_p = 0;
511 int top_line_changed_p = 0; 511 int header_line_changed_p = 0;
512 int top_line_p = 0; 512 int header_line_p = 0;
513 int left = -1, right = -1; 513 int left = -1, right = -1;
514 int window_x, window_y, window_width, window_height; 514 int window_x, window_y, window_width, window_height;
515 515
516 /* See if W had a top line that has disappeared now, or vice versa. */ 516 /* See if W had a top line that has disappeared now, or vice versa. */
517 if (w) 517 if (w)
518 { 518 {
519 top_line_p = WINDOW_WANTS_TOP_LINE_P (w); 519 header_line_p = WINDOW_WANTS_HEADER_LINE_P (w);
520 top_line_changed_p = top_line_p != matrix->top_line_p; 520 header_line_changed_p = header_line_p != matrix->header_line_p;
521 } 521 }
522 matrix->top_line_p = top_line_p; 522 matrix->header_line_p = header_line_p;
523 523
524 /* Do nothing if MATRIX' size, position, vscroll, and marginal areas 524 /* Do nothing if MATRIX' size, position, vscroll, and marginal areas
525 haven't changed. This optimization is important because preserving 525 haven't changed. This optimization is important because preserving
@@ -535,7 +535,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
535 535
536 if (!marginal_areas_changed_p 536 if (!marginal_areas_changed_p
537 && !fonts_changed_p 537 && !fonts_changed_p
538 && !top_line_changed_p 538 && !header_line_changed_p
539 && matrix->window_top_y == XFASTINT (w->top) 539 && matrix->window_top_y == XFASTINT (w->top)
540 && matrix->window_height == window_height 540 && matrix->window_height == window_height
541 && matrix->window_vscroll == w->vscroll 541 && matrix->window_vscroll == w->vscroll
@@ -584,7 +584,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
584 584
585 if (w == NULL 585 if (w == NULL
586 || row == matrix->rows + dim.height - 1 586 || row == matrix->rows + dim.height - 1
587 || (row == matrix->rows && matrix->top_line_p)) 587 || (row == matrix->rows && matrix->header_line_p))
588 { 588 {
589 row->glyphs[TEXT_AREA] 589 row->glyphs[TEXT_AREA]
590 = row->glyphs[LEFT_MARGIN_AREA]; 590 = row->glyphs[LEFT_MARGIN_AREA];
@@ -613,7 +613,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
613 its own memory. Allocate glyph memory from the heap. */ 613 its own memory. Allocate glyph memory from the heap. */
614 if (dim.width > matrix->matrix_w 614 if (dim.width > matrix->matrix_w
615 || new_rows 615 || new_rows
616 || top_line_changed_p 616 || header_line_changed_p
617 || marginal_areas_changed_p) 617 || marginal_areas_changed_p)
618 { 618 {
619 struct glyph_row *row = matrix->rows; 619 struct glyph_row *row = matrix->rows;
@@ -628,7 +628,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
628 628
629 /* The mode line never has marginal areas. */ 629 /* The mode line never has marginal areas. */
630 if (row == matrix->rows + dim.height - 1 630 if (row == matrix->rows + dim.height - 1
631 || (row == matrix->rows && matrix->top_line_p)) 631 || (row == matrix->rows && matrix->header_line_p))
632 { 632 {
633 row->glyphs[TEXT_AREA] 633 row->glyphs[TEXT_AREA]
634 = row->glyphs[LEFT_MARGIN_AREA]; 634 = row->glyphs[LEFT_MARGIN_AREA];
@@ -848,7 +848,7 @@ shift_glyph_matrix (w, matrix, start, end, dy)
848 xassert (start >= 0 && start < matrix->nrows); 848 xassert (start >= 0 && start < matrix->nrows);
849 xassert (end >= 0 && end <= matrix->nrows); 849 xassert (end >= 0 && end <= matrix->nrows);
850 850
851 min_y = WINDOW_DISPLAY_TOP_LINE_HEIGHT (w); 851 min_y = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w);
852 max_y = WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE (w); 852 max_y = WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE (w);
853 853
854 for (; start < end; ++start) 854 for (; start < end; ++start)
@@ -998,7 +998,7 @@ blank_row (w, row, y)
998{ 998{
999 int min_y, max_y; 999 int min_y, max_y;
1000 1000
1001 min_y = WINDOW_DISPLAY_TOP_LINE_HEIGHT (w); 1001 min_y = WINDOW_DISPLAY_HEADER_LINE_HEIGHT (w);
1002 max_y = WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE (w); 1002 max_y = WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE (w);
1003 1003
1004 clear_glyph_row (row); 1004 clear_glyph_row (row);
@@ -3602,7 +3602,7 @@ update_window (w, force_p)
3602 { 3602 {
3603 struct glyph_row *row, *end; 3603 struct glyph_row *row, *end;
3604 struct glyph_row *mode_line_row; 3604 struct glyph_row *mode_line_row;
3605 struct glyph_row *top_line_row = NULL; 3605 struct glyph_row *header_line_row = NULL;
3606 int yb, changed_p = 0; 3606 int yb, changed_p = 0;
3607 3607
3608 rif->update_window_begin_hook (w); 3608 rif->update_window_begin_hook (w);
@@ -3613,7 +3613,7 @@ update_window (w, force_p)
3613 row = desired_matrix->rows; 3613 row = desired_matrix->rows;
3614 end = row + desired_matrix->nrows - 1; 3614 end = row + desired_matrix->nrows - 1;
3615 if (row->mode_line_p) 3615 if (row->mode_line_p)
3616 top_line_row = row++; 3616 header_line_row = row++;
3617 3617
3618 /* Update the mode line, if necessary. */ 3618 /* Update the mode line, if necessary. */
3619 mode_line_row = MATRIX_MODE_LINE_ROW (desired_matrix); 3619 mode_line_row = MATRIX_MODE_LINE_ROW (desired_matrix);
@@ -3634,7 +3634,7 @@ update_window (w, force_p)
3634 /* Try reusing part of the display by inserting/deleting lines. */ 3634 /* Try reusing part of the display by inserting/deleting lines. */
3635 if (row < end && !desired_matrix->no_scrolling_p) 3635 if (row < end && !desired_matrix->no_scrolling_p)
3636 { 3636 {
3637 int rc = scrolling_window (w, top_line_row != NULL); 3637 int rc = scrolling_window (w, header_line_row != NULL);
3638 if (rc < 0) 3638 if (rc < 0)
3639 { 3639 {
3640 /* All rows were found to be equal. */ 3640 /* All rows were found to be equal. */
@@ -3649,9 +3649,9 @@ update_window (w, force_p)
3649 /* Update the top mode line after scrolling because a new top 3649 /* Update the top mode line after scrolling because a new top
3650 line would otherwise overwrite lines at the top of the window 3650 line would otherwise overwrite lines at the top of the window
3651 that can be scrolled. */ 3651 that can be scrolled. */
3652 if (top_line_row && top_line_row->enabled_p) 3652 if (header_line_row && header_line_row->enabled_p)
3653 { 3653 {
3654 top_line_row->y = 0; 3654 header_line_row->y = 0;
3655 update_window_line (w, 0); 3655 update_window_line (w, 0);
3656 changed_p = 1; 3656 changed_p = 1;
3657 } 3657 }
@@ -4085,7 +4085,7 @@ set_window_cursor_after_update (w)
4085 4085
4086 4086
4087/* Try to reuse part of the current display of W by scrolling lines. 4087/* Try to reuse part of the current display of W by scrolling lines.
4088 TOP_LINE_P non-zero means W has a top mode line. 4088 HEADER_LINE_P non-zero means W has a top mode line.
4089 4089
4090 The algorithm is taken from Communications of the ACM, Apr78 "A 4090 The algorithm is taken from Communications of the ACM, Apr78 "A
4091 Technique for Isolating Differences Between Files." It should take 4091 Technique for Isolating Differences Between Files." It should take
@@ -4111,9 +4111,9 @@ set_window_cursor_after_update (w)
4111 1 if we did scroll. */ 4111 1 if we did scroll. */
4112 4112
4113static int 4113static int
4114scrolling_window (w, top_line_p) 4114scrolling_window (w, header_line_p)
4115 struct window *w; 4115 struct window *w;
4116 int top_line_p; 4116 int header_line_p;
4117{ 4117{
4118 struct symbol 4118 struct symbol
4119 { 4119 {
@@ -4142,7 +4142,7 @@ scrolling_window (w, top_line_p)
4142 int yb = window_text_bottom_y (w); 4142 int yb = window_text_bottom_y (w);
4143 4143
4144 /* Skip over rows equal at the start. */ 4144 /* Skip over rows equal at the start. */
4145 i = top_line_p ? 1 : 0; 4145 i = header_line_p ? 1 : 0;
4146 while (i < current_matrix->nrows - 1 4146 while (i < current_matrix->nrows - 1
4147 && MATRIX_ROW_ENABLED_P (current_matrix, i) 4147 && MATRIX_ROW_ENABLED_P (current_matrix, i)
4148 && MATRIX_ROW_ENABLED_P (desired_matrix, i) 4148 && MATRIX_ROW_ENABLED_P (desired_matrix, i)
@@ -5121,7 +5121,7 @@ mode_line_string (w, x, y, mode_line_p, charpos)
5121 if (mode_line_p) 5121 if (mode_line_p)
5122 row = MATRIX_MODE_LINE_ROW (w->current_matrix); 5122 row = MATRIX_MODE_LINE_ROW (w->current_matrix);
5123 else 5123 else
5124 row = MATRIX_TOP_LINE_ROW (w->current_matrix); 5124 row = MATRIX_HEADER_LINE_ROW (w->current_matrix);
5125 5125
5126 if (row->mode_line_p && row->enabled_p) 5126 if (row->mode_line_p && row->enabled_p)
5127 { 5127 {