Hi Bram,

On Mon, May 23, 2016 at 12:57 PM, Bram Moolenaar <[email protected]>
wrote:

>
> Yegappan Lakshmanan wrote:
>
> > Add the getbufinfo(), getwininfo() and gettabinfo() functions to get
> information about
> > the list of buffers, windows and tabpages respectively.
>
> Thanks.
>
> I would like to invite everybody to review these new functions. Is this
> the right way to get the information?
>
> For getbufinfo() I think it would be useful to be able to specify
> whether unlisted buffers are included. That reflects adding "!" to
> ":buffers".
>
> gettabinfo() should return a list of window IDs.
>
> getwininfo() should accept a window ID instead of a window nr.
> See win_getid() and win_id2win(). The window ID is more useful than the
> window nr, since the nr changes for every layout change.
>
> I do not like how options are added. The list will soon get outdated.
> It should be possible to go over the list of all options and use the
> ones that are local to a window or buffer.
>
>
I am trying to use the list of options from option.c to get only the window
local options by checking for (var == VAR_WIN).

I noticed that for the 'statusline' option, the var field in vimoption
is not set to VAR_WIN. For all the other window local options, var is set
to VAR_WIN. Is this intentional or is it a bug?

Thanks,
Yegappan

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