Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 122 lines (113 sloc) 2.382 kB
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
1 /* autocmd.h */
2
3 #ifdef FEATURE_AUTOCMD
4
5 /* The following symbolic constants may be passed to auperform() to trigger
6 * auto-commands. The values here correspond to indicies into the nametbl[]
7 * array in autocmd.c -- if you change one, then you should change the other
8 * to keep them in sync.
9 */
10 typedef enum {
11 AU_ALL_EVENTS = 0,
12 AU_NONOPTION_EVENTS,
13 AU_BUFCREATE,
14 AU_BUFDELETE,
15 AU_BUFENTER,
16 AU_BUFFILEPOST,
17 AU_BUFFILEPRE,
18 AU_BUFHIDDEN,
19 AU_BUFLEAVE,
20 AU_BUFNEWFILE,
21 AU_BUFREAD, /* same as AU_BUFREADPOST */
22 AU_BUFREADPOST,
23 AU_BUFREADPRE,
24 AU_BUFUNLOAD,
25 AU_BUFWRITE, /* same as AU_BUFWRITEPRE */
26 AU_BUFWRITEPOST,
27 AU_BUFWRITEPRE,
28 AU_FILEAPPENDPOST,
29 AU_FILEAPPENDPRE,
30 AU_FILECHANGEDSHELL,
31 AU_FILEREADPOST,
32 AU_FILEREADPRE,
33 AU_FILEWRITEPOST,
34 AU_FILEWRITEPRE,
35 AU_FILTERREADPOST,
36 AU_FILTERREADPRE,
37 AU_FILTERWRITEPOST,
38 AU_FILTERWRITEPRE,
39 AU_STDINREADPOST,
40 AU_STDINREADPRE,
41 AU_ALIASENTER,
42 AU_ALIASLEAVE,
43 AU_BGCHANGED,
44 AU_CURSORHOLD,
45 AU_DISPLAYENTER,
46 AU_DISPLAYLEAVE,
47 AU_DISPMAPENTER,
48 AU_DISPMAPLEAVE,
49 AU_EDIT,
50 AU_FILEENCODING,
51 AU_FILETYPE,
52 AU_FOCUSGAINED,
53 AU_FOCUSLOST,
54 AU_GUIENTER,
55 AU_OPTCHANGED,
56 AU_OPTSET,
57 AU_SCRIPTENTER,
58 AU_SCRIPTLEAVE,
59 AU_SYNTAX,
60 AU_TERMCHANGED,
61 AU_USER,
62 AU_VIMENTER,
63 AU_VIMLEAVE,
64 AU_VIMLEAVEPRE,
65 AU_WINENTER,
66 AU_WINLEAVE,
67 AU_USER01,
68 AU_USER02,
69 AU_USER03,
70 AU_USER04,
71 AU_USER05,
72 AU_USER06,
73 AU_USER07,
74 AU_USER08,
75 AU_USER09,
76 AU_USER10,
77 AU_USER11,
78 AU_USER12,
79 AU_USER13,
80 AU_USER14,
81 AU_USER15,
82 AU_USER16,
83 AU_USER17,
84 AU_USER18,
85 AU_USER19,
86 AU_USER20,
87 AU_USER21,
88 AU_USER22,
89 AU_USER23,
90 AU_USER24,
91 AU_USER25,
92 AU_USER26,
93 AU_USER27,
94 AU_USER28,
95 AU_USER29,
96 AU_USER30,
97 AU_QTY_EVENTS, /* number of events in nametbl[] */
98 AU_NO_EVENT /* not a valid event code */
99 } auevent_t;
100
101 extern MARK autop, aubottom;
102 extern ELVBOOL aubusy;
103
104 extern RESULT ex_auevent P_((EXINFO *xinf));
105 extern RESULT ex_augroup P_((EXINFO *xinf));
106 extern RESULT ex_autocmd P_((EXINFO *xinf));
107 extern RESULT ex_doautocmd P_((EXINFO *xinf));
108 extern RESULT auperform P_((WINDOW win, ELVBOOL bang, CHAR *groupname, auevent_t event, CHAR *filename));
109 extern void audispmap P_((void));
110 extern CHAR *auname P_((CHAR *name));
111
112 # ifdef FEATURE_MKEXRC
113 extern void ausave P_((BUFFER custom));
114 # endif
115
116 # ifdef FEATURE_COMPLETE
117 extern CHAR *aucomplete P_((WINDOW win, MARK from, MARK to));
118 # endif
119
120
121 #endif /* not FEATURE_AUTOCMD */
Something went wrong with that request. Please try again.