comparison src/proto/autocmd.pro @ 28449:80ed5ad30d28 v8.2.4749

patch 8.2.4749: <script> is not expanded in autocmd context Commit: https://github.com/vim/vim/commit/eca7c60d68e63001dbe3c8e5d240b0895e607fc3 Author: LemonBoy <thatlemon@gmail.com> Date: Thu Apr 14 15:39:43 2022 +0100 patch 8.2.4749: <script> is not expanded in autocmd context Problem: <script> is not expanded in autocmd context. Solution: Add the context to the pattern struct. (closes https://github.com/vim/vim/issues/10144) Rename AutoPatCmd to AutoPatCmd_T.
author Bram Moolenaar <Bram@vim.org>
date Thu, 14 Apr 2022 16:45:02 +0200
parents e466fdbe0699
children c5862dfaf0bd
comparison
equal deleted inserted replaced
28448:68c4651c8dfc 28449:80ed5ad30d28
5 void free_all_autocmds(void); 5 void free_all_autocmds(void);
6 int check_ei(void); 6 int check_ei(void);
7 char_u *au_event_disable(char *what); 7 char_u *au_event_disable(char *what);
8 void au_event_restore(char_u *old_ei); 8 void au_event_restore(char_u *old_ei);
9 void do_autocmd(exarg_T *eap, char_u *arg_in, int forceit); 9 void do_autocmd(exarg_T *eap, char_u *arg_in, int forceit);
10 int do_doautocmd(char_u *arg, int do_msg, int *did_something); 10 int do_doautocmd(char_u *arg_start, int do_msg, int *did_something);
11 void ex_doautoall(exarg_T *eap); 11 void ex_doautoall(exarg_T *eap);
12 int check_nomodeline(char_u **argp); 12 int check_nomodeline(char_u **argp);
13 void aucmd_prepbuf(aco_save_T *aco, buf_T *buf); 13 void aucmd_prepbuf(aco_save_T *aco, buf_T *buf);
14 void aucmd_restbuf(aco_save_T *aco); 14 void aucmd_restbuf(aco_save_T *aco);
15 int apply_autocmds(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf); 15 int apply_autocmds(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf);
16 int apply_autocmds_exarg(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, exarg_T *eap); 16 int apply_autocmds_exarg(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, exarg_T *eap);
17 int apply_autocmds_retval(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, int *retval); 17 int apply_autocmds_retval(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, int *retval);
18 int trigger_cursorhold(void); 18 int trigger_cursorhold(void);
19 int has_winscrolled(void);
19 int has_cursormoved(void); 20 int has_cursormoved(void);
20 int has_cursormovedI(void); 21 int has_cursormovedI(void);
21 int has_textchanged(void); 22 int has_textchanged(void);
22 int has_textchangedI(void); 23 int has_textchangedI(void);
23 int has_textchangedP(void); 24 int has_textchangedP(void);
24 int has_insertcharpre(void); 25 int has_insertcharpre(void);
25 int has_cmdundefined(void); 26 int has_cmdundefined(void);
26 int has_textyankpost(void); 27 int has_textyankpost(void);
27 int has_completechanged(void); 28 int has_completechanged(void);
28 int has_modechanged(void); 29 int has_modechanged(void);
29 int has_winscrolled(void);
30 void block_autocmds(void); 30 void block_autocmds(void);
31 void unblock_autocmds(void); 31 void unblock_autocmds(void);
32 int is_autocmd_blocked(void); 32 int is_autocmd_blocked(void);
33 sctx_T *acp_script_ctx(AutoPatCmd_T *acp);
33 char_u *getnextac(int c, void *cookie, int indent, getline_opt_T options); 34 char_u *getnextac(int c, void *cookie, int indent, getline_opt_T options);
34 int has_autocmd(event_T event, char_u *sfname, buf_T *buf); 35 int has_autocmd(event_T event, char_u *sfname, buf_T *buf);
35 char_u *get_augroup_name(expand_T *xp, int idx); 36 char_u *get_augroup_name(expand_T *xp, int idx);
36 char_u *set_context_in_autocmd(expand_T *xp, char_u *arg, int doautocmd); 37 char_u *set_context_in_autocmd(expand_T *xp, char_u *arg, int doautocmd);
37 char_u *get_event_name(expand_T *xp, int idx); 38 char_u *get_event_name(expand_T *xp, int idx);