Hi,
On Tue, Jun 4, 2019 at 5:46 AM Paul Jolly <
pa...@myitcv.io> 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