Hi Bram,

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

Yes. Some of the functions in quickfix.c file are too long. It is
a good idea to refactor some of these functions.

I will take a shot at this some time next week.

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

These will be cleared when the qiuckfix list is set to a new list
of entries (using cexpr or cfile or setqflist(), etc.)?

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

Makes sense.

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