tiny fix for doc

2013-12-02 Thread Yukihiro Nakadaira
In autocmd.txt, TextChanged and TextChangedI are not listed in :h
autocommand-events.
In eval.txt, there are some inconsistent notation ([expr] -> [{expr}]).

Please check the attached patch.

-- 
Yukihiro Nakadaira - yukihiro.nakada...@gmail.com

-- 
-- 
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/groups/opt_out.
diff -r 486655e0c5a2 runtime/doc/autocmd.txt
--- a/runtime/doc/autocmd.txt   Thu Nov 28 19:27:30 2013 +0100
+++ b/runtime/doc/autocmd.txt   Mon Dec 02 20:24:36 2013 +0900
@@ -316,6 +316,9 @@
 |MenuPopup|just before showing the popup menu
 |CompleteDone| after Insert mode completion is done
 
+|TextChanged|  after a change was made to text
+|TextChangedI| after a change was made to text in Insert mode
+
 |User| to be used in combination with ":doautocmd"
 
 
diff -r 486655e0c5a2 runtime/doc/eval.txt
--- a/runtime/doc/eval.txt  Thu Nov 28 19:27:30 2013 +0100
+++ b/runtime/doc/eval.txt  Mon Dec 02 20:24:36 2013 +0900
@@ -1788,7 +1788,7 @@
Listlines {lnum} to {end} of buffer {expr}
 getbufvar( {expr}, {varname} [, {def}])
any variable {varname} in buffer {expr}
-getchar( [expr])   Number  get one character from the user
+getchar( [{expr}]) Number  get one character from the user
 getcharmod( )  Number  modifiers for the last typed character
 getcmdline()   String  return the current command-line
 getcmdpos()Number  return cursor position in command-line
@@ -1882,7 +1882,7 @@
 min( {list})   Number  minimum value of items in {list}
 mkdir( {name} [, {path} [, {prot}]])
Number  create directory {name}
-mode( [expr])  String  current editing mode
+mode( [{expr}])String  current editing mode
 mzeval( {expr})any evaluate |MzScheme| expression
 nextnonblank( {lnum})  Number  line nr of non-blank line >= {lnum}
 nr2char( {expr}[, {utf8}]) String  single char with ASCII/UTF8 value {expr}
@@ -2006,7 +2006,7 @@
 undotree() Listundo file tree
 values( {dict})Listvalues in {dict}
 virtcol( {expr})   Number  screen column of cursor or mark
-visualmode( [expr])String  last visual mode used
+visualmode( [{expr}])  String  last visual mode used
 wildmenumode() Number  whether 'wildmenu' mode is active
 winbufnr( {nr})Number  buffer number of window {nr}
 wincol()   Number  window column of the cursor
@@ -3192,12 +3192,12 @@
:let bufmodified = getbufvar(1, "&mod")
:echo "todo myvar = " . getbufvar("todo", "myvar")
 <
-getchar([expr])*getchar()*
+getchar([{expr}])  *getchar()*
Get a single character from the user or input stream.
-   If [expr] is omitted, wait until a character is available.
-   If [expr] is 0, only get a character when one is available.
+   If {expr} is omitted, wait until a character is available.
+   If {expr} is 0, only get a character when one is available.
Return zero otherwise.
-   If [expr] is 1, only check if a character is available, it is
+   If {expr} is 1, only check if a character is available, it is
not consumed.  Return zero if no character available.
 
Without {expr} and when {expr} is 0 a whole character or
@@ -4361,8 +4361,8 @@
:if exists("*mkdir")
 <
*mode()*
-mode([expr])   Return a string that indicates the current mode.
-   If [expr] is supplied and it evaluates to a non-zero Number or
+mode([{expr}]) Return a string that indicates the current mode.
+   If {expr} is supplied and it evaluates to a non-zero Number or
a non-empty String (|non-zero-arg|), then the full mode is
returned, otherwise only the first letter is returned.  Note
that " " and "0" are also non-empty strings.
@@ -6195,7 +6195,7 @@
echo max(map(range(1, line('$')), "virtcol([v:val, '$'])"))
 
 
-visualmode([expr]) *visualmode()*
+visualmode(

Re: tiny fix for doc

2013-12-04 Thread Bram Moolenaar

Yukihiro Nakadaira wrote:

> In autocmd.txt, TextChanged and TextChangedI are not listed in :h
> autocommand-events.
> In eval.txt, there are some inconsistent notation ([expr] -> [{expr}]).
> 
> Please check the attached patch.

Thanks.  I actually prefer [expr] over [{expr}].  This works when it is
one optional argument.

-- 
Far back in the mists of ancient time, in the great and glorious days of the
former Galactic Empire, life was wild, rich and largely tax free.
Mighty starships plied their way between exotic suns, seeking adventure and
reward among the furthest reaches of Galactic space.  In those days, spirits
were brave, the stakes were high, men were real men, women were real women
and small furry creatures from Alpha Centauri were real small furry creatures
from Alpha Centauri.  And all dared to brave unknown terrors, to do mighty
deeds, to boldly split infinitives that no man had split before -- and thus
was the Empire forged.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// 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/groups/opt_out.