|
1 | | -*eval.txt* For Vim version 7.4. Last change: 2016 Feb 13 |
| 1 | +*eval.txt* For Vim version 7.4. Last change: 2016 Feb 16 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -1821,9 +1821,9 @@ ch_close( {handle}) none close a channel |
1821 | 1821 | ch_logfile( {fname} [, {mode}]) none start logging channel activity |
1822 | 1822 | ch_open( {address} [, {argdict})] Number open a channel to {address} |
1823 | 1823 | ch_readraw( {handle}) String read from channel {handle} |
1824 | | -ch_sendexpr( {handle}, {expr} [, {callback}]) |
| 1824 | +ch_sendexpr( {handle}, {expr} [, {options}]) |
1825 | 1825 | any send {expr} over JSON channel {handle} |
1826 | | -ch_sendraw( {handle}, {string} [, {callback}]) |
| 1826 | +ch_sendraw( {handle}, {string} [, {options}]) |
1827 | 1827 | any send {string} over raw channel {handle} |
1828 | 1828 | ch_status( {handle}) String status of channel {handle} |
1829 | 1829 | changenr() Number current change number |
@@ -2725,28 +2725,32 @@ ch_readraw({handle}) *ch_readraw()* |
2725 | 2725 | within that time an empty string is returned. |
2726 | 2726 | TODO: depends on channel mode. |
2727 | 2727 |
|
2728 | | -ch_sendexpr({handle}, {expr} [, {callback}]) *ch_sendexpr()* |
| 2728 | +ch_sendexpr({handle}, {expr} [, {options}]) *ch_sendexpr()* |
2729 | 2729 | Send {expr} over channel {handle}. The {expr} is encoded |
2730 | 2730 | according to the type of channel. The function cannot be used |
2731 | 2731 | with a raw channel. See |channel-use|. *E912* |
2732 | 2732 |
|
2733 | | - When {callback} is given returns immediately. Without |
2734 | | - {callback} waits for a response and returns the decoded |
2735 | | - expression. When there is an error or timeout returns an |
2736 | | - empty string. |
| 2733 | + {options} must be a Dictionary. |
| 2734 | + When "callback" is a Funcref or the name of a function, |
| 2735 | + ch_sendexpr() returns immediately. The callback is invoked |
| 2736 | + when the response is received. See |channel-callback|. |
| 2737 | + |
| 2738 | + Without "callback" ch_sendexpr() waits for a response and |
| 2739 | + returns the decoded expression. When there is an error or |
| 2740 | + timeout it returns an empty string. |
2737 | 2741 |
|
2738 | | - When {callback} is zero no response is expected. |
2739 | | - Otherwise {callback} must be a Funcref or the name of a |
2740 | | - function. It is called when the response is received. See |
2741 | | - |channel-callback|. |
| 2742 | + When "callback" is zero no response is expected. |
2742 | 2743 |
|
2743 | 2744 | {only available when compiled with the |+channel| feature} |
2744 | 2745 |
|
2745 | | -ch_sendraw({handle}, {string} [, {callback}]) *ch_sendraw()* |
| 2746 | +ch_sendraw({handle}, {string} [, {options}]) *ch_sendraw()* |
2746 | 2747 | Send {string} over channel {handle}. |
2747 | 2748 | Works like |ch_sendexpr()|, but does not encode the request or |
2748 | 2749 | decode the response. The caller is responsible for the |
2749 | | - correct contents. See |channel-use|. |
| 2750 | + correct contents. Also does not add a newline for a channel |
| 2751 | + in NL mode, the caller must do that. The NL in the response |
| 2752 | + is removed. |
| 2753 | + See |channel-use|. |
2750 | 2754 |
|
2751 | 2755 | {only available when compiled with the |+channel| feature} |
2752 | 2756 |
|
@@ -7276,8 +7280,9 @@ listcmds Compiled with commands for the buffer list |:files| |
7276 | 7280 | and the argument list |arglist|. |
7277 | 7281 | localmap Compiled with local mappings and abbr. |:map-local| |
7278 | 7282 | lua Compiled with Lua interface |Lua|. |
7279 | | -mac Macintosh version of Vim. |
7280 | | -macunix Macintosh version of Vim, using Unix files (OS-X). |
| 7283 | +mac Any Macintosh version of Vim. |
| 7284 | +macunix Compiled for OS X, with darwin |
| 7285 | +osx Compiled for OS X, with or without darwin |
7281 | 7286 | menu Compiled with support for |:menu|. |
7282 | 7287 | mksession Compiled with support for |:mksession|. |
7283 | 7288 | modify_fname Compiled with file name modifiers. |filename-modifiers| |
|
0 commit comments