To: vim_dev@googlegroups.com Subject: Patch 8.2.3474 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3474 Problem: Some places use "Vimscript" instead of "Vim script". Solution: Consistently use "Vim script". (Hirohito Higashi, closes #8910) Files: runtime/doc/if_lua.txt, src/getchar.c, src/if_lua.c *** ../vim-8.2.3473/runtime/doc/if_lua.txt 2021-08-06 20:34:34.626972208 +0100 --- runtime/doc/if_lua.txt 2021-10-04 21:44:17.461881479 +0100 *************** *** 227,240 **** *lua-vim-variables* The Vim editor global dictionaries |g:| |w:| |b:| |t:| |v:| can be accessed from Lua conveniently and idiomatically by referencing the `vim.*` Lua tables ! described below. In this way you can easily read and modify global Vimscript variables from Lua. Example: > ! vim.g.foo = 5 -- Set the g:foo Vimscript variable. ! print(vim.g.foo) -- Get and print the g:foo Vimscript variable. ! vim.g.foo = nil -- Delete (:unlet) the Vimscript variable. vim.g *vim.g* Global (|g:|) editor variables. --- 227,240 ---- *lua-vim-variables* The Vim editor global dictionaries |g:| |w:| |b:| |t:| |v:| can be accessed from Lua conveniently and idiomatically by referencing the `vim.*` Lua tables ! described below. In this way you can easily read and modify global Vim script variables from Lua. Example: > ! vim.g.foo = 5 -- Set the g:foo Vim script variable. ! print(vim.g.foo) -- Get and print the g:foo Vim script variable. ! vim.g.foo = nil -- Delete (:unlet) the Vim script variable. vim.g *vim.g* Global (|g:|) editor variables. *** ../vim-8.2.3473/src/getchar.c 2021-10-02 11:23:01.566500862 +0100 --- src/getchar.c 2021-10-04 21:44:17.461881479 +0100 *************** *** 2182,2188 **** /* * Process messages that have been queued for netbeans or clientserver. * Also check if any jobs have ended. ! * These functions can call arbitrary vimscript and should only be called when * it is safe to do so. */ void --- 2182,2188 ---- /* * Process messages that have been queued for netbeans or clientserver. * Also check if any jobs have ended. ! * These functions can call arbitrary Vim script and should only be called when * it is safe to do so. */ void *** ../vim-8.2.3473/src/if_lua.c 2021-08-06 20:34:34.626972208 +0100 --- src/if_lua.c 2021-10-04 21:44:17.461881479 +0100 *************** *** 1853,1859 **** // Update the key typval_T tv; ! // Convert the lua value to a vimscript type in the temporary variable lua_pushvalue(L, 4); if (luaV_totypval(L, -1, &tv) == FAIL) return luaL_error(L, "Couldn't convert lua value"); --- 1853,1859 ---- // Update the key typval_T tv; ! // Convert the lua value to a Vim script type in the temporary variable lua_pushvalue(L, 4); if (luaV_totypval(L, -1, &tv) == FAIL) return luaL_error(L, "Couldn't convert lua value"); *** ../vim-8.2.3473/src/version.c 2021-10-04 20:41:41.233232256 +0100 --- src/version.c 2021-10-04 21:46:12.495411147 +0100 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 3474, /**/ -- hundred-and-one symptoms of being an internet addict: 93. New mail alarm on your palmtop annoys other churchgoers. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///