Mercurial > vim
annotate src/proto/autocmd.pro @ 30904:8c7495056f35 v9.0.0786
patch 9.0.0786: user command does not get number from :tab modifier
Commit: https://github.com/vim/vim/commit/208567e9d744ef7b89bed1f62e951ae4ee2f6f5f
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue Oct 18 13:11:21 2022 +0100
patch 9.0.0786: user command does not get number from :tab modifier
Problem: User command does not get number from :tab modifier.
Solution: Include the number. (closes https://github.com/vim/vim/issues/11393, closes https://github.com/vim/vim/issues/6801)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 18 Oct 2022 14:15:08 +0200 |
parents | c5862dfaf0bd |
children | a86ee6c0309e |
rev | line source |
---|---|
15634
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 /* autocmd.c */ |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 void aubuflocal_remove(buf_T *buf); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
3 int au_has_group(char_u *name); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
4 void do_augroup(char_u *arg, int del_group); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
5 void free_all_autocmds(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 int check_ei(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 char_u *au_event_disable(char *what); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 void au_event_restore(char_u *old_ei); |
25463
05f9e8f2016c
patch 8.2.3268: cannot use a block with :autocmd like with :command
Bram Moolenaar <Bram@vim.org>
parents:
21883
diff
changeset
|
9 void do_autocmd(exarg_T *eap, char_u *arg_in, int forceit); |
28449
80ed5ad30d28
patch 8.2.4749: <script> is not expanded in autocmd context
Bram Moolenaar <Bram@vim.org>
parents:
28375
diff
changeset
|
10 int do_doautocmd(char_u *arg_start, int do_msg, int *did_something); |
15634
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 void ex_doautoall(exarg_T *eap); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 int check_nomodeline(char_u **argp); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
13 void aucmd_prepbuf(aco_save_T *aco, buf_T *buf); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
14 void aucmd_restbuf(aco_save_T *aco); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
15 int apply_autocmds(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
16 int apply_autocmds_exarg(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, exarg_T *eap); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
17 int apply_autocmds_retval(event_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, int *retval); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
18 int trigger_cursorhold(void); |
28449
80ed5ad30d28
patch 8.2.4749: <script> is not expanded in autocmd context
Bram Moolenaar <Bram@vim.org>
parents:
28375
diff
changeset
|
19 int has_winscrolled(void); |
15634
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
20 int has_cursormoved(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
21 int has_cursormovedI(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
22 int has_textchanged(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
23 int has_textchangedI(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
24 int has_textchangedP(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
25 int has_insertcharpre(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
26 int has_cmdundefined(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
27 int has_textyankpost(void); |
16268
0f65f2808470
patch 8.1.1138: plugins don't get notified when the popup menu changes
Bram Moolenaar <Bram@vim.org>
parents:
15634
diff
changeset
|
28 int has_completechanged(void); |
25790
16a7d1154be8
patch 8.2.3430: no generic way to trigger an autocommand on mode change
Bram Moolenaar <Bram@vim.org>
parents:
25463
diff
changeset
|
29 int has_modechanged(void); |
15634
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
30 void block_autocmds(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
31 void unblock_autocmds(void); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
32 int is_autocmd_blocked(void); |
28449
80ed5ad30d28
patch 8.2.4749: <script> is not expanded in autocmd context
Bram Moolenaar <Bram@vim.org>
parents:
28375
diff
changeset
|
33 sctx_T *acp_script_ctx(AutoPatCmd_T *acp); |
21883
a427f5f26419
patch 8.2.1491: Vim9: crash when compiling heredoc lines start with comment
Bram Moolenaar <Bram@vim.org>
parents:
20826
diff
changeset
|
34 char_u *getnextac(int c, void *cookie, int indent, getline_opt_T options); |
15634
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
35 int has_autocmd(event_T event, char_u *sfname, buf_T *buf); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
36 char_u *get_augroup_name(expand_T *xp, int idx); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
37 char_u *set_context_in_autocmd(expand_T *xp, char_u *arg, int doautocmd); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
38 char_u *get_event_name(expand_T *xp, int idx); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
39 int autocmd_supported(char_u *name); |
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
40 int au_exists(char_u *arg); |
28917
c5862dfaf0bd
patch 8.2.4981: it is not possible to manipulate autocommands
Bram Moolenaar <Bram@vim.org>
parents:
28449
diff
changeset
|
41 void f_autocmd_add(typval_T *argvars, typval_T *rettv); |
c5862dfaf0bd
patch 8.2.4981: it is not possible to manipulate autocommands
Bram Moolenaar <Bram@vim.org>
parents:
28449
diff
changeset
|
42 void f_autocmd_delete(typval_T *argvars, typval_T *rettv); |
c5862dfaf0bd
patch 8.2.4981: it is not possible to manipulate autocommands
Bram Moolenaar <Bram@vim.org>
parents:
28449
diff
changeset
|
43 void f_autocmd_get(typval_T *argvars, typval_T *rettv); |
15634
746b95fd25ad
patch 8.1.0825: code for autocommands is mixed with file I/O code
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
44 /* vim: set ft=c : */ |