1/*-
2 * Copyright (c) 2009, 2010, 2015, 2016
3 *	mirabilos <m@mirbsd.org>
4 *
5 * Provided that these terms and disclaimer and all copyright notices
6 * are retained or reproduced in an accompanying document, permission
7 * is granted to deal in this work without restriction, including un-
8 * limited rights to use, publicly perform, distribute, sell, modify,
9 * merge, give away, or sublicence.
10 *
11 * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
12 * the utmost extent permitted by applicable law, neither express nor
13 * implied; without malicious intent or gross negligence. In no event
14 * may a licensor, author or contributor be held liable for indirect,
15 * direct, other damage, loss, or other issues arising in any way out
16 * of dealing in the work, even if advised of the possibility of such
17 * damage or existence of a defect, except proven that it results out
18 * of said person's immediate fault when using the work as intended.
19 */
20
21#if defined(EMACSFN_DEFNS)
22__RCSID("$MirOS: src/bin/mksh/emacsfn.h,v 1.10 2016/09/01 12:59:09 tg Exp $");
23#define FN(cname,sname,flags)	static int x_##cname(int);
24#elif defined(EMACSFN_ENUMS)
25#define FN(cname,sname,flags)	XFUNC_##cname,
26#define F0(cname,sname,flags)	XFUNC_##cname = 0,
27#elif defined(EMACSFN_ITEMS)
28#define FN(cname,sname,flags)	{ x_##cname, sname, flags },
29#endif
30
31#ifndef F0
32#define F0 FN
33#endif
34
35F0(abort, "abort", 0)
36FN(beg_hist, "beginning-of-history", 0)
37FN(cls, "clear-screen", 0)
38FN(comment, "comment", 0)
39FN(comp_comm, "complete-command", 0)
40FN(comp_file, "complete-file", 0)
41FN(comp_list, "complete-list", 0)
42FN(complete, "complete", 0)
43FN(del_back, "delete-char-backward", XF_ARG)
44FN(del_bword, "delete-word-backward", XF_ARG)
45FN(del_char, "delete-char-forward", XF_ARG)
46FN(del_fword, "delete-word-forward", XF_ARG)
47FN(del_line, "kill-line", 0)
48FN(draw_line, "redraw", 0)
49#ifndef MKSH_SMALL
50FN(edit_line, "edit-line", XF_ARG)
51#endif
52FN(end_hist, "end-of-history", 0)
53FN(end_of_text, "eot", 0)
54FN(enumerate, "list", 0)
55FN(eot_del, "eot-or-delete", XF_ARG)
56FN(error, "error", 0)
57#ifndef MKSH_SMALL
58FN(eval_region, "evaluate-region", 0)
59#endif
60FN(expand, "expand-file", 0)
61#ifndef MKSH_SMALL
62FN(fold_capitalise, "capitalize-word", XF_ARG)
63FN(fold_lower, "downcase-word", XF_ARG)
64FN(fold_upper, "upcase-word", XF_ARG)
65#endif
66FN(goto_hist, "goto-history", XF_ARG)
67#ifndef MKSH_SMALL
68FN(ins_string, "macro-string", XF_NOBIND)
69#endif
70FN(insert, "auto-insert", XF_ARG)
71FN(kill, "kill-to-eol", XF_ARG)
72FN(kill_region, "kill-region", 0)
73FN(list_comm, "list-command", 0)
74FN(list_file, "list-file", 0)
75FN(literal, "quote", 0)
76FN(meta1, "prefix-1", XF_PREFIX)
77FN(meta2, "prefix-2", XF_PREFIX)
78FN(meta3, "prefix-3", XF_PREFIX)
79FN(meta_yank, "yank-pop", 0)
80FN(mv_back, "backward-char", XF_ARG)
81FN(mv_beg, "beginning-of-line", 0)
82FN(mv_bword, "backward-word", XF_ARG)
83FN(mv_end, "end-of-line", 0)
84FN(mv_forw, "forward-char", XF_ARG)
85FN(mv_fword, "forward-word", XF_ARG)
86FN(newline, "newline", 0)
87FN(next_com, "down-history", XF_ARG)
88FN(nl_next_com, "newline-and-next", 0)
89FN(noop, "no-op", 0)
90FN(prev_com, "up-history", XF_ARG)
91FN(prev_histword, "prev-hist-word", XF_ARG)
92FN(search_char_back, "search-character-backward", XF_ARG)
93FN(search_char_forw, "search-character-forward", XF_ARG)
94FN(search_hist, "search-history", 0)
95#ifndef MKSH_SMALL
96FN(search_hist_dn, "search-history-down", 0)
97FN(search_hist_up, "search-history-up", 0)
98#endif
99FN(set_arg, "set-arg", XF_NOBIND)
100FN(set_mark, "set-mark-command", 0)
101FN(transpose, "transpose-chars", 0)
102FN(version, "version", 0)
103#ifndef MKSH_SMALL
104FN(vt_hack, "vt100-hack", XF_ARG)
105#endif
106FN(xchg_point_mark, "exchange-point-and-mark", 0)
107FN(yank, "yank", 0)
108
109#undef FN
110#undef F0
111#undef EMACSFN_DEFNS
112#undef EMACSFN_ENUMS
113#undef EMACSFN_ITEMS
114