[patch] doc fixes (runtime/doc/version9.txt)

2022-03-09 Fir de Conversatie Dominique Pellé
Hi

Please find attached documentation fixes for
file runtime/doc/version9.txt.

Regards
Dominique

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAON-T_hpa7CWFmt%2Bif_ceM8VYmrk6gJgS8JJesO2rJic4J0mVA%40mail.gmail.com.
diff --git a/runtime/doc/version9.txt b/runtime/doc/version9.txt
index 0e1ecf55d..7d5c2585e 100644
--- a/runtime/doc/version9.txt
+++ b/runtime/doc/version9.txt
@@ -837,7 +837,7 @@ Files:  runtime/tools/ccfilter.c, src/libvterm/src/parser.c,
 Patch 8.2.0107
 Problem:Hgignore is out of sync from gitignore.
 Solution:   Add lines to hgignore. (Ken Takata)
-Files:  .hgigmore
+Files:  .hgignore
 
 Patch 8.2.0108
 Problem:When sign text is changed a manual redraw is needed. (Pontus
@@ -2474,7 +2474,7 @@ Files:  src/testdir/test_hardcopy.vim
 Patch 8.2.0367
 Problem:Can use :pedit in a popup window.
 Solution:   Disallow it.
-Files:  src/ex_docmd.c, src/testdir/test_popuwin.vim
+Files:  src/ex_docmd.c, src/testdir/test_popupwin.vim
 
 Patch 8.2.0368
 Problem:Vim9: import that redefines local variable does not fail.
@@ -2513,7 +2513,7 @@ Patch 8.2.0372
 Problem:Prop_find() may not find text property at start of the line.
 Solution:   Adjust the loop to find properties. (Axel Forsman, closes #5761,
 closes #5663)
-Files:  src/testprop.c, src/testdir/test_textprop.vim
+Files:  src/textprop.c, src/testdir/test_textprop.vim
 
 Patch 8.2.0373
 Problem:Type of term_sendkeys() is unknown.
@@ -3743,7 +3743,7 @@ Patch 8.2.0570
 Problem:Vim9: no error when omitting type from argument.
 Solution:   Enforce specifying argument types.
 Files:  src/userfunc.c, src/ex_eval.c, src/testdir/test_vim9_script.vim,
-src/testdir/test_vim9_func.vim, src/testdir/test_vim9_expr.vim
+src/testdir/test_vim9_func.vim, src/testdir/test_vim9_expr.vim,
 src/testdir/test_vim9_disassemble.vim
 
 Patch 8.2.0571
@@ -3921,7 +3921,7 @@ Files:  runtime/doc/netbeans.txt, src/netbeans.c, src/os_win32.c,
 Patch 8.2.0600
 Problem:Vim9: cannot read or write w:, t: and b: variables.
 Solution:   Implement load and store for w:, t: and b: variables.
-(closes #5950) 
+(closes #5950)
 Files:  src/testdir/test_vim9_disassemble.vim,
 src/testdir/test_vim9_expr.vim, src/testdir/test_vim9_script.vim,
 src/vim9.h, src/vim9compile.c, src/vim9execute.c
@@ -4042,7 +4042,7 @@ Files:  runtime/lang/menu_sv_se.latin1.vim
 
 Patch 8.2.0618
 Problem:Echoing a null list results in no output. (Yegappan Lakshmanan)
-Solution:   Return "[]" instead of NULL in echo_string_core(). 
+Solution:   Return "[]" instead of NULL in echo_string_core().
 Files:  src/eval.c, src/testdir/test_messages.vim
 
 Patch 8.2.0619
@@ -4095,7 +4095,7 @@ Solution:   Give error for missing space. Implement :echomsg and :echoerr.
 (closes #5670)
 Files:  src/vim9compile.c, src/vim9execute.c, src/vim9.h, src/userfunc.c,
 src/eval.c, src/globals.h, src/testdir/test_vim9_func.vim,
-src/testdir/test_vim9_disassemble.vim
+src/testdir/test_vim9_disassemble.vim,
 src/testdir/test_vim9_script.vim
 
 Patch 8.2.0627
@@ -5205,8 +5205,9 @@ Problem:Libvterm code lags behind the upstream version.
 Solution:   Include revision 727, but add the index instead of switching
 between RGB and indexed.
 Files:  src/terminal.c, src/term.c, src/libvterm/include/vterm.h,
-src/libvterm/src/pen.c src/libvterm/src/screen.c
-src/libvterm/src/vterm_internal.h src/libvterm/t/30state_pen.test
+src/libvterm/src/pen.c, src/libvterm/src/screen.c,
+src/libvterm/src/vterm_internal.h,
+src/libvterm/t/30state_pen.test,
 src/libvterm/t/harness.c, src/libvterm/src/state.c,
 src/libvterm/t/26state_query.test,
 src/libvterm/t/64screen_pen.test
@@ -5299,7 +5300,7 @@ Files:  runtime/doc/vim9.txt, src/vim9script.c, src/structs.h,
 src/evalvars.c, src/proto/evalvars.pro, src/vim9compile.c,
 src/proto/vim9compile.pro, src/vim9execute.c, src/ex_cmds.h,
 src/ex_docmd.c, src/ex_cmdidxs.h, src/vim.h, src/testdir/vim9.vim,
-src/testdir/test_vim9_disassemble.vim
+src/testdir/test_vim9_disassemble.vim,
 src/testdir/test_vim9_func.vim, src/testdir/test_vim9_script.vim
 
 Patch 8.2.0819
@@ -5667,7 +5668,7 @@ Patch 8.2.0875
 Problem:Getting attributes for directory 

Patch 8.2.4533

2022-03-09 Fir de Conversatie Bram Moolenaar


Patch 8.2.4533
Problem:Vim9: no test that after assigning null the type is still checked.
Solution:   Add a test.
Files:  src/testdir/test_vim9_assign.vim


*** ../vim-8.2.4532/src/testdir/test_vim9_assign.vim2022-03-08 
13:18:10.813020777 +
--- src/testdir/test_vim9_assign.vim2022-03-09 19:45:33.085471163 +
***
*** 340,349 
--- 340,374 
  var j: job = null_job
  var c: channel = null_channel
endif
+ 
+   var d: dict = {a: function('tr'), b: null_function}
END
v9.CheckDefAndScriptSuccess(lines)
  enddef
  
+ def Test_keep_type_after_assigning_null()
+   var lines =<< trim END
+   var b: blob
+   b = null_blob
+   b = 'text'
+   END
+   v9.CheckDefExecAndScriptFailure(lines, 'E1012: Type mismatch; expected blob 
but got string')
+ 
+   lines =<< trim END
+   var l: list
+   l = null_list
+   l = ['text']
+   END
+   v9.CheckDefExecAndScriptFailure(lines, 'E1012: Type mismatch; expected 
list but got list')
+ 
+   lines =<< trim END
+   var d: dict
+   d = null_dict
+   d = {a: 1, b: 2}
+   END
+   v9.CheckDefExecAndScriptFailure(lines, 'E1012: Type mismatch; expected 
dict but got dict')
+ enddef
+ 
  def Test_skipped_assignment()
var lines =<< trim END
for x in []
*** ../vim-8.2.4532/src/version.c   2022-03-09 14:32:59.617641710 +
--- src/version.c   2022-03-09 19:34:17.543475327 +
***
*** 752,753 
--- 752,755 
  {   /* Add new patch number below this line */
+ /**/
+ 4533,
  /**/

-- 
I noticed my daughter's Disney-net password on a sticky note:
"MickeyMinnieGoofyPluto".  I asked her why it was so long.
"Because they say it has to have at least four characters."

 /// Bram Moolenaar -- b...@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///

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220309194800.EE8C51C174C%40moolenaar.net.


Patch 8.2.4532

2022-03-09 Fir de Conversatie Bram Moolenaar


Patch 8.2.4532
Problem:Suspending with CTRL-Z does not work on OpenBSD.
Solution:   Adjust #ifdef for SIGTSTP. (Stuart Henderson, closes #9912)
Files:  src/os_unix.c


*** ../vim-8.2.4531/src/os_unix.c   2022-02-27 12:31:48.591408426 +
--- src/os_unix.c   2022-03-09 14:27:12.630348171 +
***
*** 887,894 
  else
got_tstp = TRUE;
  
! #ifndef __ANDROID__
! // this is not required on all systems
  signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp);
  #endif
  SIGRETURN;
--- 887,895 
  else
got_tstp = TRUE;
  
! #if !defined(__ANDROID__) && !defined(__OpenBSD__)
! // This is not required on all systems.  On some systems (at least Android
! // and OpenBSD) this breaks suspending with CTRL-Z.
  signal(SIGTSTP, (RETSIGTYPE (*)())sig_tstp);
  #endif
  SIGRETURN;
*** ../vim-8.2.4531/src/version.c   2022-03-09 13:00:50.780824769 +
--- src/version.c   2022-03-09 14:27:21.802329186 +
***
*** 752,753 
--- 752,755 
  {   /* Add new patch number below this line */
+ /**/
+ 4532,
  /**/

-- 
msdn.microsoft.com:
ERROR_SUCCESS 0 (0x0) The operation completed successfully.
I have always suspected that for Microsoft success is an error.

 /// Bram Moolenaar -- b...@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///

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220309143408.B81931C42FC%40moolenaar.net.


Patch 8.2.4531

2022-03-09 Fir de Conversatie Bram Moolenaar


Patch 8.2.4531
Problem:LGTM warnings for condition always true and buffer size too small.
Solution:   Remove the useless condition.  Make the buffer larger. (Goc
Dundar, closes #9914)
Files:  src/charset.c, src/term.c


*** ../vim-8.2.4530/src/charset.c   2022-03-03 20:03:44.657088284 +
--- src/charset.c   2022-03-09 12:54:40.493489666 +
***
*** 558,564 
charbuf[1] = c ^ 0x40;  // DEL displayed as ^?
charbuf[2] = NUL;
  }
! else if (enc_utf8 && c >= 0x80)
  {
transchar_hex(charbuf, c);
  }
--- 558,564 
charbuf[1] = c ^ 0x40;  // DEL displayed as ^?
charbuf[2] = NUL;
  }
! else if (enc_utf8)
  {
transchar_hex(charbuf, c);
  }
*** ../vim-8.2.4530/src/term.c  2022-03-07 13:31:10.704100882 +
--- src/term.c  2022-03-09 12:59:00.073023855 +
***
*** 6370,6376 
  static void
  req_more_codes_from_term(void)
  {
! char  buf[11];
  int   old_idx = xt_index_out;
  
  // Don't do anything when going to exit.
--- 6370,6376 
  static void
  req_more_codes_from_term(void)
  {
! char  buf[23];  // extra size to shut up LGTM
  int   old_idx = xt_index_out;
  
  // Don't do anything when going to exit.
*** ../vim-8.2.4530/src/version.c   2022-03-09 11:56:17.873358764 +
--- src/version.c   2022-03-09 12:57:22.249199584 +
***
*** 752,753 
--- 752,755 
  {   /* Add new patch number below this line */
+ /**/
+ 4531,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
214. Your MCI "Circle of Friends" are all Hayes-compatible.

 /// Bram Moolenaar -- b...@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///

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220309130134.4FB721C174C%40moolenaar.net.


Patch 8.2.4530

2022-03-09 Fir de Conversatie Bram Moolenaar


Patch 8.2.4530
Problem:Making comparison with null work changes legacy behavior.
Solution:   Only use the better comparison in Vim9 script. (closes #9910)
Files:  src/typval.c, src/testdir/test_expr.vim


*** ../vim-8.2.4529/src/typval.c2022-03-02 13:13:26.475857972 +
--- src/typval.c2022-03-09 11:50:05.358375030 +
***
*** 1381,1387 
  }
  
  /*
!  * Compare v:null/v:none with another type.  Return TRUE if the value is NULL.
   */
  int
  typval_compare_null(typval_T *tv1, typval_T *tv2)
--- 1381,1387 
  }
  
  /*
!  * Compare v:null with another type.  Return TRUE if the value is NULL.
   */
  int
  typval_compare_null(typval_T *tv1, typval_T *tv2)
***
*** 1417,1422 
--- 1417,1425 
default: break;
}
  }
+ if (!in_vim9script())
+   return FALSE;  // backwards compatible
+ 
  semsg(_(e_cannot_compare_str_with_str),
 vartype_name(tv1->v_type), vartype_name(tv2->v_type));
  return MAYBE;
*** ../vim-8.2.4529/src/testdir/test_expr.vim   2022-03-08 13:18:10.813020777 
+
--- src/testdir/test_expr.vim   2022-03-09 11:52:51.305921959 +
***
*** 181,186 
--- 181,218 
call v9.CheckScriptFailure(lines, 'E121: Undefined variable: null_list')
  endfunc
  
+ func Test_compare_with_null()
+   let s:value = v:null
+   call assert_true(s:value == v:null)
+   let s:value = v:true
+   call assert_false(s:value == v:null)
+   let s:value = v:none
+   call assert_false(s:value == v:null)
+   let s:value = 0
+   call assert_true(s:value == v:null)
+   if has('float')
+ let s:value = 0.0
+ call assert_true(s:value == v:null)
+   endif
+   let s:value = ''
+   call assert_false(s:value == v:null)
+   let s:value = 0z
+   call assert_false(s:value == v:null)
+   let s:value = []
+   call assert_false(s:value == v:null)
+   let s:value = {}
+   call assert_false(s:value == v:null)
+   let s:value = function('len')
+   call assert_false(s:value == v:null)
+   if has('job')
+ let s:value = test_null_job()
+ call assert_true(s:value == v:null)
+ let s:value = test_null_channel()
+ call assert_true(s:value == v:null)
+   endif
+   unlet s:value
+ endfunc
+ 
  func Test_setreg_null_list()
let lines =<< trim END
call setreg('x', test_null_list())
*** ../vim-8.2.4529/src/version.c   2022-03-08 19:43:51.692198946 +
--- src/version.c   2022-03-09 11:36:08.368674934 +
***
*** 752,753 
--- 752,755 
  {   /* Add new patch number below this line */
+ /**/
+ 4530,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
213. Your kids start referring to you as "that guy in front of the monitor."

 /// Bram Moolenaar -- b...@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///

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220309115750.770931C0D0A%40moolenaar.net.