On 9 July 2016, Bram Moolenaar <[email protected]> wrote:
>
> Lcd wrote:
>
> > > > On 7 July 2016, Bram Moolenaar <[email protected]> wrote:
[...]
> > > I don't understand.  What does "access to a buffer" mean?
> >
> >     Syntastic is a sort of generalised compiler set, it runs
> > external compilers, and shows the results in a loclist.  Except it
> > does a lot more than just open the loclist: it places signs, adds
> > highlighting patterns, shows errors in balloons, shows the nearest
> > error, and so on.  There is some bookkeeping involved, and syntastic
> > needs actual buffers to set local options, local variables, place
> > signs, munge error messages according to context, check that error
> > lines are not outside the file, and the like.  Could all that be
> > done starting from filenames?  Probably, with a rewrite from scratch
> > of the core.  Somebody else might even take up that task some day.
> >
> > > Anyway, the idea was that this is only used for specific purposes
> > > where a buffer is not needed, e.g. a list of matches for "grep".
> >
> >     The point is, there will be two kinds of loclists: "rich" ones
> > (with buffers), and "poor" ones (with filenames).  Syntastic would
> > need to deal with both.
>
> I don't see the problem.  If syntastic wants to do something that
> requires a buffer, then it opens that buffer.  The only difference is
> that the buffer is created later, not when the item is added to the
> quickfix list.

    As I said, doing that would involve rewriting the core from scratch.

    Admitting for the sake of the argument that rewriting wouldn't be a
problem, let's say there's a file "example.c" that's mentioned in the
list of errors, and I want to place a sign in it.  The file is not open,
how would I do that?  Let's say I open the file and place the sign.
Would jumping to the file from the loclist re-use my buffer?

    /lcd

-- 
-- 
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