Christian Brabandt wrote:

> Bram,
> here is a patch, that returns the complete quickfix/location list stack. 
> This is needed, so plugin writers can correctly handle quickfix and 
> location lists.
> Currently, there is no way, to set the quickfix lists back to their 
> original values (without running through the complete stack (using 
> colder/lolder).

getlocstack() needs some more explanation about what it returns.
It's not obvious.

> +getqfstack({nr})                                             *getqfstack()*
> +             Returns a dictionary with the stack of the quickfix lists
> +             with the following items:
> +               "cur"     The current position in the quickfix stack
> +               "entry0"  A list with all errors of the first quickfix list.
> +                         See |getqflist()| for detail information on the
> +                         entries.
> +               "entry1"  A list with all errors of the second quickfix list.
> +               ...
> +               "entry9"  A list with all errors of the last quickfix list.
> +               "title0"  |w:quickfix_title| of the first quickfix list.
> +               "title1"  |w:quickfix_title| of the second quickfix list.
> +               ...
> +               "title9"  |w:quickfix_title| of the last quickfix list.

Wouldn't it be better to have the entries and the titles in a list?

If getqfstack() is to be used to restore, how does one do that restore?


-- 
DEAD PERSON:  I'm getting better!
CUSTOMER:     No, you're not -- you'll be stone dead in a moment.
MORTICIAN:    Oh, I can't take him like that -- it's against regulations.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/groups/opt_out.


Raspunde prin e-mail lui