Re: QuickFixCmdPost autocmd not always invoked

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: QuickFixCmdPost autocmd not always invoked

Yegappan Lakshmanan
Copying vim_use to get additional comments.

On Sat, Nov 25, 2017 at 10:44 AM, Yegappan Lakshmanan
<[hidden email]> wrote:

> Hi,
>
> The QuickFixCmdPost autocmd is not invoked for some quickfix commands
> that fail to add/modify the quickfix list.
>
> For the cfile, cgetfile, caddfile, make, grep, grepadd, vimgrep, vimgrepadd and
> helpgrep commands, the QuickFixCmdPost autocmd is always invoked irrespective
> of whether command succeeded or not.
>
> For the cexpr, caddexpr, cgetexpr, cbuffer, caddbuffer and cgetbuffer commands,
> the QuickFixCmdPost autocmd is invoked only when the command succeeds. Otherwise
> the autocmd is not invoked.
>
> If this behavior is changed to always invoke the autocmd for the cexpr,
> caddexpr, cgetexpr, cbuffer, caddbuffer and cgetbuffer commands, does anyone
> see a problem?
>
> The above proposed change will make it consistent that whenever the
> QuickFixCmdPre autocmd is invoked, the corresponding QuickFixCmdPost
> autocmd will also be invoked.
>
> Thanks,
> Yegappan

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.