Ben Fritz wrote:
> On Saturday, July 15, 2017 at 6:27:27 AM UTC-5, Bram Moolenaar wrote:
> > Ben Fritz wrote:
> >
> > > On Friday, July 14, 2017 at 12:09:42 PM UTC-5, Bram Moolenaar wrote:
> > > > Daniel Hahler wrote:
> > > >
> > > >
> > > >
> > > > > Horsefly I can use another auto command then.
> > > >
> > > >
> > > >
> > > > It might work to use the QuickFixCmdPost event and check if &filetype ==
> > > >
> > > > 'qf'
> > > >
> > >
> > > Not if you're trying to respond to a ":copen" command.
> > >
> > > I have autocmds using window-related commands in a "au Filetype qf" to:
> > >
> > > 1. detect if it's a location list or a quickfix list (by using :copen and
> > > checking if the window changed)
> > > 2. resize the quickfix window based on the number of entries
> > >
> > > These are currently failing because of this change and I don't think
> > > there is a good way to accomplish these things anymore.
> >
> > The resizing should work since 8.0.0688.
> >
> > If you have remaining problems, please give a reproducible example.
> >
>
> For resizing, if I use "exe 'resize' sizevar", it works.
>
> If I use "exe sizevar 'wincmd _'" instead, it does not work, I get "E788: Not
> allowed to edit another buffer now"
>
> For determining whether a quickfix window is a location list or a quickfix
> list, is there a different way to do that besides attempting a ":copen"
> command? I get the same error for that command, even if I'm already in the
> quickfix list and therefore it doesn't even need to switch buffers.
Not sure what you are doing, but this works:
au FileType qf 20wincmd _
--
"The question of whether computers can think is just like the question
of whether submarines can swim." -- Edsger W. Dijkstra
/// 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.