Re: Documentation error

2023-08-14 Fir de Conversatie Adri Verhoef
I found this older message; the issue hasn't been resolved because the text has 
been moved from eval.txt to the file channel.txt (as part of the package 
vim-common-9.0.1677-2.fc38.x86_64).  See issue below.

> Op 17-05-2018 20:08 CEST schreef Bram Moolenaar :
> 
>  
> Adri Verhoef wrote:
> 
> > In eval.txt (vim 8.0.1842), line 5423, job_start() is documented.  On 
> > the 13th
> > line underneath it there is this text:
> > 
> >  On MS-Windows, job_start() makes a GUI application 
> > hidden. If
> >  want to show it, Use :!start instead.
> > 
> > Perhaps it should be "If you want" and "use"?
> 
> Yes, I'll correct it.
> 
> -- 
> Why is "abbreviation" such a long word?
> 
>  /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
> ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\  an exciting new programming language -- http://www.Zimbu.org///
>  \\\help me help AIDS victims -- http://ICCF-Holland.org///

"want to show it, Use :!start instead." is now on line 959.

Adri

-- 
-- 
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/1477030968.479533.1692006412437%40kpc.webmail.kpnmail.nl.


Re: Documentation error

2018-05-17 Fir de Conversatie Bram Moolenaar

Adri Verhoef wrote:

> In eval.txt (vim 8.0.1842), line 5423, job_start() is documented.  On 
> the 13th
> line underneath it there is this text:
> 
>  On MS-Windows, job_start() makes a GUI application 
> hidden. If
>  want to show it, Use :!start instead.
> 
> Perhaps it should be "If you want" and "use"?

Yes, I'll correct it.

-- 
Why is "abbreviation" such a long word?

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\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.
For more options, visit https://groups.google.com/d/optout.


Documentation error

2018-05-17 Fir de Conversatie Adri Verhoef
In eval.txt (vim 8.0.1842), line 5423, job_start() is documented.  On 
the 13th

line underneath it there is this text:

On MS-Windows, job_start() makes a GUI application 
hidden. If

want to show it, Use :!start instead.

Perhaps it should be "If you want" and "use"?

--
--
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.
For more options, visit https://groups.google.com/d/optout.


Re: Documentation error about jsencode()

2016-02-08 Fir de Conversatie Bram Moolenaar

Tony Mechelynck wrote:

> The example given at line 4401 of eval.txt is incorrect: the statement
> 
> :echo jsencode([1, v:none, {"one":1}], v:none)
> 
> gives error E118: Too many arguments for function: jsencode
> followed by E15: Invalid expression
> 
> The closing square bracket for the List should immediately precede the
> closing round bracket for jsencode().
> 
> Patch attached.

Thanks!

-- 
Rule #1: Don't give somebody a tool that he's going to hurt himself with.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\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.
For more options, visit https://groups.google.com/d/optout.


Documentation error about jsencode()

2016-02-08 Fir de Conversatie Tony Mechelynck
The example given at line 4401 of eval.txt is incorrect: the statement

:echo jsencode([1, v:none, {"one":1}], v:none)

gives error E118: Too many arguments for function: jsencode
followed by E15: Invalid expression

The closing square bracket for the List should immediately precede the
closing round bracket for jsencode().

Patch attached.

Best regards,
Tony.

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# User Tony Mechelynck <antoine.mechely...@gmail.com>
# Parent  791f4657b5fcc7c1934d87e6bef1477fdc1ed0fa
documentation error about jsencode()

diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -4393,17 +4393,17 @@ jsdecode({string})  
*jsdecode()*
  result in v:none items.
 
 jsencode({expr})   *jsencode()*
This is similar to |jsonencode()| with these differences:
- Object key names are not in quotes.
- v:none items in an array result in an empty item between
  commas.
For example, the Vim object:
-   [1,v:none,{"one":1}],v:none ~
+   [1,v:none,{"one":1},v:none] ~
Will be encoded as:
[1,,{one:1},,] ~
While jsonencode() would produce:
[1,null,{"one":1},null] ~
This encoding is valid for JavaScript. It is more efficient
than JSON, especially when using an array with optional items.
 
 


shiftwidth() function documentation error

2014-10-09 Fir de Conversatie Benjamin Fritz
shiftwidth() *shiftwidth()*
Returns the effective value of 'shiftwidth'. This is the
'shiftwidth' value unless it is zero, in which case it is the
'tabstop' value.  To be backwards compatible in indent
plugins, use this: 
if exists('*shiftwidth')
  func s:sw()
return shiftwidth()
  endfunc
else
  func s:sw()
return sw
  endfunc
endif
 And then use s:sw() instead of sw.

I think the else block should be:

else
  func s:sw()
return (sw ? sw : ts)
  endfunc
endif

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: shiftwidth() function documentation error

2014-10-09 Fir de Conversatie Christian Brabandt
Hi Benjamin!

On Do, 09 Okt 2014, Benjamin Fritz wrote:

 shiftwidth() *shiftwidth()*
 Returns the effective value of 'shiftwidth'. This is the
 'shiftwidth' value unless it is zero, in which case it is the
 'tabstop' value.  To be backwards compatible in indent
 plugins, use this: 
 if exists('*shiftwidth')
  func s:sw()
    return shiftwidth()
  endfunc
 else
  func s:sw()
    return sw
  endfunc
 endif
  And then use s:sw() instead of sw.
 
 I think the else block should be:
 
 else
   func s:sw()
     return (sw ? sw : ts)
   endfunc
 endif

If I recall correctly, before the shiftwidth() function was introduced, 
the value of 'shiftwidth' couldn't be zero. So the documentation is 
correct.

Best,
Christian
-- 
Letzte Worte des Bungee-Jumpers:
  Ist das Seil nicht zu lang?

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Vim72a documentation error

2008-06-25 Fir de Conversatie Bram Moolenaar


Tony Mechelynck wrote:

 I found a documentation error in Vim72a, see attachment. (I think it 
 also applies to Vim 7.1, but there it's not as important since 
 floating-point is not part of the standard sources.)

Actually, that isn't right either.  It should read:

When a Number argument is expected a String argument is also
accepted and automatically converted.
When a Float or String argument is expected a Number argument
is also accepted and automatically converted.
Any other argument type results in an error message.

However, echo printf('%g', 1) currently fails.  I think it should work
and automatically convert the Number to a Float.

-- 
From know your smileys:
 2B|^2B   Message from Shakespeare

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Vim72a documentation error

2008-06-24 Fir de Conversatie Tony Mechelynck
I found a documentation error in Vim72a, see attachment. (I think it 
also applies to Vim 7.1, but there it's not as important since 
floating-point is not part of the standard sources.)

Best regards,
Tony.
-- 
People think love is an emotion.  Love is good sense.
-- Ken Kesey

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---

*** ../vim72a/runtime/doc/eval.txt	Tue Jun 24 14:22:07 2008
--- runtime/doc/eval.txt	Wed Jun 25 04:36:59 2008
***
*** 4277,4283 
  		%	A '%' is written.  No argument is converted.  The
  			complete conversion specification is %%.
  
! 		Each argument can be Number or String and is converted
  		automatically to fit the conversion specifier.	Any other
  		argument type results in an error message.
  
--- 4277,4283 
  		%	A '%' is written.  No argument is converted.  The
  			complete conversion specification is %%.
  
! 		Each argument can be Number, Float or String and is converted
  		automatically to fit the conversion specifier.	Any other
  		argument type results in an error message.
  


Re: Documentation error for :sort

2007-11-26 Fir de Conversatie Bram Moolenaar


Ben Schmidt wrote:

 :help :sort|/first number
 
 The documentation reads
 
To sort on the first number in the line, no matter
  what is in front of it: 
  :sort /.*\ze\d/
 
 which is clearly wrong. As * is greedy, this actually sorts on the
 last digit in the line. The correct command would be something like
 
 :sort /.\{-}\ze\d/

Thanks for noticing, I'll include the correction.

-- 
hundred-and-one symptoms of being an internet addict:
1 49. You find your computer sexier than your girlfriend

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Documentation error for :sort

2007-11-25 Fir de Conversatie Ben Schmidt

:help :sort|/first number

The documentation reads

   To sort on the first number in the line, no matter
 what is in front of it: 
 :sort /.*\ze\d/

which is clearly wrong. As * is greedy, this actually sorts on the last digit 
in 
the line. The correct command would be something like

:sort /.\{-}\ze\d/

Ben.


Send instant messages to your online friends http://au.messenger.yahoo.com 


--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Documentation error for :sort

2007-11-25 Fir de Conversatie Ben Schmidt

:help :sort|/first number

The documentation reads

   To sort on the first number in the line, no matter
 what is in front of it: 
 :sort /.*\ze\d/

which is clearly wrong. As * is greedy, this actually sorts on the last digit 
in 
the line. The correct command would be something like

:sort /.\{-}\ze\d/

Ben.


Send instant messages to your online friends http://au.messenger.yahoo.com 


--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---