Thursday, January 28, 2010

Re: Cscope quickfix -- not jump to first error

On Jan 28, 2:15 pm, Bram Moolenaar <B...@Moolenaar.net> wrote:
>
> This is incompatible with the behavior of :cstag where the bang means to
> abandon a changed file.
>
> The solution should probably be to have something else than "find" after
> ":cscope".
>

Instead of a ! on the command, how about incorporating it into
'cscopequickfix'? For example, the following could be made a valid
setting:

:set cscopequickfix=s-!,c-,d!-,t+!,e-

Which would:
* populate quickfix for C symbol searches, but not jump to the first
result
* populate quickfix for function call searches, and jump to the first
result
* populate quickfix for called function searches, but not jump to the
first result
* add to the quickfix for textual searches, but not jump to the first
result
* populate the quickfix for grep searches, and jump to the first
result

Putting it here makes at least some sense, would be easier to use (no
need to update mappings or anything, just an option), and won't break
backwards compatibility because without the ! in the options, the
string acts just as before.

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment