Yegappan wrote: > >> On Mon, Aug 8, 2016 at 4:37 PM, Yegappan Lakshmanan <[email protected]> > >> wrote: > >> > > >> >> > >> >> By the way, I remember some patches that add functions returning > >> >> information about buffer/window/tabpage. It would be logical if > >> >> information regarding whether given buffer contains > >> >> quickfix/location/no list was included there. > >> >> > >> > > >> > I agree. The patch to get information about a buffer/window/tab page > >> > is at: > >> > > >> > https://github.com/vim/vim/pull/833 > >> > > >> > The information about the quickfix/location list window/buffer can be > >> > added to this patch. > >> > > >> > >> I am attaching a patch to add two new fields to the dict returned > >> by the getwininfo() function. The 'qfwin' field is set to true for the > >> quickfix window and the 'llwin' field is set to true for the location > >> list window. > >> > >> In this patch I also made some other minor changes. Updated the > >> help text for getwinfo() and gettabinfo() to alphabetically sort the > >> field names. Used the FOR_ALL_BUFFERS() and FOR_ALL_TABPAGES() > >> macros for walking all the buffers and tab pages in the f_getbufinfo(), > >> f_gettabinfo() and f_getwininfo() functions. > > > > Thanks. > > > > I find "qfwin" and "llwin" a bit obscure. And they always have opposite > > values. > > > > I think it would be more useful to have one flag that means the window > > is a quickfix window, since that means it behaves differently. And > > another flag to tell us whether it's showing quickfix errors or a > > location list. Perhaps they could be named "quickfix" and "loclist"? > > This reflects the value of 'buftype' and setloclist(). > > I am attaching an updated patch that implements the above.
Thanks! -- I have a drinking problem -- I can't afford it. /// 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/d/optout.
