vim-patch:7.4.406

Problem:    Test 72 and 100 fail on MS-Windows.
Solution:   Set fileformat to unix in the tests. (Taro Muraoka)

https://code.google.com/p/vim/source/detail?r=v7-4-406
version: More NA patches.
version: update patches to 488
Merge pull request #1330 from splinterofchaos/na-patches

N/A patches
vim-patch:7.4.422

Problem:    When using conceal with linebreak some text is not displayed
            correctly. (Grüner Gimpel)
Solution:   Check for conceal mode when using linebreak. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-422
Merge pull request #1332 from splinterofchaos/listbr

vim-patch:7.4.422
runtime: Fix rpcstop call in python_setup.vim
msgpack-rpc: Ensure stdio channels are properly closed

When stdio was closed, parse_msgpack was called with eof == true, with caused a
free_channel call. To ensure the correct behavior for all types of channels, the
close_channel must be called before free_channel.
msgpack-rpc: Fix error handling and leak in call_request_handler

Free the arguments array after sending the response and also avoid
double-sending responses in cases of errors.
job: Refactor to ensure that all callbacks will be invoked

It's possible that a child process won't close it's standard streams, even after
it exits. This can be evidenced with the "xclip" program:

    :call system('xclip -i -selection clipboard', 'DATA')

Before this commit, the above command wouldn't return, even though the xclip
program had exited. That is because `xclip` wasn't closing it's stdout/stderr
streams, which would block pending_refs from ever reaching 0.

Now the job.c module was refactored to ensure all streams are closed when the
uv_process_t handle is closed.
travis: Setup xvfb for running xclip tests
job: Only decrease refcount after `settmode` in `job_wait`

This is required to prevent the scenario explained by @akkartik in #1324
msgpack-rpc: Improve logging of msgpack-rpc messages

- Expose more logging control from the log.c module(get log stream and omit
  newlines)
- Remove logging from the generated functions in msgpack-gen.lua
- Refactor channel.c/helpers.c to log every msgpack-rpc payload using
  msgpack_object_print(a helper function from msgpack.h)
- Remove the api_stringify function, it was only useful for logging msgpack-rpc
  which is now handled by msgpack_object_print.
test: verify that msgpacks-rpc exceptions are working
Merge PR #1331 'Fixes to job and channel modules'
legacy tests: migrate test4
legacy tests: migrate test102
legacy tests: migrate test9
legacy tests: migrate test22
legacy tests: migrate test106