Make all fifo cleanup hooks run always

Those should not get prevented from running just because the user
disabled hooks, they are important for cleanup.
This commit is contained in:
Maxime Coste 2018-04-26 08:30:01 +10:00
parent 4eb6740794
commit 869736359a
5 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ define-command lint -docstring 'Parse the current buffer with a linter' %{
edit! -fifo $dir/fifo -debug *lint-output*
set-option buffer filetype make
set-option buffer make_current_error_line 0
hook -group fifo buffer BufCloseFifo .* %{
hook -always -group fifo buffer BufCloseFifo .* %{
nop %sh{ rm -r '$dir' }
remove-hooks buffer fifo
}

View File

@ -20,7 +20,7 @@ All the optional arguments are forwarded to the grep utility} \
edit! -fifo ${output} -scroll *grep*
set-option buffer filetype grep
set-option buffer grep_current_line 0
hook -group fifo buffer BufCloseFifo .* %{
hook -always -group fifo buffer BufCloseFifo .* %{
nop %sh{ rm -r $(dirname ${output}) }
remove-hooks buffer fifo
}

View File

@ -19,7 +19,7 @@ All the optional arguments are forwarded to the make utility} \
edit! -fifo ${output} -scroll *make*
set-option buffer filetype make
set-option buffer make_current_error_line 0
hook -group fifo buffer BufCloseFifo .* %{
hook -always -group fifo buffer BufCloseFifo .* %{
nop %sh{ rm -r $(dirname ${output}) }
remove-hooks buffer fifo
}

View File

@ -24,7 +24,7 @@ The syntaxic errors detected during parsing are shown when auto-diagnostics are
edit! -fifo ${dir}/fifo -debug *clang-output*
set-option buffer filetype make
set-option buffer make_current_error_line 0
hook -group fifo buffer BufCloseFifo .* %{
hook -always -group fifo buffer BufCloseFifo .* %{
nop %sh{ rm -r ${dir} }
remove-hooks buffer fifo
}

View File

@ -53,7 +53,7 @@ Available commands:\n add\n rm\n blame\n commit\n checkout\n diff\n hide-
printf %s "evaluate-commands -with-hooks -try-client '$kak_opt_docsclient' %{
edit! -fifo ${output} *git*
set-option buffer filetype '${filetype}'
hook -group fifo buffer BufCloseFifo .* %{
hook -always -group fifo buffer BufCloseFifo .* %{
nop %sh{ rm -r $(dirname ${output}) }
remove-hooks buffer fifo
}