mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Remove all references to JobActivity
The JobActivity event got replaced by callback functions provided to
jobstart() or termopen().
It got removed here:
6e7757ad51
This commit is contained in:
parent
8171fc4cbc
commit
0e65962a68
@ -791,7 +791,7 @@ ShellCmdPost After executing a shell command with |:!cmd|,
|
|||||||
|:make| and |:grep|. Can be used to check for
|
|:make| and |:grep|. Can be used to check for
|
||||||
any changed files.
|
any changed files.
|
||||||
For non-blocking shell commands, see
|
For non-blocking shell commands, see
|
||||||
|JobActivity|.
|
|job-control|.
|
||||||
*ShellFilterPost*
|
*ShellFilterPost*
|
||||||
ShellFilterPost After executing a shell command with
|
ShellFilterPost After executing a shell command with
|
||||||
":{range}!cmd", ":w !cmd" or ":r !cmd".
|
":{range}!cmd", ":w !cmd" or ":r !cmd".
|
||||||
|
@ -4059,9 +4059,9 @@ jobstop({job}) {Nvim} *jobstop()*
|
|||||||
Stop a job created with |jobstart()| by sending a `SIGTERM`
|
Stop a job created with |jobstart()| by sending a `SIGTERM`
|
||||||
to the corresponding process. If the process doesn't exit
|
to the corresponding process. If the process doesn't exit
|
||||||
cleanly soon, a `SIGKILL` will be sent. When the job is
|
cleanly soon, a `SIGKILL` will be sent. When the job is
|
||||||
finally closed, a |JobActivity| event will trigger with
|
finally closed, the exit handler provided to |jobstart()| or
|
||||||
`v:job_data[0]` set to `exited`. See |job-control| for more
|
|termopen()| will be run.
|
||||||
information.
|
See |job-control| for more information.
|
||||||
|
|
||||||
jobwait({ids}[, {timeout}]) {Nvim} *jobwait()*
|
jobwait({ids}[, {timeout}]) {Nvim} *jobwait()*
|
||||||
Wait for a set of jobs to finish. The {ids} argument is a list
|
Wait for a set of jobs to finish. The {ids} argument is a list
|
||||||
|
@ -62,7 +62,7 @@ syn keyword vimErrSetting contained hardtabs ht w1200 w300 w9600
|
|||||||
|
|
||||||
" AutoCmd Events {{{2
|
" AutoCmd Events {{{2
|
||||||
syn case ignore
|
syn case ignore
|
||||||
syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdwinEnter CmdwinLeave ColorScheme CompleteDone CursorHold CursorHoldI CursorMoved CursorMovedI EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileChangedShellPost FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter GUIFailed InsertChange InsertCharPre InsertEnter InsertLeave JobActivity MenuPopup QuickFixCmdPost QuickFixCmdPre QuitPre RemoteReply SessionLoadPost ShellCmdPost ShellFilterPost SourceCmd SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabEnter TabLeave TabNew TabNewEntered TabClosed TermChanged TermResponse TextChanged TextChangedI User UserGettingBored VimEnter VimLeave VimLeavePre VimResized WinEnter WinLeave
|
syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdwinEnter CmdwinLeave ColorScheme CompleteDone CursorHold CursorHoldI CursorMoved CursorMovedI EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileChangedShellPost FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter GUIFailed InsertChange InsertCharPre InsertEnter InsertLeave MenuPopup QuickFixCmdPost QuickFixCmdPre QuitPre RemoteReply SessionLoadPost ShellCmdPost ShellFilterPost SourceCmd SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabEnter TabLeave TabNew TabNewEntered TabClosed TermChanged TermResponse TextChanged TextChangedI User UserGettingBored VimEnter VimLeave VimLeavePre VimResized WinEnter WinLeave
|
||||||
|
|
||||||
" Highlight commonly used Groupnames {{{2
|
" Highlight commonly used Groupnames {{{2
|
||||||
syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo
|
syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo
|
||||||
|
@ -6584,16 +6584,15 @@ apply_autocmds_group (
|
|||||||
fname = vim_strsave(fname); /* make a copy, so we can change it */
|
fname = vim_strsave(fname); /* make a copy, so we can change it */
|
||||||
} else {
|
} else {
|
||||||
sfname = vim_strsave(fname);
|
sfname = vim_strsave(fname);
|
||||||
/* Don't try expanding FileType, Syntax, FuncUndefined, WindowID,
|
// don't try expanding the following events
|
||||||
* ColorScheme, QuickFixCmd or JobActivity */
|
if (event == EVENT_COLORSCHEME
|
||||||
if (event == EVENT_FILETYPE
|
|| event == EVENT_FILETYPE
|
||||||
|| event == EVENT_SYNTAX
|
|
||||||
|| event == EVENT_FUNCUNDEFINED
|
|| event == EVENT_FUNCUNDEFINED
|
||||||
|
|| event == EVENT_QUICKFIXCMDPOST
|
||||||
|
|| event == EVENT_QUICKFIXCMDPRE
|
||||||
|| event == EVENT_REMOTEREPLY
|
|| event == EVENT_REMOTEREPLY
|
||||||
|| event == EVENT_SPELLFILEMISSING
|
|| event == EVENT_SPELLFILEMISSING
|
||||||
|| event == EVENT_QUICKFIXCMDPRE
|
|| event == EVENT_SYNTAX
|
||||||
|| event == EVENT_COLORSCHEME
|
|
||||||
|| event == EVENT_QUICKFIXCMDPOST
|
|
||||||
|| event == EVENT_TABCLOSED)
|
|| event == EVENT_TABCLOSED)
|
||||||
fname = vim_strsave(fname);
|
fname = vim_strsave(fname);
|
||||||
else
|
else
|
||||||
|
@ -894,8 +894,7 @@ static void on_refresh(Event event)
|
|||||||
}
|
}
|
||||||
Terminal *term;
|
Terminal *term;
|
||||||
void *stub; (void)(stub);
|
void *stub; (void)(stub);
|
||||||
// dont process autocommands while updating terminal buffers. JobActivity can
|
// don't process autocommands while updating terminal buffers
|
||||||
// be used act on terminal output.
|
|
||||||
block_autocmds();
|
block_autocmds();
|
||||||
map_foreach(invalidated_terminals, term, stub, {
|
map_foreach(invalidated_terminals, term, stub, {
|
||||||
// TODO(SplinterOfChaos): Find the condition that makes term->buf invalid.
|
// TODO(SplinterOfChaos): Find the condition that makes term->buf invalid.
|
||||||
|
@ -61,7 +61,6 @@ describe('jobs', function()
|
|||||||
file:write("abc\0def\n")
|
file:write("abc\0def\n")
|
||||||
file:close()
|
file:close()
|
||||||
|
|
||||||
-- v:job_data preserves NULs.
|
|
||||||
nvim('command', "let j = jobstart(['cat', '"..filename.."'], g:job_opts)")
|
nvim('command', "let j = jobstart(['cat', '"..filename.."'], g:job_opts)")
|
||||||
eq({'notification', 'stdout', {0, {'abc\ndef', ''}}}, next_msg())
|
eq({'notification', 'stdout', {0, {'abc\ndef', ''}}}, next_msg())
|
||||||
eq({'notification', 'exit', {0, 0}}, next_msg())
|
eq({'notification', 'exit', {0, 0}}, next_msg())
|
||||||
|
Loading…
Reference in New Issue
Block a user