mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
docs(api): update v:errmsg behavior #18593
This commit is contained in:
parent
6613f58ceb
commit
54b5222fbb
@ -1725,8 +1725,7 @@ Vimscript Functions *api-vimscript*
|
||||
nvim_call_dict_function({dict}, {fn}, {args})
|
||||
Calls a VimL |Dictionary-function| with the given arguments.
|
||||
|
||||
On execution error: fails with VimL error, does not update
|
||||
v:errmsg.
|
||||
On execution error: fails with VimL error, updates v:errmsg.
|
||||
|
||||
Parameters: ~
|
||||
{dict} Dictionary, or String evaluating to a VimL |self|
|
||||
@ -1740,8 +1739,7 @@ nvim_call_dict_function({dict}, {fn}, {args})
|
||||
nvim_call_function({fn}, {args}) *nvim_call_function()*
|
||||
Calls a VimL function with the given arguments.
|
||||
|
||||
On execution error: fails with VimL error, does not update
|
||||
v:errmsg.
|
||||
On execution error: fails with VimL error, updates v:errmsg.
|
||||
|
||||
Parameters: ~
|
||||
{fn} Function to call
|
||||
@ -1760,6 +1758,8 @@ nvim_cmd({*cmd}, {*opts}) *nvim_cmd()*
|
||||
argument, expanding filenames in a command that otherwise
|
||||
doesn't expand filenames, etc.
|
||||
|
||||
On execution error: fails with VimL error, updates v:errmsg.
|
||||
|
||||
Parameters: ~
|
||||
{cmd} Command to execute. Must be a Dictionary that can
|
||||
contain the same values as the return value of
|
||||
@ -1781,8 +1781,7 @@ nvim_cmd({*cmd}, {*opts}) *nvim_cmd()*
|
||||
nvim_command({command}) *nvim_command()*
|
||||
Executes an Ex command.
|
||||
|
||||
On execution error: fails with VimL error, does not update
|
||||
v:errmsg.
|
||||
On execution error: fails with VimL error, updates v:errmsg.
|
||||
|
||||
Prefer using |nvim_cmd()| or |nvim_exec()| over this. To
|
||||
evaluate multiple lines of Vim script or an Ex command
|
||||
@ -1798,8 +1797,7 @@ nvim_eval({expr}) *nvim_eval()*
|
||||
Evaluates a VimL |expression|. Dictionaries and Lists are
|
||||
recursively expanded.
|
||||
|
||||
On execution error: fails with VimL error, does not update
|
||||
v:errmsg.
|
||||
On execution error: fails with VimL error, updates v:errmsg.
|
||||
|
||||
Parameters: ~
|
||||
{expr} VimL expression string
|
||||
@ -1814,8 +1812,7 @@ nvim_exec({src}, {output}) *nvim_exec()*
|
||||
Unlike |nvim_command()| this function supports heredocs,
|
||||
script-scope (s:), etc.
|
||||
|
||||
On execution error: fails with VimL error, does not update
|
||||
v:errmsg.
|
||||
On execution error: fails with VimL error, updates v:errmsg.
|
||||
|
||||
Parameters: ~
|
||||
{src} Vimscript code
|
||||
|
@ -34,7 +34,7 @@
|
||||
/// Unlike |nvim_command()| this function supports heredocs, script-scope (s:),
|
||||
/// etc.
|
||||
///
|
||||
/// On execution error: fails with VimL error, does not update v:errmsg.
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
///
|
||||
/// @see |execute()|
|
||||
/// @see |nvim_command()|
|
||||
@ -98,7 +98,7 @@ theend:
|
||||
|
||||
/// Executes an Ex command.
|
||||
///
|
||||
/// On execution error: fails with VimL error, does not update v:errmsg.
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
///
|
||||
/// Prefer using |nvim_cmd()| or |nvim_exec()| over this. To evaluate multiple lines of Vim script
|
||||
/// or an Ex command directly, use |nvim_exec()|. To construct an Ex command using a structured
|
||||
@ -118,7 +118,7 @@ void nvim_command(String command, Error *err)
|
||||
/// Evaluates a VimL |expression|.
|
||||
/// Dictionaries and Lists are recursively expanded.
|
||||
///
|
||||
/// On execution error: fails with VimL error, does not update v:errmsg.
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
///
|
||||
/// @param expr VimL expression string
|
||||
/// @param[out] err Error details, if any
|
||||
@ -226,7 +226,7 @@ free_vim_args:
|
||||
|
||||
/// Calls a VimL function with the given arguments.
|
||||
///
|
||||
/// On execution error: fails with VimL error, does not update v:errmsg.
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
///
|
||||
/// @param fn Function to call
|
||||
/// @param args Function arguments packed in an Array
|
||||
@ -240,7 +240,7 @@ Object nvim_call_function(String fn, Array args, Error *err)
|
||||
|
||||
/// Calls a VimL |Dictionary-function| with the given arguments.
|
||||
///
|
||||
/// On execution error: fails with VimL error, does not update v:errmsg.
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
///
|
||||
/// @param dict Dictionary, or String evaluating to a VimL |self| dict
|
||||
/// @param fn Name of the function defined on the VimL dict
|
||||
@ -996,6 +996,8 @@ end:
|
||||
/// such as having spaces inside a command argument, expanding filenames in a command that otherwise
|
||||
/// doesn't expand filenames, etc.
|
||||
///
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
///
|
||||
/// @see |nvim_exec()|
|
||||
/// @see |nvim_command()|
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user