Re: [vim/vim] Refined autoload mechanism explanation (PR #20833)
h_east (Vim Github Repository) <[email protected]>
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/pull/20833/[email protected]> |
h-east left a comment (vim/vim#20833) On the global symbol: the marker in my version is the command, and 52.4 defines that same command. ``` command -nargs=* BNRead call BufNetRead(<f-args>) ``` It also defines a global mapping and two global functions, since a `function` without a prefix is global in legacy script. My version defines the command and nothing else global, so its global surface is smaller than 52.4's, not larger. What does differ is that my guard tests a global name while 52.4 tests a script-local one, so a command of the same name from elsewhere would fool it. That is a fair point about the guard, not about the mechanism. -- Reply to this email directly or view it on GitHub: https://github.com/vim/vim/pull/20833#issuecomment-5089635756 You are receiving this because you are subscribed to this thread. Message ID: <vim/vim/pull/20833/[email protected]> -- -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20833/c5089635756%40github.com.