Mercurial > vim
diff src/proto/autocmd.pro @ 28917:c5862dfaf0bd v8.2.4981
patch 8.2.4981: it is not possible to manipulate autocommands
Commit: https://github.com/vim/vim/commit/1755a91851f7022fdd3eecfbd2cc0b508a2f2a8f
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu May 19 10:31:47 2022 +0100
patch 8.2.4981: it is not possible to manipulate autocommands
Problem: It is not possible to manipulate autocommands.
Solution: Add functions to add, get and set autocommands. (Yegappan
Lakshmanan, closes #10291)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 19 May 2022 11:45:05 +0200 |
parents | 80ed5ad30d28 |
children | a86ee6c0309e |
line wrap: on
line diff
--- a/src/proto/autocmd.pro +++ b/src/proto/autocmd.pro @@ -38,4 +38,7 @@ char_u *set_context_in_autocmd(expand_T char_u *get_event_name(expand_T *xp, int idx); int autocmd_supported(char_u *name); int au_exists(char_u *arg); +void f_autocmd_add(typval_T *argvars, typval_T *rettv); +void f_autocmd_delete(typval_T *argvars, typval_T *rettv); +void f_autocmd_get(typval_T *argvars, typval_T *rettv); /* vim: set ft=c : */