1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
|
/*
* File: cmd.h
* Purpose: Declarations for user-callable editing commands.
* Author: Lars Wirzenius
* Version: "@(#)SeX:$Id: cmd.h,v 1.44 1996/12/07 16:28:24 liw Exp $"
* Description: All command functions have the same type. If they succeed,
* they return 0. If they fail, they leave the state of the
* system as unchanged as possible, record an error message
* with error (see error.h), and return -1.
*
* The command functions get a pointer to the editing window
* descriptor (struct editwin; see editwin.h) as the only
* argument.
*
* Each command function has a corresponding action function
* (see actions.h), which is registered via Xt so that the user
* can use resources to bind the action function (and, therefore,
* the command function) to an X event.
*/
#ifndef cmd_h
#define cmd_h
#include <stddef.h>
struct win;
typedef int cmd_function(struct win *);
extern int cmd_prev_was_cut;
int cmd_insert(struct win *, const char *, size_t);
cmd_function cmd_indent_selection_space;
cmd_function cmd_undent_selection_space;
cmd_function cmd_indent_selection;
cmd_function cmd_undent_selection;
cmd_function cmd_insert_indent;
cmd_function cmd_indent_line;
cmd_function cmd_unindent_right_curly;
cmd_function cmd_forward;
cmd_function cmd_backward;
cmd_function cmd_next_line;
cmd_function cmd_prev_line;
cmd_function cmd_goto_boln;
cmd_function cmd_goto_eoln;
cmd_function cmd_next_word;
cmd_function cmd_prev_word;
cmd_function cmd_next_para;
cmd_function cmd_prev_para;
cmd_function cmd_goto_bof;
cmd_function cmd_goto_eof;
cmd_function cmd_goto_top;
cmd_function cmd_goto_bottom;
cmd_function cmd_goto_selection;
cmd_function cmd_cut;
cmd_function cmd_copy;
cmd_function cmd_cut_ctrl_k;
cmd_function cmd_cut_previous;
cmd_function cmd_cut_next;
cmd_function cmd_cut_prev_word;
cmd_function cmd_cut_next_word;
cmd_function cmd_yank;
cmd_function cmd_yank_previous;
cmd_function cmd_yank_column;
cmd_function cmd_yank_column_previous;
cmd_function cmd_about;
cmd_function cmd_help;
cmd_function cmd_help_getting;
cmd_function cmd_help_bugs;
cmd_function cmd_help_list;
cmd_function cmd_quit;
cmd_function cmd_quit_and_save_all;
cmd_function cmd_quit_without_saving;
cmd_function cmd_search_popup;
cmd_function cmd_search_next;
cmd_function cmd_search_selection;
cmd_function cmd_search_and_replace_all;
cmd_function cmd_replace_and_search;
cmd_function cmd_replace_once;
cmd_function cmd_cancel_search;
cmd_function cmd_query_load_file;
cmd_function cmd_set_name_and_load_file;
cmd_function cmd_load_file;
cmd_function cmd_reload_file;
cmd_function cmd_load_selection;
cmd_function cmd_save_as;
cmd_function cmd_set_name_and_save_file;
cmd_function cmd_save_file;
cmd_function cmd_save_all;
cmd_function cmd_fake_save;
cmd_function cmd_kill_buffer;
cmd_function cmd_insert_file;
cmd_function cmd_query_insert_file;
cmd_function cmd_write_to;
cmd_function cmd_query_write_to;
cmd_function cmd_pipe;
cmd_function cmd_query_pipe;
cmd_function cmd_format_selection;
cmd_function cmd_goto_line;
cmd_function cmd_query_goto_line;
cmd_function cmd_new;
cmd_function cmd_next_file;
cmd_function cmd_prev_file;
cmd_function cmd_clone;
cmd_function cmd_close;
cmd_function cmd_close_others;
cmd_function cmd_open_all;
cmd_function cmd_next_page;
cmd_function cmd_prev_page;
cmd_function cmd_scroll_next_page;
cmd_function cmd_scroll_prev_page;
cmd_function cmd_scroll_left_one;
cmd_function cmd_scroll_right_one;
cmd_function cmd_center;
cmd_function cmd_select_para;
cmd_function cmd_toggle_columnar;
cmd_function cmd_make_columnar;
cmd_function cmd_make_linear;
cmd_function cmd_extend_forward;
cmd_function cmd_extend_backward;
cmd_function cmd_extend_boln;
cmd_function cmd_extend_eoln;
cmd_function cmd_extend_prev_line;
cmd_function cmd_extend_next_line;
cmd_function cmd_extend_bof;
cmd_function cmd_extend_eof;
cmd_function cmd_extend_prev_page;
cmd_function cmd_extend_next_page;
cmd_function cmd_extend_prev_word;
cmd_function cmd_extend_next_word;
cmd_function cmd_extend_prev_para;
cmd_function cmd_extend_next_para;
cmd_function cmd_extend_top;
cmd_function cmd_extend_bottom;
cmd_function cmd_extend_mark_0;
cmd_function cmd_extend_mark_1;
cmd_function cmd_extend_mark_2;
cmd_function cmd_extend_mark_3;
cmd_function cmd_extend_mark_4;
cmd_function cmd_extend_mark_5;
cmd_function cmd_extend_mark_6;
cmd_function cmd_extend_mark_7;
cmd_function cmd_extend_mark_8;
cmd_function cmd_extend_mark_9;
cmd_function cmd_extend_pair;
cmd_function cmd_extend_line;
cmd_function cmd_set_mark_0;
cmd_function cmd_set_mark_1;
cmd_function cmd_set_mark_2;
cmd_function cmd_set_mark_3;
cmd_function cmd_set_mark_4;
cmd_function cmd_set_mark_5;
cmd_function cmd_set_mark_6;
cmd_function cmd_set_mark_7;
cmd_function cmd_set_mark_8;
cmd_function cmd_set_mark_9;
cmd_function cmd_goto_mark_0;
cmd_function cmd_goto_mark_1;
cmd_function cmd_goto_mark_2;
cmd_function cmd_goto_mark_3;
cmd_function cmd_goto_mark_4;
cmd_function cmd_goto_mark_5;
cmd_function cmd_goto_mark_6;
cmd_function cmd_goto_mark_7;
cmd_function cmd_goto_mark_8;
cmd_function cmd_goto_mark_9;
#endif
|