File: mp_func_i.h

package info (click to toggle)
mped 3.3.17-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,288 kB
  • ctags: 1,635
  • sloc: ansic: 13,150; sh: 393; makefile: 232; perl: 66
file content (357 lines) | stat: -rw-r--r-- 12,805 bytes parent folder | download
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
struct _mpf_functions _node_mpf_zoom_out [] = { {
  NULL,NULL,
  "zoom-out",mpf_zoom_out,LL("Decrement font size"),1
} };
struct _mpf_functions _node_mpf_toggle_spellcheck [] = { {
  NULL,NULL,
  "toggle-spellcheck",mpf_toggle_spellcheck,LL("Mark spelling errors"),1
} };
struct _mpf_functions _node_mpf_unmark [] = { {
  NULL,_node_mpf_toggle_spellcheck,
  "unmark",mpf_unmark,LL("Unmark block"),1
} };
struct _mpf_functions _node_mpf_zoom_in [] = { {
  _node_mpf_zoom_out,_node_mpf_unmark,
  "zoom-in",mpf_zoom_in,LL("Increment font size"),1
} };
struct _mpf_functions _node_mpf_toggle_insert [] = { {
  NULL,NULL,
  "toggle-insert",mpf_toggle_insert,LL("Toggle insert/overwrite"),1
} };
struct _mpf_functions _node_mpf_toggle_regex [] = { {
  NULL,_node_mpf_toggle_insert,
  "toggle-regex",mpf_toggle_regex,LL("Use regular expressions"),1
} };
struct _mpf_functions _node_mpf_toggle_case [] = { {
  NULL,NULL,
  "toggle-case",mpf_toggle_case,LL("Case sensitive"),1
} };
struct _mpf_functions _node_mpf_toggle_column_80 [] = { {
  NULL,_node_mpf_toggle_case,
  "toggle-column-80",mpf_toggle_column_80,LL("Mark column #80"),1
} };
struct _mpf_functions _node_mpf_toggle_cr_lf [] = { {
  _node_mpf_toggle_regex,_node_mpf_toggle_column_80,
  "toggle-cr-lf",mpf_toggle_cr_lf,LL("Save LF as CR/LF"),1
} };
struct _mpf_functions _node_mpf_toggle_save_tabs [] = { {
  _node_mpf_zoom_in,_node_mpf_toggle_cr_lf,
  "toggle-save-tabs",mpf_toggle_save_tabs,LL("Save tabs"),1
} };
struct _mpf_functions _node_mpf_toggle_auto_indent [] = { {
  NULL,NULL,
  "toggle-auto-indent",mpf_toggle_auto_indent,LL("Automatic indentation"),1
} };
struct _mpf_functions _node_mpf_sort [] = { {
  NULL,NULL,
  "sort",mpf_sort,LL("Sort lines"),1
} };
struct _mpf_functions _node_mpf_suspend [] = { {
  NULL,_node_mpf_sort,
  "suspend",mpf_suspend,LL("Suspend application"),1
} };
struct _mpf_functions _node_mpf_sync [] = { {
  _node_mpf_toggle_auto_indent,_node_mpf_suspend,
  "sync",mpf_sync,LL("Save modified texts"),1
} };
struct _mpf_functions _node_mpf_set_word_wrap [] = { {
  NULL,NULL,
  "set-word-wrap",mpf_set_word_wrap,LL("Word wrap..."),1
} };
struct _mpf_functions _node_mpf_show_clipboard [] = { {
  NULL,_node_mpf_set_word_wrap,
  "show-clipboard",mpf_show_clipboard,LL("Show clipboard"),1
} };
struct _mpf_functions _node_mpf_seek_next [] = { {
  NULL,NULL,
  "seek-next",mpf_seek_next,LL("Search next"),1
} };
struct _mpf_functions _node_mpf_set_password [] = { {
  NULL,_node_mpf_seek_next,
  "set-password",mpf_set_password,LL("Password protect..."),1
} };
struct _mpf_functions _node_mpf_set_tab_size [] = { {
  _node_mpf_show_clipboard,_node_mpf_set_password,
  "set-tab-size",mpf_set_tab_size,LL("Tab size..."),1
} };
struct _mpf_functions _node_mpf_show_log [] = { {
  _node_mpf_sync,_node_mpf_set_tab_size,
  "show-log",mpf_show_log,LL("Show log"),1
} };
struct _mpf_functions _node_mpf_toggle_break_hardlinks [] = { {
  _node_mpf_toggle_save_tabs,_node_mpf_show_log,
  "toggle-break-hardlinks",mpf_toggle_break_hardlinks,LL("Break hardlinks on write"),1
} };
struct _mpf_functions _node_mpf_save_as [] = { {
  NULL,NULL,
  "save-as",mpf_save_as,LL("Save as..."),1
} };
struct _mpf_functions _node_mpf_replace [] = { {
  NULL,NULL,
  "replace",mpf_replace,LL("Replace..."),1
} };
struct _mpf_functions _node_mpf_replace_all [] = { {
  NULL,_node_mpf_replace,
  "replace-all",mpf_replace_all,LL("Replace in all..."),1
} };
struct _mpf_functions _node_mpf_save [] = { {
  _node_mpf_save_as,_node_mpf_replace_all,
  "save",mpf_save,LL("Save..."),1
} };
struct _mpf_functions _node_mpf_record_macro [] = { {
  NULL,NULL,
  "record-macro",mpf_record_macro,LL("Record macro"),1
} };
struct _mpf_functions _node_mpf_reformat_paragraph [] = { {
  NULL,_node_mpf_record_macro,
  "reformat-paragraph",mpf_reformat_paragraph,LL("Reformat paragraph with word wrapping"),1
} };
struct _mpf_functions _node_mpf_paste [] = { {
  NULL,NULL,
  "paste",mpf_paste,LL("Paste block"),1
} };
struct _mpf_functions _node_mpf_play_macro [] = { {
  NULL,_node_mpf_paste,
  "play-macro",mpf_play_macro,LL("Play macro"),1
} };
struct _mpf_functions _node_mpf_prev [] = { {
  _node_mpf_reformat_paragraph,_node_mpf_play_macro,
  "prev",mpf_prev,LL("Previous"),1
} };
struct _mpf_functions _node_mpf_reopen [] = { {
  _node_mpf_save,_node_mpf_prev,
  "reopen",mpf_reopen,LL("Reopen..."),1
} };
struct _mpf_functions _node_mpf_next [] = { {
  NULL,NULL,
  "next",mpf_next,LL("Next"),1
} };
struct _mpf_functions _node_mpf_open [] = { {
  NULL,_node_mpf_next,
  "open",mpf_open,LL("Open..."),1
} };
struct _mpf_functions _node_mpf_move_word_left [] = { {
  NULL,NULL,
  "move-word-left",mpf_move_word_left,LL("Word left"),1
} };
struct _mpf_functions _node_mpf_move_word_right [] = { {
  NULL,_node_mpf_move_word_left,
  "move-word-right",mpf_move_word_right,LL("Word right"),1
} };
struct _mpf_functions _node_mpf_new [] = { {
  _node_mpf_open,_node_mpf_move_word_right,
  "new",mpf_new,LL("New"),1
} };
struct _mpf_functions _node_mpf_move_up [] = { {
  NULL,NULL,
  "move-up",mpf_move_up,LL("Line up"),1
} };
struct _mpf_functions _node_mpf_move_wheel_down [] = { {
  NULL,_node_mpf_move_up,
  "move-wheel-down",mpf_move_wheel_down,LL("Page down"),1
} };
struct _mpf_functions _node_mpf_move_page_up [] = { {
  NULL,NULL,
  "move-page-up",mpf_move_page_up,LL("Page up"),1
} };
struct _mpf_functions _node_mpf_move_prev [] = { {
  NULL,_node_mpf_move_page_up,
  "move-prev",mpf_move_prev,LL("Move to previous instance of current char"),1
} };
struct _mpf_functions _node_mpf_move_right [] = { {
  _node_mpf_move_wheel_down,_node_mpf_move_prev,
  "move-right",mpf_move_right,LL("Character right"),1
} };
struct _mpf_functions _node_mpf_move_wheel_up [] = { {
  _node_mpf_new,_node_mpf_move_right,
  "move-wheel-up",mpf_move_wheel_up,LL("Page up"),1
} };
struct _mpf_functions _node_mpf_open_under_cursor [] = { {
  _node_mpf_reopen,_node_mpf_move_wheel_up,
  "open-under-cursor",mpf_open_under_cursor,LL("Open file under cursor"),1
} };
struct _mpf_functions _node_mpf_seek [] = { {
  _node_mpf_toggle_break_hardlinks,_node_mpf_open_under_cursor,
  "seek",mpf_seek,LL("Search text..."),1
} };
struct _mpf_functions _node_mpf_move_next [] = { {
  NULL,NULL,
  "move-next",mpf_move_next,LL("Move to next instance of current char"),1
} };
struct _mpf_functions _node_mpf_move_eof [] = { {
  NULL,NULL,
  "move-eof",mpf_move_eof,LL("End of document"),1
} };
struct _mpf_functions _node_mpf_move_eol [] = { {
  NULL,_node_mpf_move_eof,
  "move-eol",mpf_move_eol,LL("End of line"),1
} };
struct _mpf_functions _node_mpf_move_left [] = { {
  _node_mpf_move_next,_node_mpf_move_eol,
  "move-left",mpf_move_left,LL("Character left"),1
} };
struct _mpf_functions _node_mpf_move_bof [] = { {
  NULL,NULL,
  "move-bof",mpf_move_bof,LL("Beginning of document"),1
} };
struct _mpf_functions _node_mpf_move_bol [] = { {
  NULL,_node_mpf_move_bof,
  "move-bol",mpf_move_bol,LL("Beginning of line"),1
} };
struct _mpf_functions _node_mpf_mark_match [] = { {
  NULL,NULL,
  "mark-match",mpf_mark_match,LL("Select last succesful search"),1
} };
struct _mpf_functions _node_mpf_menu [] = { {
  NULL,_node_mpf_mark_match,
  "menu",mpf_menu,LL("Menu"),1
} };
struct _mpf_functions _node_mpf_mouse_position [] = { {
  _node_mpf_move_bol,_node_mpf_menu,
  "mouse-position",mpf_mouse_position,LL("Position cursor with mouse"),1
} };
struct _mpf_functions _node_mpf_move_down [] = { {
  _node_mpf_move_left,_node_mpf_mouse_position,
  "move-down",mpf_move_down,LL("Line down"),1
} };
struct _mpf_functions _node_mpf_key_help [] = { {
  NULL,NULL,
  "key-help",mpf_key_help,LL("Help on keys"),1
} };
struct _mpf_functions _node_mpf_join_line_above [] = { {
  NULL,NULL,
  "join-line-above",mpf_join_line_above,LL("Join current line to one above"),1
} };
struct _mpf_functions _node_mpf_join_line_below [] = { {
  NULL,_node_mpf_join_line_above,
  "join-line-below",mpf_join_line_below,LL("Join current line to one below"),1
} };
struct _mpf_functions _node_mpf_jump_matching_bracket [] = { {
  _node_mpf_key_help,_node_mpf_join_line_below,
  "jump-matching-bracket",mpf_jump_matching_bracket,LL("Jump to matching bracket"),1
} };
struct _mpf_functions _node_mpf_insert_line_below [] = { {
  NULL,NULL,
  "insert-line-below",mpf_insert_line_below,LL("Insert new line below cursor"),1
} };
struct _mpf_functions _node_mpf_insert_tab [] = { {
  NULL,_node_mpf_insert_line_below,
  "insert-tab",mpf_insert_tab,LL("Insert tab"),1
} };
struct _mpf_functions _node_mpf_help [] = { {
  NULL,NULL,
  "help",mpf_help,LL("Help for word under cursor"),1
} };
struct _mpf_functions _node_mpf_insert_line [] = { {
  NULL,_node_mpf_help,
  "insert-line",mpf_insert_line,LL("Insert line"),1
} };
struct _mpf_functions _node_mpf_insert_line_above [] = { {
  _node_mpf_insert_tab,_node_mpf_insert_line,
  "insert-line-above",mpf_insert_line_above,LL("Insert new line above cursor"),1
} };
struct _mpf_functions _node_mpf_insert_template [] = { {
  _node_mpf_jump_matching_bracket,_node_mpf_insert_line_above,
  "insert-template",mpf_insert_template,LL("Insert template..."),1
} };
struct _mpf_functions _node_mpf_mark [] = { {
  _node_mpf_move_down,_node_mpf_insert_template,
  "mark",mpf_mark,LL("Mark beginning/end of block"),1
} };
struct _mpf_functions _node_mpf_goto [] = { {
  NULL,NULL,
  "goto",mpf_goto,LL("Go to line..."),1
} };
struct _mpf_functions _node_mpf_find_tag [] = { {
  NULL,NULL,
  "find-tag",mpf_find_tag,LL("Search tag..."),1
} };
struct _mpf_functions _node_mpf_flip_letter_case [] = { {
  NULL,_node_mpf_find_tag,
  "flip-letter-case",mpf_flip_letter_case,LL("Flip letter case if A-Z or a-z"),1
} };
struct _mpf_functions _node_mpf_flip_word_case [] = { {
  _node_mpf_goto,_node_mpf_flip_letter_case,
  "flip-word-case",mpf_flip_word_case,LL("Flip word case"),1
} };
struct _mpf_functions _node_mpf_exec_command [] = { {
  NULL,NULL,
  "exec-command",mpf_exec_command,LL("Run system command..."),1
} };
struct _mpf_functions _node_mpf_exec_function [] = { {
  NULL,_node_mpf_exec_command,
  "exec-function",mpf_exec_function,LL("Execute editor function..."),1
} };
struct _mpf_functions _node_mpf_document_list [] = { {
  NULL,NULL,
  "document-list",mpf_document_list,LL("Document list"),1
} };
struct _mpf_functions _node_mpf_edit_config_file [] = { {
  NULL,_node_mpf_document_list,
  "edit-config-file",mpf_edit_config_file,LL("Edit configuration file"),1
} };
struct _mpf_functions _node_mpf_edit_templates_file [] = { {
  _node_mpf_exec_function,_node_mpf_edit_config_file,
  "edit-templates-file",mpf_edit_templates_file,LL("Edit templates file"),1
} };
struct _mpf_functions _node_mpf_exit [] = { {
  _node_mpf_flip_word_case,_node_mpf_edit_templates_file,
  "exit",mpf_exit,LL("Exit"),1
} };
struct _mpf_functions _node_mpf_delete_word [] = { {
  NULL,NULL,
  "delete-word",mpf_delete_word,LL("Delete whole word"),1
} };
struct _mpf_functions _node_mpf_delete_word_begin [] = { {
  NULL,_node_mpf_delete_word,
  "delete-word-begin",mpf_delete_word_begin,LL("Delete to the beginning of word"),1
} };
struct _mpf_functions _node_mpf_delete_left [] = { {
  NULL,NULL,
  "delete-left",mpf_delete_left,LL("Delete char to the left of cursor"),1
} };
struct _mpf_functions _node_mpf_delete_line [] = { {
  NULL,_node_mpf_delete_left,
  "delete-line",mpf_delete_line,LL("Delete line"),1
} };
struct _mpf_functions _node_mpf_delete_whitespace [] = { {
  _node_mpf_delete_word_begin,_node_mpf_delete_line,
  "delete-whitespace",mpf_delete_whitespace,LL("Delete all whitespace after cursor"),1
} };
struct _mpf_functions _node_mpf_copy [] = { {
  NULL,NULL,
  "copy",mpf_copy,LL("Copy block"),1
} };
struct _mpf_functions _node_mpf_cut [] = { {
  NULL,_node_mpf_copy,
  "cut",mpf_cut,LL("Cut block"),1
} };
struct _mpf_functions _node_mpf_about [] = { {
  NULL,NULL,
  "about",mpf_about,LL("About..."),1
} };
struct _mpf_functions _node_mpf_close [] = { {
  NULL,_node_mpf_about,
  "close",mpf_close,LL("Close"),1
} };
struct _mpf_functions _node_mpf_completion [] = { {
  _node_mpf_cut,_node_mpf_close,
  "completion",mpf_completion,LL("Complete tag..."),1
} };
struct _mpf_functions _node_mpf_delete [] = { {
  _node_mpf_delete_whitespace,_node_mpf_completion,
  "delete",mpf_delete,LL("Delete char over cursor"),1
} };
struct _mpf_functions _node_mpf_delete_word_end [] = { {
  _node_mpf_exit,_node_mpf_delete,
  "delete-word-end",mpf_delete_word_end,LL("Delete to the end of word"),1
} };
struct _mpf_functions _node_mpf_grep [] = { {
  _node_mpf_mark,_node_mpf_delete_word_end,
  "grep",mpf_grep,LL("Grep (find inside) files..."),1
} };
struct _mpf_functions _node_mpf_move_page_down [] = { {
  _node_mpf_seek,_node_mpf_grep,
  "move-page-down",mpf_move_page_down,LL("Page down"),1
} };
struct _mpf_functions *mpf_functions = _node_mpf_move_page_down;