]> granicus.if.org Git - vim/commitdiff
patch 8.2.5000: no patch for documentation updates v8.2.5000
authorBram Moolenaar <Bram@vim.org>
Sun, 22 May 2022 13:50:16 +0000 (14:50 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 22 May 2022 13:50:16 +0000 (14:50 +0100)
Problem:    No patch for documentation updates.
Solution:   Update documentation files.

runtime/doc/builtin.txt
runtime/doc/indent.txt
runtime/doc/options.txt
runtime/doc/os_win32.txt
runtime/doc/todo.txt
runtime/doc/usr_52.txt
runtime/doc/various.txt
runtime/doc/vim9.txt
src/version.c

index 781f8eba84696837f59617393b15843f2e72b830..29cc50627379b192562460a91a38f98721d22bfe 100644 (file)
@@ -1,4 +1,4 @@
-*builtin.txt*  For Vim version 8.2.  Last change: 2022 May 10
+*builtin.txt*  For Vim version 8.2.  Last change: 2022 May 21
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
index 2899fc5b36bad6630118e3f8f8e89963bbe4eb64..4df0909f438b9c28eb1da26c0335e2b35a4e2d5b 100644 (file)
@@ -1,4 +1,4 @@
-*indent.txt*    For Vim version 8.2.  Last change: 2022 Apr 07
+*indent.txt*    For Vim version 8.2.  Last change: 2022 May 21
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
index b4359190d259921c422f4471cfe21caca6fc1b1f..f1038afa69aa9ea8f304f67941bfb52b257eca52 100644 (file)
@@ -1,4 +1,4 @@
-*options.txt*  For Vim version 8.2.  Last change: 2022 May 07
+*options.txt*  For Vim version 8.2.  Last change: 2022 May 21
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
index 6fe56c09ef858385efd0002315111e54c6b624a2..62376c7f2702b17fa5d5b1c5b68bebd977694ad4 100644 (file)
@@ -1,4 +1,4 @@
-*os_win32.txt*  For Vim version 8.2.  Last change: 2022 Feb 14
+*os_win32.txt*  For Vim version 8.2.  Last change: 2022 May 22
 
 
                  VIM REFERENCE MANUAL    by George Reilly
@@ -42,6 +42,11 @@ The GUI version was made by George V. Reilly and Robert Webb.
 
 For compiling see "src/INSTALLpc.txt".                 *win32-compiling*
 
+                                                       *WSL*
+When using Vim on WSL (Windows Subsystem for Linux) the remarks here do not
+apply, `has('win32')` will return false then.  In case you need to know
+whether Vim is running on WSL you can use `exists('$WSLENV')`.
+
 ==============================================================================
 1. Known problems                                      *win32-problems*
 
index d2a5dbdd18ccafbc88aa89e6eff496641029ac98..fa2cded4f43c5e4d284be79b749ce86f3c8691b0 100644 (file)
@@ -1,4 +1,4 @@
-*todo.txt*      For Vim version 8.2.  Last change: 2022 May 21
+*todo.txt*      For Vim version 8.2.  Last change: 2022 May 22
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -38,20 +38,14 @@ browser use: https://github.com/vim/vim/issues/1234
                                                        *known-bugs*
 -------------------- Known bugs and current work -----------------------
 
-Make :defcompile accept a function argument, like :disassemble
-Useful for global functions.
-
-Once Vim9 is stable:
+Prepare for Vim 9.0 release:
 - Use Vim9 for more runtime files.
-- Check code coverage, add more tests if needed.
+- Check Vim9 code coverage, add more tests if needed.
        vim9instr.c
        vim9script.c
        vim9type.c
-- Inlude new set of colors: #9795
 - Adjust intro message to say "help version9".
 
-Graduate FEAT_CINDENT and FEAT_SMARTINDENT ?
-
 Update the user manual:
 - Update usr_41.txt for Vim9 script
 - Fill usr_50.txt as an "advanced section" of usr_41.txt
index 1fbd66f3c34bc7abf0a08b6b1fc53e41f800bac6..375fa5dd3e44c2f0ad47789797652976ef70db64 100644 (file)
@@ -1,4 +1,4 @@
-*usr_52.txt*   For Vim version 8.2.  Last change: 2022 May 16
+*usr_52.txt*   For Vim version 8.2.  Last change: 2022 May 21
 
                     VIM USER MANUAL - by Bram Moolenaar
 
@@ -113,36 +113,33 @@ Although it's shorter to do: >
 Legacy Vim script only checks types at runtime, when the code is executed.
 And it's permissive, often a computation gives an unexpected value instead of
 reporting an error.  Thus you can define a function and think it's fine, but
-see a problem only later when it is called: >
-       let s:collected = ''
-       func ExtendAndReturn(add)
-          let s:collected += a:add
-          return s:collected
+notice a problem only later when the function is called: >
+       func Concatenate(base, add)
+          return a:base + a:add
        endfunc
 
 Can you spot the error?  Try this: >
-       echo ExtendAndReturn('text')
-And you'll see zero.  Why?  Because in legacy Vim script "+=" will convert the
-arguments to numbers, and any string without a number results in zero!
-
-With `:def` the type checking happens when compiling the function.  For that
-you need to specify the argument types and the return type.  Also notice that
-the argument is used without the "a:" prefix: >
-       let s:collected = ''
-       def ExtendAndReturn(add: string): string
-          s:collected += add
-          return s:collected
+       echo Concatenate('base', 'text')
+And you'll see zero.  Why?  Because in legacy Vim script "+" will convert the
+arguments to numbers, and any string without a number results in zero!  That's
+not what you expected.
+
+With `:def` the type checking happens when compiling the function.  You need
+to specify the argument types and the return type to make that possible.  Also
+notice that the argument names are used without the "a:" prefix: >
+       def Concatenate(base: string, add: string): string
+          return base + add
        enddef
-       disassemble ExtendAndReturn
+       defcompile Concatenate
 
-Here we use `:disassemble` to do the compilation right away, without it the
-compilation would happen when the function is called.  Vim will tell you what
-you did wrong: >
+Here we use `:defcompile` to do the compilation right away, without it the
+compilation would happen when the function is first called.  Vim will tell you
+what you did wrong: >
        E1051: Wrong argument type for +
 
-Side note: here the context is legacy script, when using Vim9 script you would
-put `:defcompile` at the end of the script to check for errors in the
-functions defined in it.
+Side note: here the context is legacy script.  When using Vim9 script you
+would put `:defcompile` at the end of the script to check for errors in all
+the functions defined in it.
 
 Vim9 script is strict, it uses the "+" operator only for numbers and floats.
 For string concatenation ".." must be used.  This avoids mistakes and avoids
index 8bfaeaecd257f276d5fdee584f75905da0f2c127..d09dac48f95ed381c283fec25b191dc9aee5c78c 100644 (file)
@@ -1,4 +1,4 @@
-*various.txt*   For Vim version 8.2.  Last change: 2022 Apr 03
+*various.txt*   For Vim version 8.2.  Last change: 2022 May 21
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
index 479edc57c5c1467c11f8ccc9f5b2bbf6a1e2ce28..069dac48e8384fdbcba3b4661502ea79786c9332 100644 (file)
@@ -1,4 +1,4 @@
-*vim9.txt*     For Vim version 8.2.  Last change: 2022 May 13
+*vim9.txt*     For Vim version 8.2.  Last change: 2022 May 21
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
index 17a8787f8ba6f1bfc20afa6f2b848d3fb46d84eb..00a784468fa1714b103c6520b9bee8d1cf40f9f1 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5000,
 /**/
     4999,
 /**/