1#if defined(EMACSFN_DEFNS)
2__RCSID("$MirOS: src/bin/mksh/emacsfn.h,v 1.5 2010/07/17 22:09:33 tg Exp $");
3#define FN(cname,sname,flags)	static int x_##cname(int);
4#elif defined(EMACSFN_ENUMS)
5#define FN(cname,sname,flags)	XFUNC_##cname,
6#define F0(cname,sname,flags)	XFUNC_##cname = 0,
7#elif defined(EMACSFN_ITEMS)
8#define FN(cname,sname,flags)	{ x_##cname, sname, flags },
9#endif
10
11#ifndef F0
12#define F0 FN
13#endif
14
15F0(abort, "abort", 0)
16FN(beg_hist, "beginning-of-history", 0)
17FN(cls, "clear-screen", 0)
18FN(comment, "comment", 0)
19FN(comp_comm, "complete-command", 0)
20FN(comp_file, "complete-file", 0)
21FN(comp_list, "complete-list", 0)
22FN(complete, "complete", 0)
23FN(del_back, "delete-char-backward", XF_ARG)
24FN(del_bword, "delete-word-backward", XF_ARG)
25FN(del_char, "delete-char-forward", XF_ARG)
26FN(del_fword, "delete-word-forward", XF_ARG)
27FN(del_line, "kill-line", 0)
28FN(draw_line, "redraw", 0)
29#ifndef MKSH_SMALL
30FN(edit_line, "edit-line", XF_ARG)
31#endif
32FN(end_hist, "end-of-history", 0)
33FN(end_of_text, "eot", 0)
34FN(enumerate, "list", 0)
35FN(eot_del, "eot-or-delete", XF_ARG)
36FN(error, "error", 0)
37FN(expand, "expand-file", 0)
38#ifndef MKSH_SMALL
39FN(fold_capitalise, "capitalize-word", XF_ARG)
40FN(fold_lower, "downcase-word", XF_ARG)
41FN(fold_upper, "upcase-word", XF_ARG)
42#endif
43FN(goto_hist, "goto-history", XF_ARG)
44#ifndef MKSH_SMALL
45FN(ins_string, "macro-string", XF_NOBIND)
46#endif
47FN(insert, "auto-insert", XF_ARG)
48FN(kill, "kill-to-eol", XF_ARG)
49FN(kill_region, "kill-region", 0)
50FN(list_comm, "list-command", 0)
51FN(list_file, "list-file", 0)
52FN(literal, "quote", 0)
53FN(meta1, "prefix-1", XF_PREFIX)
54FN(meta2, "prefix-2", XF_PREFIX)
55FN(meta_yank, "yank-pop", 0)
56FN(mv_back, "backward-char", XF_ARG)
57FN(mv_begin, "beginning-of-line", 0)
58FN(mv_bword, "backward-word", XF_ARG)
59FN(mv_end, "end-of-line", 0)
60FN(mv_forw, "forward-char", XF_ARG)
61FN(mv_fword, "forward-word", XF_ARG)
62FN(newline, "newline", 0)
63FN(next_com, "down-history", XF_ARG)
64FN(nl_next_com, "newline-and-next", 0)
65FN(noop, "no-op", 0)
66FN(prev_com, "up-history", XF_ARG)
67FN(prev_histword, "prev-hist-word", XF_ARG)
68FN(search_char_back, "search-character-backward", XF_ARG)
69FN(search_char_forw, "search-character-forward", XF_ARG)
70FN(search_hist, "search-history", 0)
71#ifndef MKSH_SMALL
72FN(search_hist_dn, "search-history-down", 0)
73FN(search_hist_up, "search-history-up", 0)
74#endif
75FN(set_arg, "set-arg", XF_NOBIND)
76FN(set_mark, "set-mark-command", 0)
77FN(transpose, "transpose-chars", 0)
78FN(version, "version", 0)
79#ifndef MKSH_SMALL
80FN(vt_hack, "vt100-hack", XF_ARG)
81#endif
82FN(xchg_point_mark, "exchange-point-and-mark", 0)
83FN(yank, "yank", 0)
84
85#undef FN
86#undef F0
87#undef EMACSFN_DEFNS
88#undef EMACSFN_ENUMS
89#undef EMACSFN_ITEMS
90