Commit Graph

1652 Commits

Author SHA1 Message Date
Thiago de Arruda
31f835adc4 msgpack-gen: Fix msgpack_rpc_init_function_metadata
The function was broken on release builds
2014-09-16 14:14:00 -03:00
Thiago de Arruda
5a640821f9 runtime: Fix one of python sanity checks
Use sys.stdout.write which is compatible with python 2 and 3
2014-09-16 14:14:00 -03:00
Thiago de Arruda
aab5f1a898 deps: Update msgpack
The new version fixes serialization/deserialization of EXT 8/16/32
2014-09-16 14:13:48 -03:00
Justin M. Keyes
3b7b79e37d Merge pull request #1140 from atwupack/vp-7.4.341
vim-patch:7.4.341, 7.4.347, 7.4.351, 7.4.358
2014-09-15 14:08:55 -04:00
Justin M. Keyes
874296331b Merge pull request #1177 from NOLFXceptMe/vp-7.4.387
vim-patch:7.4.387
2014-09-15 13:53:21 -04:00
Thiago de Arruda
3ec4e18cd0 Merge PR #1175 'Some fixes to nvim initial documentation' 2014-09-15 10:12:12 -03:00
Thiago de Arruda
e0beb6d0c4 runtime: Make python_setup.vim compatible with python 2.6 2014-09-15 09:47:49 -03:00
Thiago de Arruda
e59d1c5816 runtime: Some nvim documentation fixes pointed by @oni-link 2014-09-15 08:21:31 -03:00
Thiago de Arruda
037ca796a0 eval.c: Rename has('neovim') feature to has('nvim')
To follow the convention of 'nvim' for technical references
2014-09-15 08:21:31 -03:00
Naveen Kumar Molleti
4f3d49d921 vim-patch:7.4.387
Problem:    "4gro" replaces one character then executes "ooo". (Urtica
Dioica)
Solution:   Write the ESC in the second stuff buffer.

https://code.google.com/p/vim/source/detail?r=v7-4-387
2014-09-15 15:35:49 +05:30
Justin M. Keyes
5d35484203 Merge pull request #1169 from splinterofchaos/arglistid
vim-patch:7.4.312
2014-09-15 04:35:49 -04:00
Justin M. Keyes
53ef7038d8 Merge pull request #1173 from jszakmeister/build-portability-fix
third-party: avoid using `rm` in the install command

closes #1171
2014-09-14 16:23:10 -04:00
John Szakmeister
5fa54a2dc0 third-party: avoid using rm in the install command
Also, the command was removing only .so versions of the library, and not
the the `.dylib` under Mac OS X, and in a way that it would fail if the
files weren't present.

Instead, let's delegate to a CMake script--to get the portability--and
use a glob to detect and remove the shared versions of the library.
Hopefully, this will become unnecessary as msgpack's build becomes more
full-featured, and we can just tell it to build the static version
instead.
2014-09-14 05:03:35 -04:00
Justin M. Keyes
0838b97739 Merge pull request #1165 from splinterofchaos/fix-patch-371
7.4.371.
2014-09-14 01:01:46 -04:00
Scott Prager
959ebfd5c2 7.4.371 2014-09-14 00:26:23 -04:00
Thiago de Arruda
06390208f3 Merge PR #1163 'Initial documentation of nvim features' 2014-09-13 21:49:18 -03:00
Thiago de Arruda
84aff1da6a runtime: Document python interface, clipboard and add intro doc 2014-09-13 21:35:47 -03:00
Thiago de Arruda
40a8193c6a runtime: Document 'unnamedclip' 2014-09-13 21:35:47 -03:00
Thiago de Arruda
c66959d115 runtime: Update python_setup.vim to the new rpc function names
Also improve version checking.
2014-09-13 21:35:47 -03:00
Thiago de Arruda
746e7cce21 runtime: Add highlighting for new functions/events 2014-09-13 21:35:47 -03:00
Thiago de Arruda
13f77ca0fd runtime: Initial job control documentation 2014-09-13 21:35:47 -03:00
Thiago de Arruda
eecdbb57fa runtime: Initial msgpack-rpc documentation 2014-09-13 21:35:47 -03:00
Thiago de Arruda
549311db7d runtime: Enhance help.vim to highlight Nvim/NVIM 2014-09-13 21:35:47 -03:00
Thiago de Arruda
f928c0a3a0 eval.c: Rename msgpack-rpc functions for consistency 2014-09-13 21:35:47 -03:00
Thiago de Arruda
f0b88466a3 eval.c: Rename jobwrite to jobsend 2014-09-13 21:35:47 -03:00
Thiago de Arruda
2d1b5589e8 server: Rename address environment variable
To follow the pattern of using NVIM for technical descriptions, it was renamed
to NVIM_LISTEN_ADDRESS
2014-09-13 21:35:47 -03:00
Scott Prager
def28adfdd vim-patch:7.4.312
Problem:    Cannot figure out what argument list is being used for a window.
Solution:   Add the arglistid() function. (Marcin Szamotulski)

https://code.google.com/p/vim/source/detail?r=v7-4-312
2014-09-13 18:28:32 -04:00
Justin M. Keyes
5778c25c01 Merge pull request #1167 from atwupack/fix-issue-1164
ex_cmds2.c:fix for issue #1164
2014-09-13 18:04:13 -04:00
André Twupack
eeef120c86 vim-patch:7.4.358
Problem:    Sort is not always stable.
Solution:   Add an index instead of relying on the pointer to remain the same.
            Idea by Jun Takimoto.

https://code.google.com/p/vim/source/detail?r=v7-4-358
2014-09-13 19:11:46 +02:00
André Twupack
75413496ae vim-patch:7.4.351
Problem:    sort() is not stable.
Solution:   When the items are identical, compare the pointers.

https://code.google.com/p/vim/source/detail?r=v7-4-351
2014-09-13 19:11:07 +02:00
André Twupack
c68468500f vim-patch:7.4.347
Problem:    test55 fails on some systems.
Solution:   Remove the elements that all result in zero and can end up in an arbitrary position.

https://code.google.com/p/vim/source/detail?r=v7-4-347
2014-09-13 19:11:07 +02:00
André Twupack
9f252554e3 vim-patch:7.4.341
Problem:    sort() doesn't handle numbers well.
Solution:   Add an argument to specify sorting on numbers. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=adc4a84f72eb44dae657af713922a6e2c1f64ae3
2014-09-13 19:10:18 +02:00
André Twupack
abdcc5fe85 ex_cmds2.c:fix for issue #1164
fix condition while iterating over all buffers
2014-09-13 18:50:57 +02:00
Justin M. Keyes
1761a4af71 Merge pull request #1162 from atwupack/vp-7.4.357
vim-patch:7.4.357, 7.4.367, 7.4.376
2014-09-12 15:36:29 -04:00
André Twupack
ae33dc0d5a vim-patch:7.4.376
Problem:    Popup menu flickers too much.
Solution:   Remove the forced redraw. (Hirohito Higashi)

https://code.google.com/p/vim/source/detail?r=v7-4-376

Includes: vim-patch:7.4.357 vim-patch:7.4.367 vim-patch:7.4.376
2014-09-12 21:02:50 +02:00
Thiago de Arruda
6a8932aa58 Merge PR #1130 'Update to the experimental msgpack v5 branch' 2014-09-12 14:01:35 -03:00
Thiago de Arruda
2a67b847aa build/test: install vroom/python-client from the master branch 2014-09-12 13:50:07 -03:00
Thiago de Arruda
545acf2024 api metadata: Allow typed container information in api functions
Adapt gendeclarations.lua/msgpack-gen.lua to allow the `ArrayOf(...)` and
`DictionaryOf(...)` types in function headers. These are simple macros that
expand to Array and Dictionary respectively, but the information is kept in the
metadata object, which is useful for building clients in statically typed
languages.
2014-09-12 13:50:07 -03:00
Thiago de Arruda
cd2e46c078 api/msgpack-rpc: Refactor metadata object construction
Instead of building all metadata from msgpack-gen.lua, we now merge the
generated part with manual information(such as types and features). The metadata
is accessible through the api method `vim_get_api_info`.

This was done to simplify the generator while also increasing flexibility(by
being able to add more metadata)
2014-09-12 13:50:07 -03:00
Thiago de Arruda
15ca58d79f api: Implement vim_report_error function
This function is used to report errors caused by remote functions called by
channel_send_call
2014-09-12 13:50:07 -03:00
Thiago de Arruda
d29b62daab api: initialize capacity in the array_dict_macro 2014-09-12 13:50:07 -03:00
Thiago de Arruda
fa01ea8ead runtime: Add script for bootstrapping the python host 2014-09-12 13:50:02 -03:00
Thiago de Arruda
a1ce3a3acc provider: Major refactor
- Providers for features are now registered as a unit. For example, instead of
  calling `register_provider("clipboard_get")` and
  `register_provider("clipboard_set")`, clients call
  `register_provider("clipboard")` and nvim will assume it implements all
  methods of the "clipboard" feature
- Bootstrapping code was removed. With the `api_spawn` function exposed to
  vimscript, it's no longer necessary and will be handled by plugins
  distributed with nvim.
- Now the `has` function will return true if there's a live channel that
  has registered as a provider for the feature.
- 'initpython'/'initclipboard' options were removed
- A new API function was exposed: `vim_discover_features` which returns an
  object with information about pluggable features such as 'python' or
  'clipboard'
2014-09-12 13:25:29 -03:00
Thiago de Arruda
5060902930 api/msgpack-rpc: Implement channel_close and expose to vimscript
Simple function for closing a channel by id
2014-09-12 13:25:29 -03:00
Thiago de Arruda
03f4d17fc9 wstream: Fix close/free
The current code was leading to an invalid free when the wstream was closed
2014-09-12 13:25:28 -03:00
Thiago de Arruda
3f15d34056 job: Fix crash when passing a non-executable path to job_start 2014-09-12 13:25:28 -03:00
Thiago de Arruda
551b76c516 api/msgpack-rpc: Expose channel_from_job to vimscript as api_spawn 2014-09-12 13:25:28 -03:00
Thiago de Arruda
af61a286b2 main: Rename --embedded-mode and --api-msgpack-metadata options
--embedded-mode        -> --embed
--api-msgpack-metadata -> --api-info
2014-09-12 13:25:28 -03:00
Thiago de Arruda
cac24cb06d api/msgpack-rpc: Refactor msgpack_rpc_helpers.{c,h}
- Move helpers that are specific to API types to api/private/helpers.{c,h}
- Include headers with generated declarations
- Delete unused macros
2014-09-12 13:25:28 -03:00
Thiago de Arruda
2792a0e33c api/msgpack-rpc: Remove Position type, using arrays instead. 2014-09-12 13:25:28 -03:00