Hi,

On Wed, Jul 12, 2017 at 9:45 PM, LCD 047 <[email protected]> wrote:
> Using :laddexpr or calling setloclist() should increase b:changedtick for
> the quickfix / location list, if the list was modified.
>
> Sorry, I disagree. The way I understand it, b:changedtick was meant to keep
> track of undoable changed to the buffer, not to the loclist / quickfix list.
>

If the buffer displayed in the quickfix/loclist window is changed, then
the b:changedtick variable is updated.  This behavior seems logical
as the buffer contents are changed. Note that this changes only the
b:changedtick variable of the buffer displayed in the quickfix/loclist
window and not for any other buffer displayed in other windows.

If you close the quickfix window and reopen it, then the b:changedtick
variable will be reset.

>
> Making setloclist() update b:changedtick would break at least syntastic,
> which uses it to avoid unnecessarily running linters if the buffer hasn't
> changed since the last run.
>

I am assuming that the syntastic plugin checks the b:changedtick
variable for the non-quickfix buffers. So this change should not
affect the syntastic plugin.

- Yegappan

>
> Perhaps you can do your own bookkeeping based on
> b:changedtick and a QuickFixCmdPost? Trying to manipulate loclists outside
> the standard stack is already a pain as it is, please don't make it even
> more so.
>

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui