Hi,

On Tue, Jun 4, 2019 at 5:46 AM Paul Jolly <[email protected]> wrote:
>
> Hi all,
>
> Despite the documentation being quite clear, I was a little surprised
> that setqflist did not trigger QuickFixCmdPre|QuickFixCmdPost.
>
> This is hardly surprising: setqflist is a function, not a command.
>
> Not only that, if we ignore the fact it's not a command, the very
> example given in QuickFixCmdPost-example would become infinitely
> recursive if this were possible.
>

Yes. As you described above, these autocmds are triggered only
for the quickfix commands and not for the quickfix functions.

>
> Has there been any discussion on this in the past?
>

No. I am not aware of any discussions about this in the past.

>
> Reason being, I'd like the user to be able to decide what to do when I
> populate the quickfix list.
>

Different plugins and user triggered commands can populate the
quickfix/location lists. To handle plugin specific behavior, it is simpler
to have the plugin call a user supplied function(s) or autocmd:

    doautocmd User MyPluginEvent

Regards,
Yegappan

>
> It might be that this scenario just doesn't "fit" with
> QuickFixCmdPre|QuickFixCmdPost, and hence I need to investigate
> options described in
> https://groups.google.com/d/msg/vim_dev/uiw6gHft-0g/i8qdfT8YBQAJ in
> more detail.
>
> Any pointers would be appreciated.
>
> Thanks,
>

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7kHx4MVBqf0jx_106w%2BkpxbhsK8g8mFTM_uSAagZV7Sbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui