Yegappan 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 make it easier to include the changes, I am attaching a patch > > with only the refactoring changes. I have extracted the code that > > processes the 'errorformat' option into two functions. There are > > no functional changes in this patch. Once this goes in, we can add > > the optimization changes to process 'errorformat' only once (if > > it doesn't change between two invocations). > > > > Now that the qf_init_ext() function refactoring changes are incorporated, > I am attaching a patch to optimize the qf_init_ext() function. > Now the errorformat option is processed only when a new errorformat > is used. Otherwise, the previously processed value is used.
Thanks. I'll take it a step further and store the state separately. That way it can be used asynchronously. One example is a grep command that runs in the background. We could then have two error lists in use, thus we need two sets of state. -- hundred-and-one symptoms of being an internet addict: 176. You lie, even to user-friends, about how long you were online yesterday. /// 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.
