Use stock (FSF) version of this file.

This commit is contained in:
Ruslan Ermilov 2005-05-23 10:50:32 +00:00
parent bea5143702
commit cea538d9c7
8 changed files with 1466 additions and 1685 deletions

View File

@ -1,7 +1,7 @@
/* doc.c -- Generated structure containing function names and doc strings.
This file was automatically made from various source files with the
command "./makedoc". DO NOT EDIT THIS FILE, only "./makedoc.c".
command `..//info/makedoc'. DO NOT EDIT THIS FILE, only `..//info/makedoc.c'.
Source files groveled to make this file include:
./session.c
@ -24,123 +24,123 @@
FUNCTION_DOC function_doc_array[] = {
/* Commands found in "./session.c". */
{ info_next_line, "next-line", (FUNCTION_KEYSEQ *)0, "Move down to the next line" },
{ info_prev_line, "prev-line", (FUNCTION_KEYSEQ *)0, "Move up to the previous line" },
{ info_end_of_line, "end-of-line", (FUNCTION_KEYSEQ *)0, "Move to the end of the line" },
{ info_beginning_of_line, "beginning-of-line", (FUNCTION_KEYSEQ *)0, "Move to the start of the line" },
{ info_forward_char, "forward-char", (FUNCTION_KEYSEQ *)0, "Move forward a character" },
{ info_backward_char, "backward-char", (FUNCTION_KEYSEQ *)0, "Move backward a character" },
{ info_forward_word, "forward-word", (FUNCTION_KEYSEQ *)0, "Move forward a word" },
{ info_backward_word, "backward-word", (FUNCTION_KEYSEQ *)0, "Move backward a word" },
{ info_global_next_node, "global-next-node", (FUNCTION_KEYSEQ *)0, "Move forwards or down through node structure" },
{ info_global_prev_node, "global-prev-node", (FUNCTION_KEYSEQ *)0, "Move backwards or up through node structure" },
{ info_scroll_forward, "scroll-forward", (FUNCTION_KEYSEQ *)0, "Scroll forward in this window" },
{ info_scroll_forward_set_window, "scroll-forward-set-window", (FUNCTION_KEYSEQ *)0, "Scroll forward in this window and set default window size" },
{ info_scroll_forward_page_only, "scroll-forward-page-only", (FUNCTION_KEYSEQ *)0, "Scroll forward in this window staying within node" },
{ info_scroll_forward_page_only_set_window, "scroll-forward-page-only-set-window", (FUNCTION_KEYSEQ *)0, "Scroll forward in this window staying within node and set default window size" },
{ info_scroll_backward, "scroll-backward", (FUNCTION_KEYSEQ *)0, "Scroll backward in this window" },
{ info_scroll_backward_set_window, "scroll-backward-set-window", (FUNCTION_KEYSEQ *)0, "Scroll backward in this window and set default window size" },
{ info_scroll_backward_page_only, "scroll-backward-page-only", (FUNCTION_KEYSEQ *)0, "Scroll backward in this window staying within node" },
{ info_scroll_backward_page_only_set_window, "scroll-backward-page-only-set-window", (FUNCTION_KEYSEQ *)0, "Scroll backward in this window staying within node and set default window size" },
{ info_beginning_of_node, "beginning-of-node", (FUNCTION_KEYSEQ *)0, "Move to the start of this node" },
{ info_end_of_node, "end-of-node", (FUNCTION_KEYSEQ *)0, "Move to the end of this node" },
{ info_down_line, "down-line", (FUNCTION_KEYSEQ *)0, "Scroll down by lines" },
{ info_up_line, "up-line", (FUNCTION_KEYSEQ *)0, "Scroll up by lines" },
{ info_scroll_half_screen_down, "scroll-half-screen-down", (FUNCTION_KEYSEQ *)0, "Scroll down by half screen size" },
{ info_scroll_half_screen_up, "scroll-half-screen-up", (FUNCTION_KEYSEQ *)0, "Scroll up by half screen size" },
{ info_next_window, "next-window", (FUNCTION_KEYSEQ *)0, "Select the next window" },
{ info_prev_window, "prev-window", (FUNCTION_KEYSEQ *)0, "Select the previous window" },
{ info_split_window, "split-window", (FUNCTION_KEYSEQ *)0, "Split the current window" },
{ info_delete_window, "delete-window", (FUNCTION_KEYSEQ *)0, "Delete the current window" },
{ info_keep_one_window, "keep-one-window", (FUNCTION_KEYSEQ *)0, "Delete all other windows" },
{ info_scroll_other_window, "scroll-other-window", (FUNCTION_KEYSEQ *)0, "Scroll the other window" },
{ info_scroll_other_window_backward, "scroll-other-window-backward", (FUNCTION_KEYSEQ *)0, "Scroll the other window backward" },
{ info_grow_window, "grow-window", (FUNCTION_KEYSEQ *)0, "Grow (or shrink) this window" },
{ info_tile_windows, "tile-windows", (FUNCTION_KEYSEQ *)0, "Divide the available screen space among the visible windows" },
{ info_toggle_wrap, "toggle-wrap", (FUNCTION_KEYSEQ *)0, "Toggle the state of line wrapping in the current window" },
{ info_next_node, "next-node", (FUNCTION_KEYSEQ *)0, "Select the Next node" },
{ info_prev_node, "prev-node", (FUNCTION_KEYSEQ *)0, "Select the Prev node" },
{ info_up_node, "up-node", (FUNCTION_KEYSEQ *)0, "Select the Up node" },
{ info_last_node, "last-node", (FUNCTION_KEYSEQ *)0, "Select the last node in this file" },
{ info_first_node, "first-node", (FUNCTION_KEYSEQ *)0, "Select the first node in this file" },
{ info_last_menu_item, "last-menu-item", (FUNCTION_KEYSEQ *)0, "Select the last item in this node's menu" },
{ info_menu_digit, "menu-digit", (FUNCTION_KEYSEQ *)0, "Select this menu item" },
{ info_menu_item, "menu-item", (FUNCTION_KEYSEQ *)0, "Read a menu item and select its node" },
{ info_xref_item, "xref-item", (FUNCTION_KEYSEQ *)0, "Read a footnote or cross reference and select its node" },
{ info_find_menu, "find-menu", (FUNCTION_KEYSEQ *)0, "Move to the start of this node's menu" },
{ info_visit_menu, "visit-menu", (FUNCTION_KEYSEQ *)0, "Visit as many menu items at once as possible" },
{ info_goto_node, "goto-node", (FUNCTION_KEYSEQ *)0, "Read a node name and select it" },
{ info_menu_sequence, "menu-sequence", (FUNCTION_KEYSEQ *)0, "Read a list of menus starting from dir and follow them" },
{ info_goto_invocation_node, "goto-invocation-node", (FUNCTION_KEYSEQ *)0, "Find the node describing program invocation" },
{ info_man, "man", (FUNCTION_KEYSEQ *)0, "Read a manpage reference and select it" },
{ info_top_node, "top-node", (FUNCTION_KEYSEQ *)0, "Select the node `Top' in this file" },
{ info_dir_node, "dir-node", (FUNCTION_KEYSEQ *)0, "Select the node `(dir)'" },
{ info_history_node, "history-node", (FUNCTION_KEYSEQ *)0, "Select the most recently selected node" },
{ info_kill_node, "kill-node", (FUNCTION_KEYSEQ *)0, "Kill this node" },
{ info_view_file, "view-file", (FUNCTION_KEYSEQ *)0, "Read the name of a file and select it" },
{ info_print_node, "print-node", (FUNCTION_KEYSEQ *)0, "Pipe the contents of this node through INFO_PRINT_COMMAND" },
{ info_search_case_sensitively, "search-case-sensitively", (FUNCTION_KEYSEQ *)0, "Read a string and search for it case-sensitively" },
{ info_search, "search", (FUNCTION_KEYSEQ *)0, "Read a string and search for it" },
{ info_search_backward, "search-backward", (FUNCTION_KEYSEQ *)0, "Read a string and search backward for it" },
{ info_search_next, "search-next", (FUNCTION_KEYSEQ *)0, "Repeat last search in the same direction" },
{ info_search_previous, "search-previous", (FUNCTION_KEYSEQ *)0, "Repeat last search in the reverse direction" },
{ isearch_forward, "isearch-forward", (FUNCTION_KEYSEQ *)0, "Search interactively for a string as you type it" },
{ isearch_backward, "isearch-backward", (FUNCTION_KEYSEQ *)0, "Search interactively for a string as you type it" },
{ info_move_to_prev_xref, "move-to-prev-xref", (FUNCTION_KEYSEQ *)0, "Move to the previous cross reference" },
{ info_move_to_next_xref, "move-to-next-xref", (FUNCTION_KEYSEQ *)0, "Move to the next cross reference" },
{ info_select_reference_this_line, "select-reference-this-line", (FUNCTION_KEYSEQ *)0, "Select reference or menu item appearing on this line" },
{ info_abort_key, "abort-key", (FUNCTION_KEYSEQ *)0, "Cancel current operation" },
{ info_move_to_window_line, "move-to-window-line", (FUNCTION_KEYSEQ *)0, "Move the cursor to a specific line of the window" },
{ info_redraw_display, "redraw-display", (FUNCTION_KEYSEQ *)0, "Redraw the display" },
{ info_quit, "quit", (FUNCTION_KEYSEQ *)0, "Quit using Info" },
{ info_do_lowercase_version, "do-lowercase-version", (FUNCTION_KEYSEQ *)0, "Run command bound to this key's lowercase variant" },
{ info_add_digit_to_numeric_arg, "add-digit-to-numeric-arg", (FUNCTION_KEYSEQ *)0, "Add this digit to the current numeric argument" },
{ info_universal_argument, "universal-argument", (FUNCTION_KEYSEQ *)0, "Start (or multiply by 4) the current numeric argument" },
{ info_numeric_arg_digit_loop, "numeric-arg-digit-loop", (FUNCTION_KEYSEQ *)0, "Internally used by \\[universal-argument]" },
{ (VFunction *)info_next_line, "next-line", (FUNCTION_KEYSEQ *)0, "Move down to the next line" },
{ (VFunction *)info_prev_line, "prev-line", (FUNCTION_KEYSEQ *)0, "Move up to the previous line" },
{ (VFunction *)info_end_of_line, "end-of-line", (FUNCTION_KEYSEQ *)0, "Move to the end of the line" },
{ (VFunction *)info_beginning_of_line, "beginning-of-line", (FUNCTION_KEYSEQ *)0, "Move to the start of the line" },
{ (VFunction *)info_forward_char, "forward-char", (FUNCTION_KEYSEQ *)0, "Move forward a character" },
{ (VFunction *)info_backward_char, "backward-char", (FUNCTION_KEYSEQ *)0, "Move backward a character" },
{ (VFunction *)info_forward_word, "forward-word", (FUNCTION_KEYSEQ *)0, "Move forward a word" },
{ (VFunction *)info_backward_word, "backward-word", (FUNCTION_KEYSEQ *)0, "Move backward a word" },
{ (VFunction *)info_global_next_node, "global-next-node", (FUNCTION_KEYSEQ *)0, "Move forwards or down through node structure" },
{ (VFunction *)info_global_prev_node, "global-prev-node", (FUNCTION_KEYSEQ *)0, "Move backwards or up through node structure" },
{ (VFunction *)info_scroll_forward, "scroll-forward", (FUNCTION_KEYSEQ *)0, "Scroll forward in this window" },
{ (VFunction *)info_scroll_forward_set_window, "scroll-forward-set-window", (FUNCTION_KEYSEQ *)0, "Scroll forward in this window and set default window size" },
{ (VFunction *)info_scroll_forward_page_only, "scroll-forward-page-only", (FUNCTION_KEYSEQ *)0, "Scroll forward in this window staying within node" },
{ (VFunction *)info_scroll_forward_page_only_set_window, "scroll-forward-page-only-set-window", (FUNCTION_KEYSEQ *)0, "Scroll forward in this window staying within node and set default window size" },
{ (VFunction *)info_scroll_backward, "scroll-backward", (FUNCTION_KEYSEQ *)0, "Scroll backward in this window" },
{ (VFunction *)info_scroll_backward_set_window, "scroll-backward-set-window", (FUNCTION_KEYSEQ *)0, "Scroll backward in this window and set default window size" },
{ (VFunction *)info_scroll_backward_page_only, "scroll-backward-page-only", (FUNCTION_KEYSEQ *)0, "Scroll backward in this window staying within node" },
{ (VFunction *)info_scroll_backward_page_only_set_window, "scroll-backward-page-only-set-window", (FUNCTION_KEYSEQ *)0, "Scroll backward in this window staying within node and set default window size" },
{ (VFunction *)info_beginning_of_node, "beginning-of-node", (FUNCTION_KEYSEQ *)0, "Move to the start of this node" },
{ (VFunction *)info_end_of_node, "end-of-node", (FUNCTION_KEYSEQ *)0, "Move to the end of this node" },
{ (VFunction *)info_down_line, "down-line", (FUNCTION_KEYSEQ *)0, "Scroll down by lines" },
{ (VFunction *)info_up_line, "up-line", (FUNCTION_KEYSEQ *)0, "Scroll up by lines" },
{ (VFunction *)info_scroll_half_screen_down, "scroll-half-screen-down", (FUNCTION_KEYSEQ *)0, "Scroll down by half screen size" },
{ (VFunction *)info_scroll_half_screen_up, "scroll-half-screen-up", (FUNCTION_KEYSEQ *)0, "Scroll up by half screen size" },
{ (VFunction *)info_next_window, "next-window", (FUNCTION_KEYSEQ *)0, "Select the next window" },
{ (VFunction *)info_prev_window, "prev-window", (FUNCTION_KEYSEQ *)0, "Select the previous window" },
{ (VFunction *)info_split_window, "split-window", (FUNCTION_KEYSEQ *)0, "Split the current window" },
{ (VFunction *)info_delete_window, "delete-window", (FUNCTION_KEYSEQ *)0, "Delete the current window" },
{ (VFunction *)info_keep_one_window, "keep-one-window", (FUNCTION_KEYSEQ *)0, "Delete all other windows" },
{ (VFunction *)info_scroll_other_window, "scroll-other-window", (FUNCTION_KEYSEQ *)0, "Scroll the other window" },
{ (VFunction *)info_scroll_other_window_backward, "scroll-other-window-backward", (FUNCTION_KEYSEQ *)0, "Scroll the other window backward" },
{ (VFunction *)info_grow_window, "grow-window", (FUNCTION_KEYSEQ *)0, "Grow (or shrink) this window" },
{ (VFunction *)info_tile_windows, "tile-windows", (FUNCTION_KEYSEQ *)0, "Divide the available screen space among the visible windows" },
{ (VFunction *)info_toggle_wrap, "toggle-wrap", (FUNCTION_KEYSEQ *)0, "Toggle the state of line wrapping in the current window" },
{ (VFunction *)info_next_node, "next-node", (FUNCTION_KEYSEQ *)0, "Select the Next node" },
{ (VFunction *)info_prev_node, "prev-node", (FUNCTION_KEYSEQ *)0, "Select the Prev node" },
{ (VFunction *)info_up_node, "up-node", (FUNCTION_KEYSEQ *)0, "Select the Up node" },
{ (VFunction *)info_last_node, "last-node", (FUNCTION_KEYSEQ *)0, "Select the last node in this file" },
{ (VFunction *)info_first_node, "first-node", (FUNCTION_KEYSEQ *)0, "Select the first node in this file" },
{ (VFunction *)info_last_menu_item, "last-menu-item", (FUNCTION_KEYSEQ *)0, "Select the last item in this node's menu" },
{ (VFunction *)info_menu_digit, "menu-digit", (FUNCTION_KEYSEQ *)0, "Select this menu item" },
{ (VFunction *)info_menu_item, "menu-item", (FUNCTION_KEYSEQ *)0, "Read a menu item and select its node" },
{ (VFunction *)info_xref_item, "xref-item", (FUNCTION_KEYSEQ *)0, "Read a footnote or cross reference and select its node" },
{ (VFunction *)info_find_menu, "find-menu", (FUNCTION_KEYSEQ *)0, "Move to the start of this node's menu" },
{ (VFunction *)info_visit_menu, "visit-menu", (FUNCTION_KEYSEQ *)0, "Visit as many menu items at once as possible" },
{ (VFunction *)info_goto_node, "goto-node", (FUNCTION_KEYSEQ *)0, "Read a node name and select it" },
{ (VFunction *)info_menu_sequence, "menu-sequence", (FUNCTION_KEYSEQ *)0, "Read a list of menus starting from dir and follow them" },
{ (VFunction *)info_goto_invocation_node, "goto-invocation-node", (FUNCTION_KEYSEQ *)0, "Find the node describing program invocation" },
{ (VFunction *)info_man, "man", (FUNCTION_KEYSEQ *)0, "Read a manpage reference and select it" },
{ (VFunction *)info_top_node, "top-node", (FUNCTION_KEYSEQ *)0, "Select the node `Top' in this file" },
{ (VFunction *)info_dir_node, "dir-node", (FUNCTION_KEYSEQ *)0, "Select the node `(dir)'" },
{ (VFunction *)info_history_node, "history-node", (FUNCTION_KEYSEQ *)0, "Select the most recently selected node" },
{ (VFunction *)info_kill_node, "kill-node", (FUNCTION_KEYSEQ *)0, "Kill this node" },
{ (VFunction *)info_view_file, "view-file", (FUNCTION_KEYSEQ *)0, "Read the name of a file and select it" },
{ (VFunction *)info_print_node, "print-node", (FUNCTION_KEYSEQ *)0, "Pipe the contents of this node through INFO_PRINT_COMMAND" },
{ (VFunction *)info_search_case_sensitively, "search-case-sensitively", (FUNCTION_KEYSEQ *)0, "Read a string and search for it case-sensitively" },
{ (VFunction *)info_search, "search", (FUNCTION_KEYSEQ *)0, "Read a string and search for it" },
{ (VFunction *)info_search_backward, "search-backward", (FUNCTION_KEYSEQ *)0, "Read a string and search backward for it" },
{ (VFunction *)info_search_next, "search-next", (FUNCTION_KEYSEQ *)0, "Repeat last search in the same direction" },
{ (VFunction *)info_search_previous, "search-previous", (FUNCTION_KEYSEQ *)0, "Repeat last search in the reverse direction" },
{ (VFunction *)isearch_forward, "isearch-forward", (FUNCTION_KEYSEQ *)0, "Search interactively for a string as you type it" },
{ (VFunction *)isearch_backward, "isearch-backward", (FUNCTION_KEYSEQ *)0, "Search interactively for a string as you type it" },
{ (VFunction *)info_move_to_prev_xref, "move-to-prev-xref", (FUNCTION_KEYSEQ *)0, "Move to the previous cross reference" },
{ (VFunction *)info_move_to_next_xref, "move-to-next-xref", (FUNCTION_KEYSEQ *)0, "Move to the next cross reference" },
{ (VFunction *)info_select_reference_this_line, "select-reference-this-line", (FUNCTION_KEYSEQ *)0, "Select reference or menu item appearing on this line" },
{ (VFunction *)info_abort_key, "abort-key", (FUNCTION_KEYSEQ *)0, "Cancel current operation" },
{ (VFunction *)info_move_to_window_line, "move-to-window-line", (FUNCTION_KEYSEQ *)0, "Move the cursor to a specific line of the window" },
{ (VFunction *)info_redraw_display, "redraw-display", (FUNCTION_KEYSEQ *)0, "Redraw the display" },
{ (VFunction *)info_quit, "quit", (FUNCTION_KEYSEQ *)0, "Quit using Info" },
{ (VFunction *)info_do_lowercase_version, "do-lowercase-version", (FUNCTION_KEYSEQ *)0, "Run command bound to this key's lowercase variant" },
{ (VFunction *)info_add_digit_to_numeric_arg, "add-digit-to-numeric-arg", (FUNCTION_KEYSEQ *)0, "Add this digit to the current numeric argument" },
{ (VFunction *)info_universal_argument, "universal-argument", (FUNCTION_KEYSEQ *)0, "Start (or multiply by 4) the current numeric argument" },
{ (VFunction *)info_numeric_arg_digit_loop, "numeric-arg-digit-loop", (FUNCTION_KEYSEQ *)0, "Internally used by \\[universal-argument]" },
/* Commands found in "./echo-area.c". */
{ ea_forward, "echo-area-forward", (FUNCTION_KEYSEQ *)0, "Move forward a character" },
{ ea_backward, "echo-area-backward", (FUNCTION_KEYSEQ *)0, "Move backward a character" },
{ ea_beg_of_line, "echo-area-beg-of-line", (FUNCTION_KEYSEQ *)0, "Move to the start of this line" },
{ ea_end_of_line, "echo-area-end-of-line", (FUNCTION_KEYSEQ *)0, "Move to the end of this line" },
{ ea_forward_word, "echo-area-forward-word", (FUNCTION_KEYSEQ *)0, "Move forward a word" },
{ ea_backward_word, "echo-area-backward-word", (FUNCTION_KEYSEQ *)0, "Move backward a word" },
{ ea_delete, "echo-area-delete", (FUNCTION_KEYSEQ *)0, "Delete the character under the cursor" },
{ ea_rubout, "echo-area-rubout", (FUNCTION_KEYSEQ *)0, "Delete the character behind the cursor" },
{ ea_abort, "echo-area-abort", (FUNCTION_KEYSEQ *)0, "Cancel or quit operation" },
{ ea_newline, "echo-area-newline", (FUNCTION_KEYSEQ *)0, "Accept (or force completion of) this line" },
{ ea_quoted_insert, "echo-area-quoted-insert", (FUNCTION_KEYSEQ *)0, "Insert next character verbatim" },
{ ea_insert, "echo-area-insert", (FUNCTION_KEYSEQ *)0, "Insert this character" },
{ ea_tab_insert, "echo-area-tab-insert", (FUNCTION_KEYSEQ *)0, "Insert a TAB character" },
{ ea_transpose_chars, "echo-area-transpose-chars", (FUNCTION_KEYSEQ *)0, "Transpose characters at point" },
{ ea_yank, "echo-area-yank", (FUNCTION_KEYSEQ *)0, "Yank back the contents of the last kill" },
{ ea_yank_pop, "echo-area-yank-pop", (FUNCTION_KEYSEQ *)0, "Yank back a previous kill" },
{ ea_kill_line, "echo-area-kill-line", (FUNCTION_KEYSEQ *)0, "Kill to the end of the line" },
{ ea_backward_kill_line, "echo-area-backward-kill-line", (FUNCTION_KEYSEQ *)0, "Kill to the beginning of the line" },
{ ea_kill_word, "echo-area-kill-word", (FUNCTION_KEYSEQ *)0, "Kill the word following the cursor" },
{ ea_backward_kill_word, "echo-area-backward-kill-word", (FUNCTION_KEYSEQ *)0, "Kill the word preceding the cursor" },
{ ea_possible_completions, "echo-area-possible-completions", (FUNCTION_KEYSEQ *)0, "List possible completions" },
{ ea_complete, "echo-area-complete", (FUNCTION_KEYSEQ *)0, "Insert completion" },
{ ea_scroll_completions_window, "echo-area-scroll-completions-window", (FUNCTION_KEYSEQ *)0, "Scroll the completions window" },
{ (VFunction *)ea_forward, "echo-area-forward", (FUNCTION_KEYSEQ *)0, "Move forward a character" },
{ (VFunction *)ea_backward, "echo-area-backward", (FUNCTION_KEYSEQ *)0, "Move backward a character" },
{ (VFunction *)ea_beg_of_line, "echo-area-beg-of-line", (FUNCTION_KEYSEQ *)0, "Move to the start of this line" },
{ (VFunction *)ea_end_of_line, "echo-area-end-of-line", (FUNCTION_KEYSEQ *)0, "Move to the end of this line" },
{ (VFunction *)ea_forward_word, "echo-area-forward-word", (FUNCTION_KEYSEQ *)0, "Move forward a word" },
{ (VFunction *)ea_backward_word, "echo-area-backward-word", (FUNCTION_KEYSEQ *)0, "Move backward a word" },
{ (VFunction *)ea_delete, "echo-area-delete", (FUNCTION_KEYSEQ *)0, "Delete the character under the cursor" },
{ (VFunction *)ea_rubout, "echo-area-rubout", (FUNCTION_KEYSEQ *)0, "Delete the character behind the cursor" },
{ (VFunction *)ea_abort, "echo-area-abort", (FUNCTION_KEYSEQ *)0, "Cancel or quit operation" },
{ (VFunction *)ea_newline, "echo-area-newline", (FUNCTION_KEYSEQ *)0, "Accept (or force completion of) this line" },
{ (VFunction *)ea_quoted_insert, "echo-area-quoted-insert", (FUNCTION_KEYSEQ *)0, "Insert next character verbatim" },
{ (VFunction *)ea_insert, "echo-area-insert", (FUNCTION_KEYSEQ *)0, "Insert this character" },
{ (VFunction *)ea_tab_insert, "echo-area-tab-insert", (FUNCTION_KEYSEQ *)0, "Insert a TAB character" },
{ (VFunction *)ea_transpose_chars, "echo-area-transpose-chars", (FUNCTION_KEYSEQ *)0, "Transpose characters at point" },
{ (VFunction *)ea_yank, "echo-area-yank", (FUNCTION_KEYSEQ *)0, "Yank back the contents of the last kill" },
{ (VFunction *)ea_yank_pop, "echo-area-yank-pop", (FUNCTION_KEYSEQ *)0, "Yank back a previous kill" },
{ (VFunction *)ea_kill_line, "echo-area-kill-line", (FUNCTION_KEYSEQ *)0, "Kill to the end of the line" },
{ (VFunction *)ea_backward_kill_line, "echo-area-backward-kill-line", (FUNCTION_KEYSEQ *)0, "Kill to the beginning of the line" },
{ (VFunction *)ea_kill_word, "echo-area-kill-word", (FUNCTION_KEYSEQ *)0, "Kill the word following the cursor" },
{ (VFunction *)ea_backward_kill_word, "echo-area-backward-kill-word", (FUNCTION_KEYSEQ *)0, "Kill the word preceding the cursor" },
{ (VFunction *)ea_possible_completions, "echo-area-possible-completions", (FUNCTION_KEYSEQ *)0, "List possible completions" },
{ (VFunction *)ea_complete, "echo-area-complete", (FUNCTION_KEYSEQ *)0, "Insert completion" },
{ (VFunction *)ea_scroll_completions_window, "echo-area-scroll-completions-window", (FUNCTION_KEYSEQ *)0, "Scroll the completions window" },
/* Commands found in "./infodoc.c". */
{ info_get_help_window, "get-help-window", (FUNCTION_KEYSEQ *)0, "Display help message" },
{ info_get_info_help_node, "get-info-help-node", (FUNCTION_KEYSEQ *)0, "Visit Info node `(info)Help'" },
{ describe_key, "describe-key", (FUNCTION_KEYSEQ *)0, "Print documentation for KEY" },
{ info_where_is, "where-is", (FUNCTION_KEYSEQ *)0, "Show what to type to execute a given command" },
{ (VFunction *)info_get_help_window, "get-help-window", (FUNCTION_KEYSEQ *)0, "Display help message" },
{ (VFunction *)info_get_info_help_node, "get-info-help-node", (FUNCTION_KEYSEQ *)0, "Visit Info node `(info)Help'" },
{ (VFunction *)describe_key, "describe-key", (FUNCTION_KEYSEQ *)0, "Print documentation for KEY" },
{ (VFunction *)info_where_is, "where-is", (FUNCTION_KEYSEQ *)0, "Show what to type to execute a given command" },
/* Commands found in "./m-x.c". */
{ describe_command, "describe-command", (FUNCTION_KEYSEQ *)0, "Read the name of an Info command and describe it" },
{ info_execute_command, "execute-command", (FUNCTION_KEYSEQ *)0, "Read a command name in the echo area and execute it" },
{ set_screen_height, "set-screen-height", (FUNCTION_KEYSEQ *)0, "Set the height of the displayed window" },
{ (VFunction *)describe_command, "describe-command", (FUNCTION_KEYSEQ *)0, "Read the name of an Info command and describe it" },
{ (VFunction *)info_execute_command, "execute-command", (FUNCTION_KEYSEQ *)0, "Read a command name in the echo area and execute it" },
{ (VFunction *)set_screen_height, "set-screen-height", (FUNCTION_KEYSEQ *)0, "Set the height of the displayed window" },
/* Commands found in "./indices.c". */
{ info_index_search, "index-search", (FUNCTION_KEYSEQ *)0, "Look up a string in the index for this file" },
{ info_next_index_match, "next-index-match", (FUNCTION_KEYSEQ *)0, "Go to the next matching index item from the last `\\[index-search]' command" },
{ info_index_apropos, "index-apropos", (FUNCTION_KEYSEQ *)0, "Grovel all known info file's indices for a string and build a menu" },
{ (VFunction *)info_index_search, "index-search", (FUNCTION_KEYSEQ *)0, "Look up a string in the index for this file" },
{ (VFunction *)info_next_index_match, "next-index-match", (FUNCTION_KEYSEQ *)0, "Go to the next matching index item from the last `\\[index-search]' command" },
{ (VFunction *)info_index_apropos, "index-apropos", (FUNCTION_KEYSEQ *)0, "Grovel all known info file's indices for a string and build a menu" },
/* Commands found in "./nodemenu.c". */
{ list_visited_nodes, "list-visited-nodes", (FUNCTION_KEYSEQ *)0, "Make a window containing a menu of all of the currently visited nodes" },
{ select_visited_node, "select-visited-node", (FUNCTION_KEYSEQ *)0, "Select a node which has been previously visited in a visible window" },
{ (VFunction *)list_visited_nodes, "list-visited-nodes", (FUNCTION_KEYSEQ *)0, "Make a window containing a menu of all of the currently visited nodes" },
{ (VFunction *)select_visited_node, "select-visited-node", (FUNCTION_KEYSEQ *)0, "Select a node which has been previously visited in a visible window" },
/* Commands found in "./footnotes.c". */
{ info_show_footnotes, "show-footnotes", (FUNCTION_KEYSEQ *)0, "Show the footnotes associated with this node in another window" },
{ (VFunction *)info_show_footnotes, "show-footnotes", (FUNCTION_KEYSEQ *)0, "Show the footnotes associated with this node in another window" },
/* Commands found in "./variables.c". */
{ describe_variable, "describe-variable", (FUNCTION_KEYSEQ *)0, "Explain the use of a variable" },
{ set_variable, "set-variable", (FUNCTION_KEYSEQ *)0, "Set the value of an Info variable" },
{ (VFunction *)describe_variable, "describe-variable", (FUNCTION_KEYSEQ *)0, "Explain the use of a variable" },
{ (VFunction *)set_variable, "set-variable", (FUNCTION_KEYSEQ *)0, "Set the value of an Info variable" },
{ (VFunction *)NULL, (char *)NULL, (FUNCTION_KEYSEQ *)NULL, (char *)NULL }
};

View File

@ -1,241 +1,243 @@
/* funs.h -- Generated declarations for Info commands. */
#include "info.h"
/* Functions declared in "./session.c". */
#define A_info_next_line 0
extern void info_next_line ();
extern void info_next_line (WINDOW *window, int count, unsigned char key);
#define A_info_prev_line 1
extern void info_prev_line ();
extern void info_prev_line (WINDOW *window, int count, unsigned char key);
#define A_info_end_of_line 2
extern void info_end_of_line ();
extern void info_end_of_line (WINDOW *window, int count, unsigned char key);
#define A_info_beginning_of_line 3
extern void info_beginning_of_line ();
extern void info_beginning_of_line (WINDOW *window, int count, unsigned char key);
#define A_info_forward_char 4
extern void info_forward_char ();
extern void info_forward_char (WINDOW *window, int count, unsigned char key);
#define A_info_backward_char 5
extern void info_backward_char ();
extern void info_backward_char (WINDOW *window, int count, unsigned char key);
#define A_info_forward_word 6
extern void info_forward_word ();
extern void info_forward_word (WINDOW *window, int count, unsigned char key);
#define A_info_backward_word 7
extern void info_backward_word ();
extern void info_backward_word (WINDOW *window, int count, unsigned char key);
#define A_info_global_next_node 8
extern void info_global_next_node ();
extern void info_global_next_node (WINDOW *window, int count, unsigned char key);
#define A_info_global_prev_node 9
extern void info_global_prev_node ();
extern void info_global_prev_node (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_forward 10
extern void info_scroll_forward ();
extern void info_scroll_forward (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_forward_set_window 11
extern void info_scroll_forward_set_window ();
extern void info_scroll_forward_set_window (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_forward_page_only 12
extern void info_scroll_forward_page_only ();
extern void info_scroll_forward_page_only (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_forward_page_only_set_window 13
extern void info_scroll_forward_page_only_set_window ();
extern void info_scroll_forward_page_only_set_window (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_backward 14
extern void info_scroll_backward ();
extern void info_scroll_backward (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_backward_set_window 15
extern void info_scroll_backward_set_window ();
extern void info_scroll_backward_set_window (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_backward_page_only 16
extern void info_scroll_backward_page_only ();
extern void info_scroll_backward_page_only (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_backward_page_only_set_window 17
extern void info_scroll_backward_page_only_set_window ();
extern void info_scroll_backward_page_only_set_window (WINDOW *window, int count, unsigned char key);
#define A_info_beginning_of_node 18
extern void info_beginning_of_node ();
extern void info_beginning_of_node (WINDOW *window, int count, unsigned char key);
#define A_info_end_of_node 19
extern void info_end_of_node ();
extern void info_end_of_node (WINDOW *window, int count, unsigned char key);
#define A_info_down_line 20
extern void info_down_line ();
extern void info_down_line (WINDOW *window, int count, unsigned char key);
#define A_info_up_line 21
extern void info_up_line ();
extern void info_up_line (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_half_screen_down 22
extern void info_scroll_half_screen_down ();
extern void info_scroll_half_screen_down (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_half_screen_up 23
extern void info_scroll_half_screen_up ();
extern void info_scroll_half_screen_up (WINDOW *window, int count, unsigned char key);
#define A_info_next_window 24
extern void info_next_window ();
extern void info_next_window (WINDOW *window, int count, unsigned char key);
#define A_info_prev_window 25
extern void info_prev_window ();
extern void info_prev_window (WINDOW *window, int count, unsigned char key);
#define A_info_split_window 26
extern void info_split_window ();
extern void info_split_window (WINDOW *window, int count, unsigned char key);
#define A_info_delete_window 27
extern void info_delete_window ();
extern void info_delete_window (WINDOW *window, int count, unsigned char key);
#define A_info_keep_one_window 28
extern void info_keep_one_window ();
extern void info_keep_one_window (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_other_window 29
extern void info_scroll_other_window ();
extern void info_scroll_other_window (WINDOW *window, int count, unsigned char key);
#define A_info_scroll_other_window_backward 30
extern void info_scroll_other_window_backward ();
extern void info_scroll_other_window_backward (WINDOW *window, int count, unsigned char key);
#define A_info_grow_window 31
extern void info_grow_window ();
extern void info_grow_window (WINDOW *window, int count, unsigned char key);
#define A_info_tile_windows 32
extern void info_tile_windows ();
extern void info_tile_windows (WINDOW *window, int count, unsigned char key);
#define A_info_toggle_wrap 33
extern void info_toggle_wrap ();
extern void info_toggle_wrap (WINDOW *window, int count, unsigned char key);
#define A_info_next_node 34
extern void info_next_node ();
extern void info_next_node (WINDOW *window, int count, unsigned char key);
#define A_info_prev_node 35
extern void info_prev_node ();
extern void info_prev_node (WINDOW *window, int count, unsigned char key);
#define A_info_up_node 36
extern void info_up_node ();
extern void info_up_node (WINDOW *window, int count, unsigned char key);
#define A_info_last_node 37
extern void info_last_node ();
extern void info_last_node (WINDOW *window, int count, unsigned char key);
#define A_info_first_node 38
extern void info_first_node ();
extern void info_first_node (WINDOW *window, int count, unsigned char key);
#define A_info_last_menu_item 39
extern void info_last_menu_item ();
extern void info_last_menu_item (WINDOW *window, int count, unsigned char key);
#define A_info_menu_digit 40
extern void info_menu_digit ();
extern void info_menu_digit (WINDOW *window, int count, unsigned char key);
#define A_info_menu_item 41
extern void info_menu_item ();
extern void info_menu_item (WINDOW *window, int count, unsigned char key);
#define A_info_xref_item 42
extern void info_xref_item ();
extern void info_xref_item (WINDOW *window, int count, unsigned char key);
#define A_info_find_menu 43
extern void info_find_menu ();
extern void info_find_menu (WINDOW *window, int count, unsigned char key);
#define A_info_visit_menu 44
extern void info_visit_menu ();
extern void info_visit_menu (WINDOW *window, int count, unsigned char key);
#define A_info_goto_node 45
extern void info_goto_node ();
extern void info_goto_node (WINDOW *window, int count, unsigned char key);
#define A_info_menu_sequence 46
extern void info_menu_sequence ();
extern void info_menu_sequence (WINDOW *window, int count, unsigned char key);
#define A_info_goto_invocation_node 47
extern void info_goto_invocation_node ();
extern void info_goto_invocation_node (WINDOW *window, int count, unsigned char key);
#define A_info_man 48
extern void info_man ();
extern void info_man (WINDOW *window, int count, unsigned char key);
#define A_info_top_node 49
extern void info_top_node ();
extern void info_top_node (WINDOW *window, int count, unsigned char key);
#define A_info_dir_node 50
extern void info_dir_node ();
extern void info_dir_node (WINDOW *window, int count, unsigned char key);
#define A_info_history_node 51
extern void info_history_node ();
extern void info_history_node (WINDOW *window, int count, unsigned char key);
#define A_info_kill_node 52
extern void info_kill_node ();
extern void info_kill_node (WINDOW *window, int count, unsigned char key);
#define A_info_view_file 53
extern void info_view_file ();
extern void info_view_file (WINDOW *window, int count, unsigned char key);
#define A_info_print_node 54
extern void info_print_node ();
extern void info_print_node (WINDOW *window, int count, unsigned char key);
#define A_info_search_case_sensitively 55
extern void info_search_case_sensitively ();
extern void info_search_case_sensitively (WINDOW *window, int count, unsigned char key);
#define A_info_search 56
extern void info_search ();
extern void info_search (WINDOW *window, int count, unsigned char key);
#define A_info_search_backward 57
extern void info_search_backward ();
extern void info_search_backward (WINDOW *window, int count, unsigned char key);
#define A_info_search_next 58
extern void info_search_next ();
extern void info_search_next (WINDOW *window, int count, unsigned char key);
#define A_info_search_previous 59
extern void info_search_previous ();
extern void info_search_previous (WINDOW *window, int count, unsigned char key);
#define A_isearch_forward 60
extern void isearch_forward ();
extern void isearch_forward (WINDOW *window, int count, unsigned char key);
#define A_isearch_backward 61
extern void isearch_backward ();
extern void isearch_backward (WINDOW *window, int count, unsigned char key);
#define A_info_move_to_prev_xref 62
extern void info_move_to_prev_xref ();
extern void info_move_to_prev_xref (WINDOW *window, int count, unsigned char key);
#define A_info_move_to_next_xref 63
extern void info_move_to_next_xref ();
extern void info_move_to_next_xref (WINDOW *window, int count, unsigned char key);
#define A_info_select_reference_this_line 64
extern void info_select_reference_this_line ();
extern void info_select_reference_this_line (WINDOW *window, int count, unsigned char key);
#define A_info_abort_key 65
extern void info_abort_key ();
extern void info_abort_key (WINDOW *window, int count, unsigned char key);
#define A_info_move_to_window_line 66
extern void info_move_to_window_line ();
extern void info_move_to_window_line (WINDOW *window, int count, unsigned char key);
#define A_info_redraw_display 67
extern void info_redraw_display ();
extern void info_redraw_display (WINDOW *window, int count, unsigned char key);
#define A_info_quit 68
extern void info_quit ();
extern void info_quit (WINDOW *window, int count, unsigned char key);
#define A_info_do_lowercase_version 69
extern void info_do_lowercase_version ();
extern void info_do_lowercase_version (WINDOW *window, int count, unsigned char key);
#define A_info_add_digit_to_numeric_arg 70
extern void info_add_digit_to_numeric_arg ();
extern void info_add_digit_to_numeric_arg (WINDOW *window, int count, unsigned char key);
#define A_info_universal_argument 71
extern void info_universal_argument ();
extern void info_universal_argument (WINDOW *window, int count, unsigned char key);
#define A_info_numeric_arg_digit_loop 72
extern void info_numeric_arg_digit_loop ();
extern void info_numeric_arg_digit_loop (WINDOW *window, int count, unsigned char key);
/* Functions declared in "./echo-area.c". */
#define A_ea_forward 73
extern void ea_forward ();
extern void ea_forward (WINDOW *window, int count, unsigned char key);
#define A_ea_backward 74
extern void ea_backward ();
extern void ea_backward (WINDOW *window, int count, unsigned char key);
#define A_ea_beg_of_line 75
extern void ea_beg_of_line ();
extern void ea_beg_of_line (WINDOW *window, int count, unsigned char key);
#define A_ea_end_of_line 76
extern void ea_end_of_line ();
extern void ea_end_of_line (WINDOW *window, int count, unsigned char key);
#define A_ea_forward_word 77
extern void ea_forward_word ();
extern void ea_forward_word (WINDOW *window, int count, unsigned char key);
#define A_ea_backward_word 78
extern void ea_backward_word ();
extern void ea_backward_word (WINDOW *window, int count, unsigned char key);
#define A_ea_delete 79
extern void ea_delete ();
extern void ea_delete (WINDOW *window, int count, unsigned char key);
#define A_ea_rubout 80
extern void ea_rubout ();
extern void ea_rubout (WINDOW *window, int count, unsigned char key);
#define A_ea_abort 81
extern void ea_abort ();
extern void ea_abort (WINDOW *window, int count, unsigned char key);
#define A_ea_newline 82
extern void ea_newline ();
extern void ea_newline (WINDOW *window, int count, unsigned char key);
#define A_ea_quoted_insert 83
extern void ea_quoted_insert ();
extern void ea_quoted_insert (WINDOW *window, int count, unsigned char key);
#define A_ea_insert 84
extern void ea_insert ();
extern void ea_insert (WINDOW *window, int count, unsigned char key);
#define A_ea_tab_insert 85
extern void ea_tab_insert ();
extern void ea_tab_insert (WINDOW *window, int count, unsigned char key);
#define A_ea_transpose_chars 86
extern void ea_transpose_chars ();
extern void ea_transpose_chars (WINDOW *window, int count, unsigned char key);
#define A_ea_yank 87
extern void ea_yank ();
extern void ea_yank (WINDOW *window, int count, unsigned char key);
#define A_ea_yank_pop 88
extern void ea_yank_pop ();
extern void ea_yank_pop (WINDOW *window, int count, unsigned char key);
#define A_ea_kill_line 89
extern void ea_kill_line ();
extern void ea_kill_line (WINDOW *window, int count, unsigned char key);
#define A_ea_backward_kill_line 90
extern void ea_backward_kill_line ();
extern void ea_backward_kill_line (WINDOW *window, int count, unsigned char key);
#define A_ea_kill_word 91
extern void ea_kill_word ();
extern void ea_kill_word (WINDOW *window, int count, unsigned char key);
#define A_ea_backward_kill_word 92
extern void ea_backward_kill_word ();
extern void ea_backward_kill_word (WINDOW *window, int count, unsigned char key);
#define A_ea_possible_completions 93
extern void ea_possible_completions ();
extern void ea_possible_completions (WINDOW *window, int count, unsigned char key);
#define A_ea_complete 94
extern void ea_complete ();
extern void ea_complete (WINDOW *window, int count, unsigned char key);
#define A_ea_scroll_completions_window 95
extern void ea_scroll_completions_window ();
extern void ea_scroll_completions_window (WINDOW *window, int count, unsigned char key);
/* Functions declared in "./infodoc.c". */
#define A_info_get_help_window 96
extern void info_get_help_window ();
extern void info_get_help_window (WINDOW *window, int count, unsigned char key);
#define A_info_get_info_help_node 97
extern void info_get_info_help_node ();
extern void info_get_info_help_node (WINDOW *window, int count, unsigned char key);
#define A_describe_key 98
extern void describe_key ();
extern void describe_key (WINDOW *window, int count, unsigned char key);
#define A_info_where_is 99
extern void info_where_is ();
extern void info_where_is (WINDOW *window, int count, unsigned char key);
/* Functions declared in "./m-x.c". */
#define A_describe_command 100
extern void describe_command ();
extern void describe_command (WINDOW *window, int count, unsigned char key);
#define A_info_execute_command 101
extern void info_execute_command ();
extern void info_execute_command (WINDOW *window, int count, unsigned char key);
#define A_set_screen_height 102
extern void set_screen_height ();
extern void set_screen_height (WINDOW *window, int count, unsigned char key);
/* Functions declared in "./indices.c". */
#define A_info_index_search 103
extern void info_index_search ();
extern void info_index_search (WINDOW *window, int count, unsigned char key);
#define A_info_next_index_match 104
extern void info_next_index_match ();
extern void info_next_index_match (WINDOW *window, int count, unsigned char key);
#define A_info_index_apropos 105
extern void info_index_apropos ();
extern void info_index_apropos (WINDOW *window, int count, unsigned char key);
/* Functions declared in "./nodemenu.c". */
#define A_list_visited_nodes 106
extern void list_visited_nodes ();
extern void list_visited_nodes (WINDOW *window, int count, unsigned char key);
#define A_select_visited_node 107
extern void select_visited_node ();
extern void select_visited_node (WINDOW *window, int count, unsigned char key);
/* Functions declared in "./footnotes.c". */
#define A_info_show_footnotes 108
extern void info_show_footnotes ();
extern void info_show_footnotes (WINDOW *window, int count, unsigned char key);
/* Functions declared in "./variables.c". */
#define A_describe_variable 109
extern void describe_variable ();
extern void describe_variable (WINDOW *window, int count, unsigned char key);
#define A_set_variable 110
extern void set_variable ();
extern void set_variable (WINDOW *window, int count, unsigned char key);
#define A_NCOMMANDS 111

View File

@ -1,7 +1,7 @@
/* infomap.c -- keymaps for Info.
$Id: infomap.c,v 1.7 2003/05/13 16:27:04 karl Exp $
$Id: infomap.c,v 1.10 2004/07/30 20:43:40 karl Exp $
Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002, 2003 Free Software
Copyright (C) 1993, 1997, 1998, 1999, 2001, 2002, 2003, 2004 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@ -30,10 +30,13 @@
#include "variables.h"
#endif /* INFOKEY */
static int keymap_bind_keyseq (Keymap map, const char *keyseq,
KEYMAP_ENTRY *keyentry);
/* Return a new keymap which has all the uppercase letters mapped to run
the function info_do_lowercase_version (). */
Keymap
keymap_make_keymap ()
keymap_make_keymap (void)
{
int i;
Keymap keymap;
@ -61,10 +64,7 @@ keymap_make_keymap ()
#if defined(INFOKEY)
static FUNCTION_KEYSEQ *
find_function_keyseq (map, c, rootmap)
Keymap map;
int c;
Keymap rootmap;
find_function_keyseq (Keymap map, int c, Keymap rootmap)
{
FUNCTION_KEYSEQ *k;
@ -78,7 +78,7 @@ find_function_keyseq (map, c, rootmap)
Keymap m = rootmap;
if (k->map != rootmap)
continue;
for (p = k->keyseq; *p && m[*p].type == ISKMAP; p++)
for (p = (unsigned char *) k->keyseq; *p && m[*p].type == ISKMAP; p++)
m = (Keymap)m[*p].function;
if (*p != c || p[1])
continue;
@ -90,10 +90,8 @@ find_function_keyseq (map, c, rootmap)
}
static void
add_function_keyseq (function, keyseq, rootmap)
InfoCommand *function;
const unsigned char *keyseq;
Keymap rootmap;
add_function_keyseq (InfoCommand *function,
const char *keyseq, Keymap rootmap)
{
FUNCTION_KEYSEQ *ks;
@ -109,10 +107,8 @@ add_function_keyseq (function, keyseq, rootmap)
}
static void
remove_function_keyseq (function, keyseq, rootmap)
InfoCommand *function;
const unsigned char *keyseq;
Keymap rootmap;
remove_function_keyseq (InfoCommand *function,
const char *keyseq, Keymap rootmap)
{
FUNCTION_KEYSEQ *k, *kp;
@ -135,10 +131,7 @@ remove_function_keyseq (function, keyseq, rootmap)
/* Return a new keymap which is a copy of MAP. */
Keymap
keymap_copy_keymap (map, rootmap, newroot)
Keymap map;
Keymap rootmap;
Keymap newroot;
keymap_copy_keymap (Keymap map, Keymap rootmap, Keymap newroot)
{
int i;
Keymap keymap;
@ -158,14 +151,14 @@ keymap_copy_keymap (map, rootmap, newroot)
case ISFUNC:
keymap[i].function = map[i].function;
#if defined(INFOKEY)
ks = find_function_keyseq (map, i, rootmap, NULL);
ks = find_function_keyseq (map, i, rootmap);
if (ks)
add_function_keyseq(map[i].function, ks->keyseq, newroot);
#endif /* INFOKEY */
break;
case ISKMAP:
keymap[i].function = (InfoCommand *)keymap_copy_keymap (
(Keymap)map[i].function, rootmap);
keymap[i].function = (InfoCommand *)keymap_copy_keymap
((Keymap)map[i].function, rootmap, NULL);
break;
}
}
@ -174,9 +167,7 @@ keymap_copy_keymap (map, rootmap, newroot)
/* Free the keymap and its descendants. */
void
keymap_discard_keymap (map, rootmap)
Keymap map;
Keymap rootmap;
keymap_discard_keymap (Keymap map, Keymap rootmap)
{
int i;
@ -210,14 +201,12 @@ keymap_discard_keymap (map, rootmap)
}
/* Conditionally bind key sequence. */
int
keymap_bind_keyseq (map, keyseq, keyentry)
Keymap map;
const unsigned char *keyseq;
KEYMAP_ENTRY *keyentry;
static int
keymap_bind_keyseq (Keymap map,
const char *keyseq, KEYMAP_ENTRY *keyentry)
{
Keymap m = map;
const unsigned char *s = keyseq;
const unsigned char *s = (unsigned char *) keyseq;
int c;
if (s == NULL || *s == '\0') return 0;
@ -715,8 +704,8 @@ initialize_vi_like_keymaps ()
map['H'].function = info_get_help_window;
map['i'].function = info_index_search;
map['I'].function = info_goto_invocation_node;
map['j'].function = info_down_line;
map['k'].function = info_up_line;
map['j'].function = info_next_line;
map['k'].function = info_prev_line;
map['l'].function = info_history_node;
map['m'].function = info_menu_item;
map['n'].function = info_search_next;
@ -1193,8 +1182,8 @@ static unsigned char default_vi_like_info_keys[] =
'H', NUL, A_info_get_help_window,
'i', NUL, A_info_index_search,
'I', NUL, A_info_goto_invocation_node,
'j', NUL, A_info_down_line,
'k', NUL, A_info_up_line,
'j', NUL, A_info_next_line,
'k', NUL, A_info_prev_line,
'l', NUL, A_info_history_node,
'm', NUL, A_info_menu_item,
'n', NUL, A_info_search_next,
@ -1432,8 +1421,7 @@ static unsigned int user_vars_len;
* Return the size of a file, or 0 if the size can't be determined.
*/
static unsigned long
filesize(f)
int f;
filesize(int f)
{
long pos = lseek(f, 0L, SEEK_CUR);
long sz = -1L;
@ -1449,8 +1437,7 @@ filesize(f)
Integers are stored as two bytes, low order first, in radix INFOKEY_RADIX.
*/
static int
getint(sp)
unsigned char **sp;
getint(unsigned char **sp)
{
int n;
@ -1465,7 +1452,7 @@ getint(sp)
/* Fetch the contents of the standard infokey file "$HOME/.info". Return
true if ok, false if not. */
static int
fetch_user_maps()
fetch_user_maps(void)
{
char *filename = NULL;
char *homedir;
@ -1495,7 +1482,8 @@ fetch_user_maps()
{
if (filename && errno != ENOENT)
{
info_error(filesys_error_string(filename, errno));
info_error(filesys_error_string(filename, errno),
NULL, NULL);
free(filename);
}
return 0;
@ -1509,11 +1497,11 @@ fetch_user_maps()
/* Bad file (a valid file must have at least 9 chars, and
more than 100 KB is a problem). */
if (len < INFOKEY_NMAGIC + 2)
info_error(_("Ignoring invalid infokey file `%s' - too small"),
filename);
info_error((char *) _("Ignoring invalid infokey file `%s' - too small"),
filename, NULL);
else
info_error(_("Ignoring invalid infokey file `%s' - too big"),
filename);
info_error((char *) _("Ignoring invalid infokey file `%s' - too big"),
filename, NULL);
close(f);
free(filename);
return 0;
@ -1523,9 +1511,10 @@ fetch_user_maps()
buf = (unsigned char *)xmalloc((int)len);
nread = read(f, buf, (unsigned int) len);
close(f);
if (nread != len)
if ((unsigned int) nread != len)
{
info_error(_("Error reading infokey file `%s' - short read"), filename);
info_error((char *) _("Error reading infokey file `%s' - short read"),
filename, NULL);
free(buf);
free(filename);
return 0;
@ -1543,26 +1532,33 @@ fetch_user_maps()
|| buf[len - 1] != INFOKEY_MAGIC_E3
)
{
info_error(_("Invalid infokey file `%s' (bad magic numbers) -- run infokey to update it"), filename);
info_error((char *) _("Invalid infokey file `%s' (bad magic numbers) -- run infokey to update it"),
filename, NULL);
free(filename);
return 0;
}
if (len < INFOKEY_NMAGIC + strlen(VERSION) + 1 || strcmp(VERSION, buf + 4) != 0)
if (len < INFOKEY_NMAGIC + strlen(VERSION) + 1
|| strcmp(VERSION, (char *) (buf + 4)) != 0)
{
info_error(_("Your infokey file `%s' is out of date -- run infokey to update it"), filename);
info_error
((char *) _("Your infokey file `%s' is out of date -- run infokey to update it"),
filename, NULL);
free(filename);
return 0;
}
/* Extract the pieces. */
for (p = buf + 4 + strlen(VERSION) + 1; p - buf < len - 4; p += n)
for (p = buf + 4 + strlen(VERSION) + 1;
(unsigned int) (p - buf) < len - 4;
p += n)
{
int s = *p++;
n = getint(&p);
if (n < 0 || n > len - 4 - (p - buf))
if (n < 0 || (unsigned int) n > len - 4 - (p - buf))
{
info_error(_("Invalid infokey file `%s' (bad section length) -- run infokey to update it"), filename);
info_error((char *) _("Invalid infokey file `%s' (bad section length) -- run infokey to update it"),
filename, NULL);
free(filename);
return 0;
}
@ -1582,7 +1578,8 @@ fetch_user_maps()
user_vars_len = n;
break;
default:
info_error(_("Invalid infokey file `%s' (bad section code) -- run infokey to update it"), filename);
info_error((char *) _("Invalid infokey file `%s' (bad section code) -- run infokey to update it"),
filename, NULL);
free(filename);
return 0;
}
@ -1597,27 +1594,26 @@ fetch_user_maps()
doesn't define.
*/
static int
decode_keys(src, slen, dst, dlen)
unsigned char *src;
unsigned int slen;
unsigned char *dst;
unsigned int dlen;
decode_keys(unsigned char *src, unsigned int slen,
unsigned char *dst, unsigned int dlen)
{
unsigned char *s = src;
unsigned char *d = dst;
#define To_dst(c) do { if (d - dst < dlen) *d++ = (c); } while (0)
#define To_dst(c) do { \
if ((unsigned int) (d - dst) < dlen) *d++ = (c); \
} while (0)
while (s - src < slen)
while ((unsigned int) (s - src) < slen)
{
unsigned char c = ISMETA(*s) ? UNMETA(*s) : *s;
if (c == SK_ESCAPE)
{
unsigned char *t;
char *t;
static char lit[] = { SK_ESCAPE, NUL };
switch (s + 1 - src < slen ? s[1] : '\0')
switch ((unsigned int) (s + 1 - src) < slen ? s[1] : '\0')
{
case SK_RIGHT_ARROW: t = term_kr; break;
case SK_LEFT_ARROW: t = term_kl; break;
@ -1658,20 +1654,17 @@ decode_keys(src, slen, dst, dlen)
/* Convert an infokey file section to keymap bindings. Return false if
the default bindings are to be suppressed. */
static int
section_to_keymaps(map, table, len)
Keymap map;
unsigned char *table;
unsigned int len;
section_to_keymaps(Keymap map, unsigned char *table, unsigned int len)
{
int stop;
unsigned char *p;
unsigned char *seq;
unsigned int seqlen;
unsigned char *seq = NULL;
unsigned int seqlen = 0;
enum { getseq, gotseq, getaction } state = getseq;
stop = len > 0 ? table[0] : 0;
for (p = table + 1; p - table < len; p++)
for (p = table + 1; (unsigned int) (p - table) < len; p++)
{
switch (state)
{
@ -1712,30 +1705,30 @@ section_to_keymaps(map, table, len)
action < A_NCOMMANDS
? &function_doc_array[action]
: NULL;
keymap_bind_keyseq(map, keyseq, &ke);
keymap_bind_keyseq(map,
(const char *) keyseq, &ke);
}
}
break;
}
}
if (state != getseq)
info_error(_("Bad data in infokey file -- some key bindings ignored"));
info_error((char *) _("Bad data in infokey file -- some key bindings ignored"),
NULL, NULL);
return !stop;
}
/* Convert an infokey file section to variable settings.
*/
static void
section_to_vars(table, len)
unsigned char *table;
unsigned int len;
section_to_vars(unsigned char *table, unsigned int len)
{
enum { getvar, gotvar, getval, gotval } state = getvar;
unsigned char *var = NULL;
unsigned char *val = NULL;
unsigned char *p;
for (p = table; p - table < len; p++)
for (p = table; (unsigned int) (p - table) < len; p++)
{
switch (state)
{
@ -1763,18 +1756,19 @@ section_to_vars(table, len)
case gotval:
if (!*p)
{
set_variable_to_value(var, val);
set_variable_to_value((char *) var, (char *) val);
state = getvar;
}
break;
}
}
if (state != getvar)
info_error(_("Bad data in infokey file -- some var settings ignored"));
info_error((char *) _("Bad data in infokey file -- some var settings ignored"),
NULL, NULL);
}
void
initialize_info_keymaps ()
initialize_info_keymaps (void)
{
int i;
int suppress_info_default_bindings = 0;

View File

@ -1,7 +1,8 @@
/* nodemenu.c -- produce a menu of all visited nodes.
$Id: nodemenu.c,v 1.3 2003/05/13 16:37:54 karl Exp $
$Id: nodemenu.c,v 1.5 2004/04/11 17:56:46 karl Exp $
Copyright (C) 1993, 1997, 1998, 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 1993, 1997, 1998, 2002, 2003, 2004 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -21,9 +22,11 @@
#include "info.h"
NODE * get_visited_nodes (Function *filter_func);
/* Return a line describing the format of a node information line. */
static const char *
nodemenu_format_info ()
nodemenu_format_info (void)
{
return (_("\n\
* Menu:\n\
@ -42,8 +45,7 @@ nodemenu_format_info ()
* (dir)Top:: 40 589 /usr/gnu/info/dir
*/
static char *
format_node_info (node)
NODE *node;
format_node_info (NODE *node)
{
register int i, len;
char *parent, *containing_file;
@ -109,10 +111,12 @@ format_node_info (node)
/* Little string comparison routine for qsort (). */
static int
compare_strings (string1, string2)
char **string1, **string2;
compare_strings (const void *entry1, const void *entry2)
{
return (strcasecmp (*string1, *string2));
char **e1 = (char **) entry1;
char **e2 = (char **) entry2;
return (strcasecmp (*e1, *e2));
}
/* The name of the nodemenu node. */
@ -123,8 +127,7 @@ static char *nodemenu_nodename = "*Node Menu*";
which nodes will appear in the listing. FILTER_FUNC takes an argument
of NODE, and returns non-zero if the node should appear in the listing. */
NODE *
get_visited_nodes (filter_func)
Function *filter_func;
get_visited_nodes (Function *filter_func)
{
register int i, iw_index;
INFO_WINDOW *info_win;
@ -196,14 +199,16 @@ get_visited_nodes (filter_func)
printf_to_message_buffer
("%s", replace_in_documentation
(_("Here is the menu of nodes you have recently visited.\n\
Select one from this menu, or use `\\[history-node]' in another window.\n")));
((char *) _("Here is the menu of nodes you have recently visited.\n\
Select one from this menu, or use `\\[history-node]' in another window.\n"), 0),
NULL, NULL);
printf_to_message_buffer ("%s\n", nodemenu_format_info ());
printf_to_message_buffer ("%s\n", (char *) nodemenu_format_info (),
NULL, NULL);
for (i = 0; (lines != (char **)NULL) && (i < lines_index); i++)
{
printf_to_message_buffer ("%s\n", lines[i]);
printf_to_message_buffer ("%s\n", lines[i], NULL, NULL);
free (lines[i]);
}
@ -308,7 +313,8 @@ DECLARE_INFO_COMMAND (select_visited_node,
free (node);
line =
info_read_completing_in_echo_area (window, _("Select visited node: "), menu);
info_read_completing_in_echo_area (window,
(char *) _("Select visited node: "), menu);
window = active_window;
@ -328,7 +334,7 @@ DECLARE_INFO_COMMAND (select_visited_node,
entry = info_get_labeled_reference (line, menu);
if (!entry)
info_error (_("The reference disappeared! (%s)."), line);
info_error ((char *) _("The reference disappeared! (%s)."), line, NULL);
else
info_select_reference (window, entry);
}

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
/* signals.c -- install and maintain Info signal handlers.
$Id: signals.c,v 1.4 2003/01/29 19:23:22 karl Exp $
/* signals.c -- install and maintain signal handlers.
$Id: signals.c,v 1.7 2004/04/11 17:56:46 karl Exp $
Copyright (C) 1993, 1994, 1995, 1998, 2002, 2003 Free Software
Copyright (C) 1993, 1994, 1995, 1998, 2002, 2003, 2004 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@ -18,11 +18,13 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Written by Brian Fox (bfox@ai.mit.edu). */
Originally written by Brian Fox (bfox@ai.mit.edu). */
#include "info.h"
#include "signals.h"
void initialize_info_signal_handler (void);
/* **************************************************************** */
/* */
/* Pretending That We Have POSIX Signals */
@ -32,8 +34,7 @@
#if !defined (HAVE_SIGPROCMASK) && defined (HAVE_SIGSETMASK)
/* Perform OPERATION on NEWSET, perhaps leaving information in OLDSET. */
static void
sigprocmask (operation, newset, oldset)
int operation, *newset, *oldset;
sigprocmask (int operation, int *newset, int *oldset)
{
switch (operation)
{
@ -64,8 +65,7 @@ sigprocmask (operation, newset, oldset)
#if defined (HAVE_SIGACTION) || defined (HAVE_SIGPROCMASK) ||\
defined (HAVE_SIGSETMASK)
static void
mask_termsig (set)
sigset_t *set;
mask_termsig (sigset_t *set)
{
# if defined (SIGTSTP)
sigaddset (set, SIGTSTP);
@ -75,6 +75,9 @@ mask_termsig (set)
# if defined (SIGWINCH)
sigaddset (set, SIGWINCH);
# endif
#if defined (SIGQUIT)
sigaddset (set, SIGQUIT);
#endif
#if defined (SIGINT)
sigaddset (set, SIGINT);
#endif
@ -84,23 +87,19 @@ mask_termsig (set)
}
#endif /* HAVE_SIGACTION || HAVE_SIGPROCMASK || HAVE_SIGSETMASK */
static RETSIGTYPE info_signal_proc ();
static RETSIGTYPE info_signal_proc (int sig);
#if defined (HAVE_SIGACTION)
typedef struct sigaction signal_info;
signal_info info_signal_handler;
static void
set_termsig (sig, old)
int sig;
signal_info *old;
set_termsig (int sig, signal_info *old)
{
sigaction (sig, &info_signal_handler, old);
}
static void
restore_termsig (sig, saved)
int sig;
const signal_info *saved;
restore_termsig (int sig, const signal_info *saved)
{
sigaction (sig, saved, NULL);
}
@ -114,15 +113,20 @@ static int term_conf_busy = 0;
static signal_info old_TSTP, old_TTOU, old_TTIN;
static signal_info old_WINCH, old_INT, old_USR1;
static signal_info old_QUIT;
void
initialize_info_signal_handler ()
initialize_info_signal_handler (void)
{
#if defined (HAVE_SIGACTION)
#ifdef SA_NOCLDSTOP
/* (Based on info from Paul Eggert found in coreutils.) Don't use
HAVE_SIGACTION to decide whether to use the sa_handler, sa_flags,
sa_mask members, as some systems (Solaris 7+) don't define them. Use
SA_NOCLDSTOP instead; it's been part of POSIX.1 since day 1 (in 1988). */
info_signal_handler.sa_handler = info_signal_proc;
info_signal_handler.sa_flags = 0;
mask_termsig (&info_signal_handler.sa_mask);
#endif /* HAVE_SIGACTION */
#endif /* SA_NOCLDSTOP */
#if defined (SIGTSTP)
set_termsig (SIGTSTP, &old_TSTP);
@ -134,6 +138,10 @@ initialize_info_signal_handler ()
set_termsig (SIGWINCH, &old_WINCH);
#endif
#if defined (SIGQUIT)
set_termsig (SIGQUIT, &old_QUIT);
#endif
#if defined (SIGINT)
set_termsig (SIGINT, &old_INT);
#endif
@ -145,7 +153,7 @@ initialize_info_signal_handler ()
}
static void
redisplay_after_signal ()
redisplay_after_signal (void)
{
terminal_clear_screen ();
display_clear_display (the_display);
@ -156,7 +164,7 @@ redisplay_after_signal ()
}
static void
reset_info_window_sizes ()
reset_info_window_sizes (void)
{
terminal_goto_xy (0, 0);
fflush (stdout);
@ -164,15 +172,14 @@ reset_info_window_sizes ()
terminal_get_screen_size ();
terminal_prep_terminal ();
display_initialize_display (screenwidth, screenheight);
window_new_screen_size (screenwidth, screenheight, NULL);
window_new_screen_size (screenwidth, screenheight);
redisplay_after_signal ();
}
static RETSIGTYPE
info_signal_proc (sig)
int sig;
info_signal_proc (int sig)
{
signal_info *old_signal_handler;
signal_info *old_signal_handler = NULL;
#if !defined (HAVE_SIGACTION)
/* best effort: first increment this counter and later block signals */
@ -195,6 +202,9 @@ info_signal_proc (sig)
case SIGTTOU:
case SIGTTIN:
#endif
#if defined (SIGQUIT)
case SIGQUIT:
#endif
#if defined (SIGINT)
case SIGINT:
#endif
@ -207,6 +217,10 @@ info_signal_proc (sig)
if (sig == SIGTTIN)
old_signal_handler = &old_TTIN;
#endif /* SIGTSTP */
#if defined (SIGQUIT)
if (sig == SIGQUIT)
old_signal_handler = &old_QUIT;
#endif /* SIGQUIT */
#if defined (SIGINT)
if (sig == SIGINT)
old_signal_handler = &old_INT;

View File

@ -1,8 +1,8 @@
/* terminal.c -- how to handle the physical terminal for Info.
$Id: terminal.c,v 1.1 2002/08/25 23:38:38 karl Exp $
$Id: terminal.c,v 1.3 2004/04/11 17:56:46 karl Exp $
Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1996, 1997, 1998,
1999, 2001, 2002 Free Software Foundation, Inc.
1999, 2001, 2002, 2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -18,7 +18,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Written by Brian Fox (bfox@ai.mit.edu). */
Originally written by Brian Fox (bfox@ai.mit.edu). */
#include "info.h"
#include "terminal.h"
@ -103,9 +103,6 @@ static char *visible_bell;
/* The string to write to turn on the meta key, if this term has one. */
static char *term_mm;
/* The string to write to turn off the meta key, if this term has one. */
static char *term_mo;
/* The string to turn on inverse mode, if this term has one. */
static char *term_invbeg;
@ -116,8 +113,7 @@ static char *term_invend;
return its argument, all the code I've looked at (termutils, less)
does so, so fine. */
static int
output_character_function (c)
int c;
output_character_function (int c)
{
putc (c, stdout);
return c;
@ -132,9 +128,9 @@ output_character_function (c)
/* Tell the terminal that we will be doing cursor addressable motion. */
static void
terminal_begin_using_terminal ()
terminal_begin_using_terminal (void)
{
RETSIGTYPE (*sigsave) ();
RETSIGTYPE (*sigsave) (int signum);
if (term_keypad_on)
send_to_terminal (term_keypad_on);
@ -163,9 +159,9 @@ terminal_begin_using_terminal ()
/* Tell the terminal that we will not be doing any more cursor
addressable motion. */
static void
terminal_end_using_terminal ()
terminal_end_using_terminal (void)
{
RETSIGTYPE (*sigsave) ();
RETSIGTYPE (*sigsave) (int signum);
if (term_keypad_off)
send_to_terminal (term_keypad_off);
@ -230,8 +226,7 @@ char *term_kx = NULL; /* del */
/* Move the cursor to the terminal location of X and Y. */
void
terminal_goto_xy (x, y)
int x, y;
terminal_goto_xy (int x, int y)
{
if (terminal_goto_xy_hook)
(*terminal_goto_xy_hook) (x, y);
@ -244,8 +239,7 @@ terminal_goto_xy (x, y)
/* Print STRING to the terminal at the current position. */
void
terminal_put_text (string)
char *string;
terminal_put_text (char *string)
{
if (terminal_put_text_hook)
(*terminal_put_text_hook) (string);
@ -257,9 +251,7 @@ terminal_put_text (string)
/* Print NCHARS from STRING to the terminal at the current position. */
void
terminal_write_chars (string, nchars)
char *string;
int nchars;
terminal_write_chars (char *string, int nchars)
{
if (terminal_write_chars_hook)
(*terminal_write_chars_hook) (string, nchars);
@ -272,7 +264,7 @@ terminal_write_chars (string, nchars)
/* Clear from the current position of the cursor to the end of the line. */
void
terminal_clear_to_eol ()
terminal_clear_to_eol (void)
{
if (terminal_clear_to_eol_hook)
(*terminal_clear_to_eol_hook) ();
@ -284,7 +276,7 @@ terminal_clear_to_eol ()
/* Clear the entire terminal screen. */
void
terminal_clear_screen ()
terminal_clear_screen (void)
{
if (terminal_clear_screen_hook)
(*terminal_clear_screen_hook) ();
@ -296,7 +288,7 @@ terminal_clear_screen ()
/* Move the cursor up one line. */
void
terminal_up_line ()
terminal_up_line (void)
{
if (terminal_up_line_hook)
(*terminal_up_line_hook) ();
@ -308,7 +300,7 @@ terminal_up_line ()
/* Move the cursor down one line. */
void
terminal_down_line ()
terminal_down_line (void)
{
if (terminal_down_line_hook)
(*terminal_down_line_hook) ();
@ -320,7 +312,7 @@ terminal_down_line ()
/* Turn on reverse video if possible. */
void
terminal_begin_inverse ()
terminal_begin_inverse (void)
{
if (terminal_begin_inverse_hook)
(*terminal_begin_inverse_hook) ();
@ -332,7 +324,7 @@ terminal_begin_inverse ()
/* Turn off reverse video if possible. */
void
terminal_end_inverse ()
terminal_end_inverse (void)
{
if (terminal_end_inverse_hook)
(*terminal_end_inverse_hook) ();
@ -345,7 +337,7 @@ terminal_end_inverse ()
/* Ring the terminal bell. The bell is run visibly if it both has one and
terminal_use_visible_bell_p is non-zero. */
void
terminal_ring_bell ()
terminal_ring_bell (void)
{
if (terminal_ring_bell_hook)
(*terminal_ring_bell_hook) ();
@ -360,8 +352,7 @@ terminal_ring_bell ()
/* At the line START, delete COUNT lines from the terminal display. */
static void
terminal_delete_lines (start, count)
int start, count;
terminal_delete_lines (int start, int count)
{
int lines;
@ -384,8 +375,7 @@ terminal_delete_lines (start, count)
/* At the line START, insert COUNT lines in the terminal display. */
static void
terminal_insert_lines (start, count)
int start, count;
terminal_insert_lines (int start, int count)
{
int lines;
@ -412,8 +402,7 @@ terminal_insert_lines (start, count)
towards the top of the screen, else they are scrolled towards the
bottom of the screen. */
void
terminal_scroll_terminal (start, end, amount)
int start, end, amount;
terminal_scroll_terminal (int start, int end, int amount)
{
if (!terminal_can_scroll)
return;
@ -449,8 +438,7 @@ terminal_scroll_terminal (start, end, amount)
/* Re-initialize the terminal considering that the TERM/TERMCAP variable
has changed. */
void
terminal_new_terminal (terminal_name)
char *terminal_name;
terminal_new_terminal (char *terminal_name)
{
if (terminal_new_terminal_hook)
(*terminal_new_terminal_hook) (terminal_name);
@ -462,7 +450,7 @@ terminal_new_terminal (terminal_name)
/* Set the global variables SCREENWIDTH and SCREENHEIGHT. */
void
terminal_get_screen_size ()
terminal_get_screen_size (void)
{
if (terminal_get_screen_size_hook)
(*terminal_get_screen_size_hook) ();
@ -522,8 +510,7 @@ terminal_get_screen_size ()
TERMINAL_HAS_META_P becomes nonzero if this terminal supports a Meta
key. Finally, the terminal screen is cleared. */
void
terminal_initialize_terminal (terminal_name)
char *terminal_name;
terminal_initialize_terminal (char *terminal_name)
{
char *buffer;
@ -632,12 +619,10 @@ terminal_initialize_terminal (terminal_name)
if (terminal_has_meta_p)
{
term_mm = tgetstr ("mm", &buffer);
term_mo = tgetstr ("mo", &buffer);
}
else
{
term_mm = NULL;
term_mo = NULL;
}
/* Attempt to find the arrow keys. */
@ -704,7 +689,7 @@ struct ltchars original_ltchars;
/* Prepare to start using the terminal to read characters singly. */
void
terminal_prep_terminal ()
terminal_prep_terminal (void)
{
int tty;
@ -844,7 +829,7 @@ terminal_prep_terminal ()
/* Restore the tty settings back to what they were before we started using
this terminal. */
void
terminal_unprep_terminal ()
terminal_unprep_terminal (void)
{
int tty;

File diff suppressed because it is too large Load Diff