Skip to content

Commit 7451a71

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents e2fba9a + e74e8e7 commit 7451a71

31 files changed

+681
-335
lines changed

runtime/doc/channel.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*channel.txt* For Vim version 7.4. Last change: 2016 Feb 15
1+
*channel.txt* For Vim version 7.4. Last change: 2016 Feb 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -117,7 +117,7 @@ Use |ch_status()| to see if the channel could be opened.
117117

118118
"mode" can be: *channel-mode*
119119
"json" - Use JSON, see below; most convenient way. Default.
120-
"js" - Use JavaScript encoding, more efficient than JSON.
120+
"js" - Use JS (JavaScript) encoding, more efficient than JSON.
121121
"nl" - Use messages that end in a NL character
122122
"raw" - Use raw messages
123123

@@ -188,11 +188,11 @@ If there is an error reading or writing a channel it will be closed.
188188
==============================================================================
189189
4. Using a JSON or JS channel *channel-use*
190190

191-
If {mode} is "json" then a message can be sent synchronously like this: >
191+
If mode is JSON then a message can be sent synchronously like this: >
192192
let response = ch_sendexpr(channel, {expr})
193193
This awaits a response from the other side.
194194

195-
When {mode} is "js" this works the same, except that the messages use
195+
When mode is JS this works the same, except that the messages use
196196
JavaScript encoding. See |js_encode()| for the difference.
197197

198198
To send a message, without handling a response: >
@@ -242,7 +242,7 @@ is then completely responsible for correct encoding and decoding.
242242
==============================================================================
243243
5. Channel commands *channel-commands*
244244

245-
With a "json" channel the process can send commands to Vim that will be
245+
With a JSON channel the process can send commands to Vim that will be
246246
handled by Vim internally, it does not require a handler for the channel.
247247

248248
Possible commands are: *E903* *E904* *E905*
@@ -316,14 +316,15 @@ Example:
316316
==============================================================================
317317
6. Using a RAW or NL channel *channel-raw*
318318

319-
If {mode} is "raw" then a message can be send like this: >
319+
If mode is RAW or NL then a message can be send like this: >
320320
let response = ch_sendraw(channel, {string})
321+
321322
The {string} is sent as-is. The response will be what can be read from the
322323
channel right away. Since Vim doesn't know how to recognize the end of the
323324
message you need to take care of it yourself. The timeout applies for reading
324325
the first byte, after that it will not wait for anything more.
325326

326-
If {mode} is "nl" you can send a message in a similar way. You are expected
327+
If mode is "nl" you can send a message in a similar way. You are expected
327328
to put in the NL after each message. Thus you can also send several messages
328329
ending in a NL at once. The response will be the text up to and including the
329330
first NL. This can also be just the NL for an empty response.
@@ -450,6 +451,7 @@ The {options} argument in job_start() is a dictionary. All entries are
450451
optional. The same options can be used with job_setoptions(job, {options}).
451452

452453
TODO: *job-out-cb*
454+
"callback": handler
453455
"out-cb": handler Callback for when there is something to read on
454456
stdout.
455457
TODO: *job-err-cb*
@@ -484,7 +486,7 @@ TODO: *job-out-io*
484486
"out-buffer": "name" buffer to append to
485487

486488
TODO: *job-err-io*
487-
"err-io": "out" same as stdout (default)
489+
"err-io": "out" same type as stdout (default)
488490
"err-io": "null" disconnect stderr
489491
"err-io": "pipe" stderr is connected to the channel
490492
"err-io": "file" stderr writes to a file

runtime/doc/eval.txt

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1821,9 +1821,9 @@ ch_close( {handle}) none close a channel
18211821
ch_logfile( {fname} [, {mode}]) none start logging channel activity
18221822
ch_open( {address} [, {argdict})] Number open a channel to {address}
18231823
ch_readraw( {handle}) String read from channel {handle}
1824-
ch_sendexpr( {handle}, {expr} [, {callback}])
1824+
ch_sendexpr( {handle}, {expr} [, {options}])
18251825
any send {expr} over JSON channel {handle}
1826-
ch_sendraw( {handle}, {string} [, {callback}])
1826+
ch_sendraw( {handle}, {string} [, {options}])
18271827
any send {string} over raw channel {handle}
18281828
ch_status( {handle}) String status of channel {handle}
18291829
changenr() Number current change number
@@ -2725,28 +2725,32 @@ ch_readraw({handle}) *ch_readraw()*
27252725
within that time an empty string is returned.
27262726
TODO: depends on channel mode.
27272727

2728-
ch_sendexpr({handle}, {expr} [, {callback}]) *ch_sendexpr()*
2728+
ch_sendexpr({handle}, {expr} [, {options}]) *ch_sendexpr()*
27292729
Send {expr} over channel {handle}. The {expr} is encoded
27302730
according to the type of channel. The function cannot be used
27312731
with a raw channel. See |channel-use|. *E912*
27322732

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.
27372741

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.
27422743

27432744
{only available when compiled with the |+channel| feature}
27442745

2745-
ch_sendraw({handle}, {string} [, {callback}]) *ch_sendraw()*
2746+
ch_sendraw({handle}, {string} [, {options}]) *ch_sendraw()*
27462747
Send {string} over channel {handle}.
27472748
Works like |ch_sendexpr()|, but does not encode the request or
27482749
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|.
27502754

27512755
{only available when compiled with the |+channel| feature}
27522756

@@ -7276,8 +7280,9 @@ listcmds Compiled with commands for the buffer list |:files|
72767280
and the argument list |arglist|.
72777281
localmap Compiled with local mappings and abbr. |:map-local|
72787282
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
72817286
menu Compiled with support for |:menu|.
72827287
mksession Compiled with support for |:mksession|.
72837288
modify_fname Compiled with file name modifiers. |filename-modifiers|

src/Make_cyg_ming.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ ifndef DYNAMIC_PYTHON3_DLL
264264
DYNAMIC_PYTHON3_DLL=python$(PYTHON3_VER).dll
265265
endif
266266
ifdef PYTHON3_HOME
267-
PYTHON3_HOME_DEF=-DPYTHON3_HOME=\"$(PYTHON3_HOME)\"
267+
PYTHON3_HOME_DEF=-DPYTHON3_HOME=L\"$(PYTHON3_HOME)\"
268268
endif
269269

270270
ifeq (no,$(DYNAMIC_PYTHON3))

0 commit comments

Comments
 (0)