Yegappan wrote:

> On Wed, Jun 15, 2016 at 1:41 PM, Bram Moolenaar <[email protected]> wrote:
> >
> > Yegappan Lakshmanan wrote:
> >
> >> The attached patch makes the following changes to
> >> the quickfix tests:
> >>
> >> 1. Extends several test cases which currently tests only
> >>     quickfix list to also test location lists.
> >> 2. Uses command aliases for quickfix/location list commands,
> >>     instead of using "exe" to convert the command names.
> >
> > Thanks!
> >
> > I have been thinking of making :caddexpr work better by keeping state
> > between invocations.  What needs to be done (at least):
> >
> > - Move 'efm' parsing to a separate function.  If 'efm' is the same as last
> >   time re-use the fmt_first list.
> >
> > - Do not clear "dir_stack", "directory" and "file_stack", "currfile" when
> >   using ":caddexpr".
> >   Move multiline, multiignore, multiscan outside of the function.
> >
> > Perhaps more?
> >
> > We could perhaps use one of the existing tests for directory entry/exit
> > and instead of doing all lines at once feed one line at a time to
> > :caddexpr.
> >
> 
> I am attaching a patch that implements all of the above changes.
> All the tests are passing. Need to review the diff and see whether
> any more changes are needed.
> 
> BTW, I observed only a slight improvement in a simple caddexpr
> test with a large number of entries.
> 
> Need to run additional tests to make sure this doesn't introduce
> any regressions.

I haven't checked the whole patch, but I think that the cleanup of
dir_stack, multiline, etc. needs to be done when not adding to an
existing list.  Perhaps the tests always change 'errorformat' and they
get cleared for that reason.

-- 
To be rich is not the end, but only a change of worries.

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

Raspunde prin e-mail lui