2015-12-12 22:08:44 +01:00
|
|
|
/*-
|
2016-07-26 23:37:26 +02:00
|
|
|
* Copyright (c) 2009, 2010, 2015, 2016
|
2015-12-12 22:08:44 +01:00
|
|
|
* mirabilos <m@mirbsd.org>
|
|
|
|
*
|
|
|
|
* Provided that these terms and disclaimer and all copyright notices
|
|
|
|
* are retained or reproduced in an accompanying document, permission
|
|
|
|
* is granted to deal in this work without restriction, including un-
|
|
|
|
* limited rights to use, publicly perform, distribute, sell, modify,
|
|
|
|
* merge, give away, or sublicence.
|
|
|
|
*
|
|
|
|
* This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
|
|
|
|
* the utmost extent permitted by applicable law, neither express nor
|
|
|
|
* implied; without malicious intent or gross negligence. In no event
|
|
|
|
* may a licensor, author or contributor be held liable for indirect,
|
|
|
|
* direct, other damage, loss, or other issues arising in any way out
|
|
|
|
* of dealing in the work, even if advised of the possibility of such
|
|
|
|
* damage or existence of a defect, except proven that it results out
|
|
|
|
* of said person's immediate fault when using the work as intended.
|
|
|
|
*/
|
|
|
|
|
2009-09-20 17:38:07 +02:00
|
|
|
#if defined(EMACSFN_DEFNS)
|
2016-09-01 14:59:12 +02:00
|
|
|
__RCSID("$MirOS: src/bin/mksh/emacsfn.h,v 1.10 2016/09/01 12:59:09 tg Exp $");
|
2009-09-20 17:38:07 +02:00
|
|
|
#define FN(cname,sname,flags) static int x_##cname(int);
|
|
|
|
#elif defined(EMACSFN_ENUMS)
|
|
|
|
#define FN(cname,sname,flags) XFUNC_##cname,
|
|
|
|
#define F0(cname,sname,flags) XFUNC_##cname = 0,
|
|
|
|
#elif defined(EMACSFN_ITEMS)
|
2010-07-18 00:09:40 +02:00
|
|
|
#define FN(cname,sname,flags) { x_##cname, sname, flags },
|
2009-09-20 17:38:07 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef F0
|
|
|
|
#define F0 FN
|
|
|
|
#endif
|
|
|
|
|
2010-07-18 00:09:40 +02:00
|
|
|
F0(abort, "abort", 0)
|
|
|
|
FN(beg_hist, "beginning-of-history", 0)
|
|
|
|
FN(cls, "clear-screen", 0)
|
|
|
|
FN(comment, "comment", 0)
|
|
|
|
FN(comp_comm, "complete-command", 0)
|
|
|
|
FN(comp_file, "complete-file", 0)
|
|
|
|
FN(comp_list, "complete-list", 0)
|
|
|
|
FN(complete, "complete", 0)
|
|
|
|
FN(del_back, "delete-char-backward", XF_ARG)
|
|
|
|
FN(del_bword, "delete-word-backward", XF_ARG)
|
|
|
|
FN(del_char, "delete-char-forward", XF_ARG)
|
|
|
|
FN(del_fword, "delete-word-forward", XF_ARG)
|
|
|
|
FN(del_line, "kill-line", 0)
|
|
|
|
FN(draw_line, "redraw", 0)
|
2009-09-20 19:00:53 +02:00
|
|
|
#ifndef MKSH_SMALL
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(edit_line, "edit-line", XF_ARG)
|
2009-09-20 19:00:53 +02:00
|
|
|
#endif
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(end_hist, "end-of-history", 0)
|
|
|
|
FN(end_of_text, "eot", 0)
|
|
|
|
FN(enumerate, "list", 0)
|
|
|
|
FN(eot_del, "eot-or-delete", XF_ARG)
|
|
|
|
FN(error, "error", 0)
|
2016-07-26 23:50:30 +02:00
|
|
|
#ifndef MKSH_SMALL
|
2016-07-26 23:37:26 +02:00
|
|
|
FN(eval_region, "evaluate-region", 0)
|
2016-07-26 23:50:30 +02:00
|
|
|
#endif
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(expand, "expand-file", 0)
|
2009-09-20 19:00:53 +02:00
|
|
|
#ifndef MKSH_SMALL
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(fold_capitalise, "capitalize-word", XF_ARG)
|
|
|
|
FN(fold_lower, "downcase-word", XF_ARG)
|
|
|
|
FN(fold_upper, "upcase-word", XF_ARG)
|
2009-09-20 19:00:53 +02:00
|
|
|
#endif
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(goto_hist, "goto-history", XF_ARG)
|
2009-09-23 20:04:58 +02:00
|
|
|
#ifndef MKSH_SMALL
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(ins_string, "macro-string", XF_NOBIND)
|
2009-09-23 20:04:58 +02:00
|
|
|
#endif
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(insert, "auto-insert", XF_ARG)
|
|
|
|
FN(kill, "kill-to-eol", XF_ARG)
|
|
|
|
FN(kill_region, "kill-region", 0)
|
|
|
|
FN(list_comm, "list-command", 0)
|
|
|
|
FN(list_file, "list-file", 0)
|
|
|
|
FN(literal, "quote", 0)
|
|
|
|
FN(meta1, "prefix-1", XF_PREFIX)
|
|
|
|
FN(meta2, "prefix-2", XF_PREFIX)
|
2015-07-10 20:41:07 +02:00
|
|
|
FN(meta3, "prefix-3", XF_PREFIX)
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(meta_yank, "yank-pop", 0)
|
|
|
|
FN(mv_back, "backward-char", XF_ARG)
|
2016-09-01 14:59:12 +02:00
|
|
|
FN(mv_beg, "beginning-of-line", 0)
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(mv_bword, "backward-word", XF_ARG)
|
|
|
|
FN(mv_end, "end-of-line", 0)
|
|
|
|
FN(mv_forw, "forward-char", XF_ARG)
|
|
|
|
FN(mv_fword, "forward-word", XF_ARG)
|
|
|
|
FN(newline, "newline", 0)
|
|
|
|
FN(next_com, "down-history", XF_ARG)
|
|
|
|
FN(nl_next_com, "newline-and-next", 0)
|
|
|
|
FN(noop, "no-op", 0)
|
|
|
|
FN(prev_com, "up-history", XF_ARG)
|
|
|
|
FN(prev_histword, "prev-hist-word", XF_ARG)
|
|
|
|
FN(search_char_back, "search-character-backward", XF_ARG)
|
|
|
|
FN(search_char_forw, "search-character-forward", XF_ARG)
|
|
|
|
FN(search_hist, "search-history", 0)
|
2009-09-20 19:00:53 +02:00
|
|
|
#ifndef MKSH_SMALL
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(search_hist_dn, "search-history-down", 0)
|
|
|
|
FN(search_hist_up, "search-history-up", 0)
|
2009-09-20 19:00:53 +02:00
|
|
|
#endif
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(set_arg, "set-arg", XF_NOBIND)
|
|
|
|
FN(set_mark, "set-mark-command", 0)
|
|
|
|
FN(transpose, "transpose-chars", 0)
|
|
|
|
FN(version, "version", 0)
|
2009-09-20 19:23:52 +02:00
|
|
|
#ifndef MKSH_SMALL
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(vt_hack, "vt100-hack", XF_ARG)
|
2009-09-20 19:23:52 +02:00
|
|
|
#endif
|
2010-07-18 00:09:40 +02:00
|
|
|
FN(xchg_point_mark, "exchange-point-and-mark", 0)
|
|
|
|
FN(yank, "yank", 0)
|
2009-09-20 17:38:07 +02:00
|
|
|
|
|
|
|
#undef FN
|
|
|
|
#undef F0
|
|
|
|
#undef EMACSFN_DEFNS
|
|
|
|
#undef EMACSFN_ENUMS
|
|
|
|
#undef EMACSFN_ITEMS
|