From 58df501913c17cb3a79f41548088d0f0bcf3a305 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 18 Jun 2025 13:39:35 +0200 Subject: [PATCH 1/3] docs: api, pack, events, develop --- runtime/doc/api.txt | 22 ++-- runtime/doc/autocmd.txt | 30 ++--- runtime/doc/channel.txt | 118 +++++++++---------- runtime/doc/develop.txt | 7 +- runtime/doc/gui.txt | 4 +- runtime/doc/lsp.txt | 24 ++-- runtime/doc/lua-guide.txt | 21 ++-- runtime/doc/lua.txt | 4 +- runtime/doc/options.txt | 4 +- runtime/doc/repeat.txt | 43 ++++--- runtime/doc/ui.txt | 2 +- runtime/doc/usr_41.txt | 2 +- runtime/doc/vimeval.txt | 2 +- runtime/doc/vimfn.txt | 7 +- runtime/lua/vim/_meta/options.lua | 4 +- runtime/lua/vim/_meta/vimfn.lua | 3 +- runtime/lua/vim/keymap.lua | 4 +- runtime/lua/vim/lsp.lua | 14 +-- runtime/lua/vim/lsp/client.lua | 5 +- src/gen/gen_eval_files.lua | 4 +- src/gen/gen_help_html.lua | 8 +- src/nvim/CMakeLists.txt | 3 +- src/nvim/eval.lua | 3 +- src/nvim/options.lua | 4 +- test/functional/lua/system_spec.lua | 21 +--- test/functional/vimscript/eval_spec.lua | 2 +- test/functional/vimscript/functions_spec.lua | 2 +- 27 files changed, 169 insertions(+), 198 deletions(-) diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 6e734c1645..470722a959 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -231,21 +231,19 @@ As Nvim evolves the API may change in compliance with this CONTRACT: - New functions and events may be added. - Any such extensions are OPTIONAL: old clients may ignore them. -- Function signatures will NOT CHANGE (after release), except as follows: - - Functions introduced in the development (unreleased) version MAY CHANGE. - (Clients can dynamically check `api_prerelease`, etc. |api-metadata|) - - New items may be ADDED to map/list parameters/results of functions and - events. - - Any such new items are OPTIONAL: old clients may ignore them. - - Existing items will not be removed (after release). - - Return type may change from void to non-void. Old clients MAY ignore the +- New functions MAY CHANGE before release. Clients can dynamically check + `api_prerelease`, |api-metadata|. +- Function signatures will NOT CHANGE after release, except as follows: + - Map/list parameters/results may be EXTENDED (new fields may be added). + - Such new fields are OPTIONAL: old clients MAY ignore them. + - Existing fields will not be removed. + - Return type MAY CHANGE from void to non-void. Old clients MAY ignore the new return value. - - An `opts` parameter may be added, which is not required in the request. - - Unlimited optional parameters may be added following an `opts` - parameter. + - An optional `opts` parameter may be ADDED. + - Optional parameters may be ADDED following an `opts` parameter. - Event parameters will not be removed or reordered (after release). - Events may be EXTENDED: new parameters may be added. -- Deprecated functions will not be removed until Nvim version 2.0 +- Deprecated functions will not be removed until Nvim 2.0. "Private" interfaces are NOT covered by this contract: diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 9091199daf..5482dabc40 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -73,7 +73,8 @@ Or use `:execute`: > Note that special characters (e.g., "%", "") in the ":autocmd" arguments are not expanded when the autocommand is defined. These will be expanded when the Event is recognized, and the {cmd} is executed. The only -exception is that "" is expanded when the autocmd is defined. Example: +exception is that "" (unlike "