comparison runtime/doc/eval.txt @ 7992:78106b0f2c56

commit https://github.com/vim/vim/commit/cbebd4879cc78e670d79b2c57dc33d7b911c962a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 7 23:02:56 2016 +0100 Updated runtime files.
author Christian Brabandt <cb@256bit.org>
date Sun, 07 Feb 2016 23:15:05 +0100
parents 45ea5ebf3a98
children d685893d852e
comparison
equal deleted inserted replaced
7991:689d10b97db7 7992:78106b0f2c56
2701 milliseconds. 2701 milliseconds.
2702 Default: 2000. 2702 Default: 2000.
2703 {only available when compiled with the |+channel| feature} 2703 {only available when compiled with the |+channel| feature}
2704 2704
2705 ch_sendexpr({handle}, {expr} [, {callback}]) *ch_sendexpr()* 2705 ch_sendexpr({handle}, {expr} [, {callback}]) *ch_sendexpr()*
2706 Send {expr} over JSON channel {handle}. See |channel-use|. 2706 Send {expr} over channel {handle}. The {expr} is encoded
2707 according to the type of channel. The function cannot be used
2708 with a raw channel. See |channel-use|. *E912*
2707 2709
2708 When {callback} is given returns immediately. Without 2710 When {callback} is given returns immediately. Without
2709 {callback} waits for a JSON response and returns the decoded 2711 {callback} waits for a response and returns the decoded
2710 expression. When there is an error or timeout returns an 2712 expression. When there is an error or timeout returns an
2711 empty string. 2713 empty string.
2712 2714
2713 When {callback} is zero no response is expected. 2715 When {callback} is zero no response is expected.
2714 Otherwise {callback} must be a Funcref or the name of a 2716 Otherwise {callback} must be a Funcref or the name of a
2716 |channel-callback|. 2718 |channel-callback|.
2717 2719
2718 {only available when compiled with the |+channel| feature} 2720 {only available when compiled with the |+channel| feature}
2719 2721
2720 ch_sendraw({handle}, {string} [, {callback}]) *ch_sendraw()* 2722 ch_sendraw({handle}, {string} [, {callback}]) *ch_sendraw()*
2721 Send {string} over raw channel {handle}. See |channel-raw|. 2723 Send {string} over channel {handle}.
2722 Works like |ch_sendexpr()|, but does not decode the response. 2724 Works like |ch_sendexpr()|, but does not encode the request or
2725 decode the response. The caller is responsible for the
2726 correct contents. See |channel-use|.
2723 2727
2724 {only available when compiled with the |+channel| feature} 2728 {only available when compiled with the |+channel| feature}
2725 2729
2726 *copy()* 2730 *copy()*
2727 copy({expr}) Make a copy of {expr}. For Numbers and Strings this isn't 2731 copy({expr}) Make a copy of {expr}. For Numbers and Strings this isn't