Lines Matching refs:line

78      here, and it must be at least 1 line for display.  The size of the
558 /* Toggle the state of line wrapping in WINDOW. This can do a bit of fancy
583 to speed up the display. Many of the line starts will be the same,
785 /* Calculate a list of line starts for the node belonging to WINDOW. The line
803 /* Grovel the node starting at the top, and for each line calculate the
804 width of the characters appearing in that line. Add each line start
812 char *line = node->contents + i;
815 add_pointer_to_array (line, line_starts_index, line_starts,
853 /* If this character fits within this line, just do the next one. */
863 the next printed screen line, then do the next line. */
874 line start as where this character is. A bit tricky. */
877 physical line here. */
901 /* Given WINDOW, recalculate the line starts for the node it displays. */
912 set to zero, the line containing point is centered within the window. */
919 register int line = 0;
927 /* Find the first printed line start which is after WINDOW->point. */
928 for (line = 0; line < window->line_count; line++)
932 line_start = window->line_starts[line];
938 /* The line index preceding the line start which is past point is the
940 line--;
942 /* If this line appears in the current displayable page, do nothing.
943 Otherwise, adjust the top of the page to make this line visible. */
944 if ((line < window->pagetop) ||
945 (line - window->pagetop > (window->height - 1)))
949 is zero, then the line containing point is centered within
953 if ((line < window->pagetop) &&
954 ((window->pagetop - window_scroll_step) <= line))
956 else if ((line - window->pagetop > (window->height - 1)) &&
957 ((line - (window->pagetop + window_scroll_step)
961 window->pagetop = line - ((window->height - 1) / 2);
964 window->pagetop = line - ((window->height - 1) / 2);
972 /* Return the index of the line containing point. */
1014 char *line;
1021 line = window->line_starts[i];
1022 end = window->point - (line - window->node->contents);
1028 && line[i] == '\033'
1029 && line[i+1] == '['
1030 && isdigit (line[i+2]))
1032 if (line[i+3] == 'm')
1034 else if (isdigit (line[i+3]) && line[i+4] == 'm')
1037 hpos += character_width (line[i], hpos);
1040 hpos += character_width (line[i], hpos);
1049 window_chars_to_goal (char *line, int goal)
1053 for (hpos = 0, i = 0; line[i] != '\n'; i++)
1057 && line[i] == '\033'
1058 && line[i+1] == '['
1059 && isdigit (line[i+2])
1060 && (line[i+3] == 'm'
1061 || (isdigit (line[i+3]) && line[i+4] == 'm')))
1062 while (line[i] != 'm')
1065 check = hpos + character_width (line[i], hpos);
1149 node, and the remainder of the text that can appear in the line. */
1524 recently output message buffer line. */