runtime(doc): CmdUndefined and FuncUndefined can always be nested

Commit: 
https://github.com/vim/vim/commit/af056949007b2395b3f8ca8c7efb591fe9d4be9e
Author: zeertzjq <zeert...@outlook.com>
Date:   Sat Mar 8 16:45:20 2025 +0100

    runtime(doc): CmdUndefined and FuncUndefined can always be nested
    
    closes: https://github.com/vim/vim/issues/16825
    
    Signed-off-by: zeertzjq <zeert...@outlook.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index a8f1b8b1a..5c449589d 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -1,4 +1,4 @@
-*autocmd.txt*   For Vim version 9.1.  Last change: 2025 Feb 08
+*autocmd.txt*   For Vim version 9.1.  Last change: 2025 Mar 08
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -603,6 +603,8 @@ CmdUndefined                        When a user command is 
used but it isn't
                                when it's used.  The pattern is matched
                                against the command name.  Both <amatch> and
                                <afile> are set to the name of the command.
+                               This is triggered even when inside an
+                               autocommand defined without |autocmd-nested|.
                                NOTE: Autocompletion won't work until the
                                command is defined.  An alternative is to
                                always define the user command and have it
@@ -934,7 +936,9 @@ FuncUndefined                       When a user function is 
used but it isn't
                                when it's used.  The pattern is matched
                                against the function name.  Both <amatch> and
                                <afile> are set to the name of the function.
-                               Not triggered when compiling a |Vim9|
+                               This is triggered even when inside an
+                               autocommand defined without |autocmd-nested|,
+                               but not triggered when compiling a |Vim9|
                                function.
                                NOTE: When writing Vim scripts a better
                                alternative is to use an autoloaded function.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1tqwap-00G0Yg-NQ%40256bit.org.

Raspunde prin e-mail lui