diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-03-13 15:02:37 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-28 19:14:34 +0200 |
commit | 3ea10077534cb1dcb1597ffcf85e601fa0c0e27b (patch) | |
tree | a043bcdda63a9f3e4c3475dd6371ebb2c2324ddb /runtime | |
parent | 7044aa6e8256844bc1bd23eb61d4a41ca6d418d0 (diff) | |
download | rneovim-3ea10077534cb1dcb1597ffcf85e601fa0c0e27b.tar.gz rneovim-3ea10077534cb1dcb1597ffcf85e601fa0c0e27b.tar.bz2 rneovim-3ea10077534cb1dcb1597ffcf85e601fa0c0e27b.zip |
api: nvim_get_mode()
Asynchronous API functions are served immediately, which means pending
input could change the state of Nvim shortly after an async API function
result is returned.
nvim_get_mode() is different:
- If RPCs are known to be blocked, it responds immediately (without
flushing the input/event queue)
- else it is handled just-in-time before waiting for input, after
pending input was processed. This makes the result more reliable
(but not perfect).
Internally this is handled as a special case, but _semantically_ nothing
has changed: API users never know when input flushes, so this internal
special-case doesn't violate that. As far as API users are concerned,
nvim_get_mode() is just another asynchronous API function.
In all cases nvim_get_mode() never blocks for more than the time it
takes to flush the input/event queue (~µs).
Note: This doesn't address #6166; nvim_get_mode() will provoke #6166 if
e.g. `d` is operator-pending.
Closes #6159
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/help.txt | 5 | ||||
-rw-r--r-- | runtime/doc/intro.txt | 5 | ||||
-rw-r--r-- | runtime/doc/message.txt | 4 |
3 files changed, 0 insertions, 14 deletions
diff --git a/runtime/doc/help.txt b/runtime/doc/help.txt index f71f46bad3..3837cf3e26 100644 --- a/runtime/doc/help.txt +++ b/runtime/doc/help.txt @@ -154,22 +154,17 @@ Interfaces ~ |if_cscop.txt| using Cscope with Vim |if_pyth.txt| Python interface |if_ruby.txt| Ruby interface -|debugger.txt| Interface with a debugger |sign.txt| debugging signs Versions ~ |vim_diff.txt| Main differences between Nvim and Vim |vi_diff.txt| Main differences between Vim and Vi - *sys-file-list* -Remarks about specific systems ~ -|os_win32.txt| MS-Windows *standard-plugin-list* Standard plugins ~ |pi_gzip.txt| Reading and writing compressed files |pi_netrw.txt| Reading and writing files over a network |pi_paren.txt| Highlight matching parens |pi_tar.txt| Tar file explorer -|pi_vimball.txt| Create a self-installing Vim script |pi_zip.txt| Zip archive explorer LOCAL ADDITIONS: *local-additions* diff --git a/runtime/doc/intro.txt b/runtime/doc/intro.txt index a5f9106bb0..bc34b69508 100644 --- a/runtime/doc/intro.txt +++ b/runtime/doc/intro.txt @@ -34,11 +34,6 @@ It can be accessed from within Vim with the <Help> or <F1> key and with the is not located in the default place. You can jump to subjects like with tags: Use CTRL-] to jump to a subject under the cursor, use CTRL-T to jump back. -This manual refers to Vim on various machines. There may be small differences -between different computers and terminals. Besides the remarks given in this -document, there is a separate document for each supported system, see -|sys-file-list|. - *pronounce* Vim is pronounced as one word, like Jim, not vi-ai-em. It's written with a capital, since it's a name, again like Jim. diff --git a/runtime/doc/message.txt b/runtime/doc/message.txt index d0bdba41ab..5c2dddc8b3 100644 --- a/runtime/doc/message.txt +++ b/runtime/doc/message.txt @@ -40,10 +40,6 @@ Note: If the output has been stopped with "q" at the more prompt, it will only be displayed up to this point. The previous command output is cleared when another command produces output. -If you are using translated messages, the first printed line tells who -maintains the messages or the translations. You can use this to contact the -maintainer when you spot a mistake. - If you want to find help on a specific (error) message, use the ID at the start of the message. For example, to get help on the message: > |