Lines Matching +defs:line +defs:end +defs:position

200       /* If we haven't just gone up or down a line, there is no
545 int start, end, amount;
554 end = window->height + window->first_row;
556 display_scroll_display (start, end, -amount);
560 int start, end, amount;
569 end = (window->first_row + window->height) - amount;
570 display_scroll_display (start, end, amount);
598 /* Move WINDOW->point from OLD line index to NEW line index. */
622 /* Move WINDOW's point down to the next line if possible. */
623 DECLARE_INFO_COMMAND (info_next_line, _("Move down to the next line"))
637 /* Move WINDOW's point up to the previous line if possible. */
638 DECLARE_INFO_COMMAND (info_prev_line, _("Move up to the previous line"))
652 /* Move WINDOW's point to the end of the true line. */
653 DECLARE_INFO_COMMAND (info_end_of_line, _("Move to the end of the line"))
672 /* Move WINDOW's point to the beginning of the true line. */
673 DECLARE_INFO_COMMAND (info_beginning_of_line, _("Move to the start of the line"))
683 /* If at a line start already, do nothing. */
730 int end, c;
740 end = window->node->nodelen;
744 if (point + 1 >= end)
753 while (++point < end)
761 if (point >= end) return;
763 while (++point < end)
1279 /* Move to the end of the node. */
1280 DECLARE_INFO_COMMAND (info_end_of_node, _("Move to the end of this node"))
1493 int start, end, amount;
1496 end = start + window->height;
1498 display_scroll_display (start, end, amount);
1592 int pagetop, start, end;
1598 end = start + window->height;
1628 display_scroll_display (start, end, amount);
1680 _("Toggle the state of line wrapping in the current window"))
1778 info_parse_and_select (char *line, WINDOW *window)
1782 info_parse_node (line, DONT_SKIP_NEWLINES);
1995 nearest beginning or end. If there are two that are equidistant,
2001 starts it all off is select-reference-this-line.
2018 if (xref->start <= pos && pos <= xref->end)
2028 labs (pos - xref->end));
2056 reference found on the current line, and select that node. The
2064 char *line;
2078 /* Default the selected reference to the one which is on the line that
2091 binding.end = window->line_starts[point_line + 1] - binding.buffer;
2093 binding.end = window->node->nodelen;
2133 && window->point <= refs[which]->end)
2195 line = info_read_completing_in_echo_area (window, prompt, menu);
2201 if (!line)
2210 if (!*line)
2212 free (line);
2214 line = xstrdup (defentry->label);
2216 line = (char *)NULL;
2226 line = xstrdup (defentry->label);
2229 if (line)
2235 if (defentry && strcmp (line, defentry->label) == 0)
2250 if (strcasecmp (line, ref->label) == 0)
2252 /* ref->end is more accurate estimate of position
2254 int dist = labs (window->point - ref->end);
2270 info_error ((char *) _("The reference disappeared! (%s)."), line, NULL);
2298 /* next_line starts at line 1? Anyway, the -1 makes it
2299 move to the right line. */
2303 free (line);
2319 /* Read a line (with completion) which is the name of a menu item,
2326 /* Read a line (with completion) which is the name of a reference to
2338 long position;
2342 binding.end = window->node->nodelen;
2345 position = search (INFO_MENU_LABEL, &binding);
2347 if (position == -1)
2351 window->point = position;
2386 /* Read a line of input which is a node name, and go to that node. */
2389 char *line;
2442 line = info_read_maybe_completing (window, (char *) _("Goto node: "),
2447 line = info_read_in_echo_area (window, (char *) _("Goto node: "));
2451 if (!line)
2457 canonicalize_whitespace (line);
2459 if (*line)
2460 info_parse_and_select (line, window);
2462 free (line);
2635 /* Read a line of input which is a sequence of menus (starting from
2640 char *line = info_read_in_echo_area (window, (char *) _("Follow menus: "));
2643 if (!line)
2649 canonicalize_whitespace (line);
2651 if (*line)
2656 char **nodes = split_list_of_nodenames (line);
2684 free (line);
2725 invocation info and its command-line options, by looking for menu
2731 usage and specifically the command-line arguments are described.
2836 char *program_name, *line;
2849 line = info_read_in_echo_area (window, prompt);
2851 if (!line)
2856 if (*line)
2857 program_name = line;
2868 free (line);
2876 char *line;
2878 line = info_read_in_echo_area (window, (char *) _("Get Manpage: "));
2880 if (!line)
2886 canonicalize_whitespace (line);
2888 if (*line)
2893 (4 + strlen (MANPAGE_FILE_BUFFER_NAME) + strlen (line));
2895 sprintf (goto_command, "(%s)%s", MANPAGE_FILE_BUFFER_NAME, line);
2901 free (line);
3099 char *line;
3101 line = info_read_in_echo_area (window, (char *) _("Find file: "));
3102 if (!line)
3108 if (*line)
3112 node = info_get_node (line, "*");
3118 info_error ((char *) _("Cannot find `%s'."), line, NULL);
3123 free (line);
3325 DOS-style CRLF pairs at the end of each line.
3424 binding.end = node->nodelen;
3431 binding.end = 0;
3456 search at START. Return the absolute position of the match, or -1, if
3469 the end of it. */
3486 in this node, set point to that position. Otherwise, get the file buffer
3657 char *line, *prompt;
3694 line = info_read_in_echo_area (window, prompt);
3697 if (!line)
3703 if (*line)
3705 if (strlen (line) + 1 > (unsigned int) search_string_size)
3707 (search_string, (search_string_size += 50 + strlen (line)));
3709 strcpy (search_string, line);
3710 free (line);
3717 for (line = search_string; *line; line++)
3718 if (isupper (*line))
4262 /* FIRSTMENU may point directly to the line defining the menu. Skip that
4370 /* Select the menu item or reference that appears on this line. */
4372 _("Select reference or menu item appearing on this line"))
4374 char *line;
4377 line = window->line_starts[window_line_of_point (window)];
4379 line = "";
4381 /* If this line contains a menu item, select that one. */
4382 if (strncmp ("* ", line, 2) == 0)
4410 /* Move the cursor to the desired line of the window. */
4412 _("Move the cursor to a specific line of the window"))
4414 int line;
4416 /* With no numeric argument of any kind, default to the center line. */
4418 line = (window->height / 2) + window->pagetop;
4422 line = (window->height + count) + window->pagetop;
4424 line = window->pagetop + count;
4427 /* If the line doesn't appear in this window, make it do so. */
4428 if ((line - window->pagetop) >= window->height)
4429 line = window->pagetop + (window->height - 1);
4431 /* If the line is too small, make it fit. */
4432 if (line < window->pagetop)
4433 line = window->pagetop;
4435 /* If the selected line is past the bottom of the node, force it back. */
4436 if (line >= window->line_count)
4437 line = window->line_count - 1;
4439 window->point = (window->line_starts[line] - window->node->contents);
4443 move the line the cursor is on to the COUNT'th line of the window. */