forked from th-otto/gulam
-
Notifications
You must be signed in to change notification settings - Fork 1
/
function.c
148 lines (143 loc) · 5.15 KB
/
function.c
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
/* functions.c of gulam+ue -- key to function bindings
Most of this file is borrowed from MicroGnuEmacs. Many thanks. -- pm
*/
#include "ue.h"
/* static char snoop[] = "no-op"; */
static int noop(int f, int n)
{
UNUSED(f);
UNUSED(n);
return TRUE;
}
/* function-code-ptr : function-string0name table ::= Ideally there should
be no duplicates; but, it does not hurt. The order of these functions
has no effect on efficiency; they are grouped for their logical togetherness.
DO NOT change the content, or order of these by hand. This is generated by
kbgen.tos from data in kbin.000, and is coupled to the #defines used in kb.c
*/
FPFS fpfs[] = {
noop,
escctrld, /* "show-possible-expansions", */
escesc, /* "expand-name", */
miniterm, /* "terminate-mini-buffer", */
filename, /* "file-name", */
gxpand, /* "expand-name-gulam-style", */
togulambuf, /* "switch-to-gulam-buffer", */
execbuf, /* "execute-buffer", */
fileread, /* "read-file", */
showkbdmacro, /* "show-key-board-macro", */
#if XMDM
temul, /* "terminal-emulator", */
#else
noop, /* snoop, */
#endif
mvupwind, /* "move-window-up", */
mvdnwind, /* "move-window-dn", */
quickexit, /* "quick-exit", */
tempexit, /* "temporary-exit", */
gforwline, /* "gulam-forward-line", */
gulam, /* "gulam-do-newline", */
tab, /* "goto-next-tab", */
quit, /* "save-buffers-kill-emacs", */
ctrlg, /* "keyboard-quit", */
help, /* "help", */
ctlxlp, /* "start-kbd-macro", */
ctlxrp, /* "end-kbd-macro", */
ctlxe, /* "call-last-kbd-macro", */
setfillcol, /* , */
refresh, /* "redraw-display", */
backchar, /* "backward-char", */
forwchar, /* "forward-char", */
backdel, /* "backward-delete-char", */
forwdel, /* "delete-char", */
gotobol, /* "beginning-of-line", */
gotoeol, /* "end-of-line", */
killtext, /* "kill-line", */
forwline, /* "next-line", */
openline, /* "open-line", */
backline, /* "previous-line", */
newline, /* "insert-newline", */
indent, /* "newline-and-indent", */
gotoline, /* "goto-line", */
gspawn, /* "execute-one-Gulam-cmd", */
killtobln, /* */
fillpara, /* */
noop, /* snoop, */
backsearch, /* "search-backward", */
forwsearch, /* "search-forward", */
lforwchar, /* "line-forward-char", */
lforwdel, /* "line-delete-next-char", */
queryrepl, /* "query-replace", */
setmark, /* "set-mark-command", */
selfinsert, /* "self-insert", */
reposition, /* "recenter", */
quote, /* "quoted-insert", */
twiddle, /* "transpose-chars", */
copyregion, /* "copy-region-as-kill", */
killregion, /* "kill-region", */
keyreset, /* "keys-reset", */
semireset, /* */
noop, /* snoop, */
noop, /* snoop, */
yank, /* "yank", */
fileinsert, /* "insert-file", */
filevisit, /* "find-file", */
filesave, /* "save-buffer", */
filewrite, /* "write-file", */
noop, /* snoop, */
deblank, /* "delete-blank-lines", */
swapmark, /* "exchange-point-and-mark", */
showcpos, /* "what-cursor-position", */
nextwind, /* "next-window", */
prevwind, /* "previous-window", */
shrinkwind, /* "shrink-window", */
enlargewind, /* "enlarge-window", */
noop, /* snoop, */
onlywind, /* "delete-other-windows", */
splitwind, /* "split-window-vertically", */
noop, /* snoop */
noop, /* snoop, */
bufferinsert, /* "insert-buffer", */
usebuffer, /* "switch-to-buffer", */
lbackdel, /* "line-backward-delete-char", */
listbuffers, /* "list-buffers", */
killbuffer, /* "kill-buffer", */
savebuffers, /* "save-some-buffers", */
lbackchar, /* "line-backward-character", */
gotoeob, /* "end-of-buffer", */
gotobob, /* "beginning-of-buffer", */
gotobop, /* , */
gotoeop, /* , */
noop, /* , */
delwhite, /* "just-one-space", */
backword, /* "backward-word", */
capword, /* "capitalize-word", */
delbword, /* "kill-backward-word", */
delfword, /* "kill-word", */
forwword, /* "forward-word", */
lowerword, /* "downcase-word", */
upperword, /* "upcase-word", */
forwpage, /* "scroll-up", */
backpage, /* "scroll-down", */
gxpshow, /* "show-possible-completions", */
noop, /* snoop, */
noop, /* snoop, */
noop, /* snoop, */
noop, /* snoop, */
noop, /* snoop, */
noop, /* snoop, */
noop, /* snoop, */
showmatch, /* "blink-matching-paren-hack", */
noop, /* snoop, */
noop, /* snoop, */
desckey, /* "describe-key-briefly", */
wallchart, /* "describe-bindings", */
getarg,
metanext,
ctlxnext,
tenewline,
totebuf,
tesendtext,
errfwd, /* "error-forward", */
NULL, /* NULL, */
};