comparison runtime/doc/eval.txt @ 8291:ac0c43e7af20 v7.4.1438

commit https://github.com/vim/vim/commit/c7f0ebc6d1e1cdaed816b88a0d6092c5ace615eb Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 27 21:10:09 2016 +0100 patch 7.4.1438 Problem: Can't get buffer number of a channel. Solution: Add ch_getbufnr().
author Christian Brabandt <cb@256bit.org>
date Sat, 27 Feb 2016 21:15:04 +0100
parents e05e28dcb590
children 88207f4b861a
comparison
equal deleted inserted replaced
8290:285c4ec936b5 8291:ac0c43e7af20
1820 ch_close( {channel}) none close {channel} 1820 ch_close( {channel}) none close {channel}
1821 ch_evalexpr( {channel}, {expr} [, {options}]) 1821 ch_evalexpr( {channel}, {expr} [, {options}])
1822 any evaluate {expr} on JSON {channel} 1822 any evaluate {expr} on JSON {channel}
1823 ch_evalraw( {channel}, {string} [, {options}]) 1823 ch_evalraw( {channel}, {string} [, {options}])
1824 any evaluate {string} on raw {channel} 1824 any evaluate {string} on raw {channel}
1825 ch_getbufnr( {channel}, {what}) Number get buffer number for {channel}/{what}
1825 ch_getjob( {channel}) Job get the Job of {channel} 1826 ch_getjob( {channel}) Job get the Job of {channel}
1826 ch_log( {msg} [, {channel}]) none write {msg} in the channel log file 1827 ch_log( {msg} [, {channel}]) none write {msg} in the channel log file
1827 ch_logfile( {fname} [, {mode}]) none start logging channel activity 1828 ch_logfile( {fname} [, {mode}]) none start logging channel activity
1828 ch_open( {address} [, {options}]) Channel open a channel to {address} 1829 ch_open( {address} [, {options}]) Channel open a channel to {address}
1829 ch_read( {channel} [, {options}]) String read from {channel} 1830 ch_read( {channel} [, {options}]) String read from {channel}
2719 is removed. 2720 is removed.
2720 See |channel-use|. 2721 See |channel-use|.
2721 2722
2722 {only available when compiled with the |+channel| feature} 2723 {only available when compiled with the |+channel| feature}
2723 2724
2725 ch_getbufnr({channel}, {what}) *ch_getbufnr()*
2726 Get the buffer number that {channel} is using for {what}.
2727 {what} can be "err" for stderr, "out" for stdout or empty for
2728 socket output.
2729 Returns -1 when there is no buffer.
2730 {only available when compiled with the |+channel| feature}
2731
2724 ch_getjob({channel}) *ch_getjob()* 2732 ch_getjob({channel}) *ch_getjob()*
2725 Get the Job associated with {channel}. 2733 Get the Job associated with {channel}.
2726 If there is no job calling |job_status()| on the returned Job 2734 If there is no job calling |job_status()| on the returned Job
2727 will result in "fail". 2735 will result in "fail".
2728 2736