On 2007-04-26, Navdeep Parhar <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> Currently :cscope has a variant :lcscope that allows the use of 
> the location list instead of the quickfix list.  However, :scscope 
> has no equivalent that uses the location list.  Please note that 
> :scs splits only if cscope returns some results, so :scs is not 
> the same as ":split cs".  Due to this reason ":split lcscope" can 
> not be used to get the same behaviour as the proposed :lscscope.
> 
> I was looking for a way to open the results of a cscope query in a 
> new tab, and use the location list at the same time.  That's when 
> I realized the need for :lscsope.  ":tab lsc ..." does what I 
> need.
> 
> Here is a patch to add :lscscope to vim.  I have tested it on 
> Solaris and Linux and it works for me.  Feedback is welcome.

Wonderful!  Thank you.  I have applied it to vim on SunOS 5.8 and am 
testing it now.  The lack of this feature has kept me from using 
location lists until now, so I'm not sure yet how this _should_ 
work.  I'll also have to remember to use the location-list form of 
several commands.

I use a combination of tags, :grep and ":scscope find" to search the 
code I'm working on.  I often find myself in the process of 
traversing one quickfix list when I'd like to follow some other 
quickfix list in another window, but be able to easily come back to 
the original quickfix list just by changing to the original window.

I'll let you know how this works out.

Regards,
Gary

-- 
Gary Johnson                 | Agilent Technologies
[EMAIL PROTECTED]     | Mobile Broadband Division
                             | Spokane, Washington, USA

Reply via email to