Author Topic: Go to Reference To <symbol> ... collapsing results  (Read 7003 times)

rh

  • Senior Community Member
  • Posts: 126
  • Hero Points: 6
Go to Reference To <symbol> ... collapsing results
« on: April 01, 2008, 10:12:05 PM »
What controls the expansion of results on the References tab?  Just over half are expanded automatically, the rest are collapsed.  As well, is there a way to quickly collapse all of them?


Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Go to Reference To <symbol> ... collapsing results
« Reply #1 on: April 02, 2008, 05:46:31 PM »
This depends on your settings for References.

Tools > Options > Editing > Context Tagging (R) Options

If you have "Find references incrementally (faster)" turned on,
then when you do a find reference operation, it will scan files until
it finds one with a reference, then stop.  Otherwise, it will go through
all the files containing potential references, looking for all real
references, up to a limit defined by "def_cb_max_references".

It's important to understand that finding references is a form
of a search.  It first uses the cross-reference to determine
which files contain a particular identifier, then it visits each use
of that identifier and uses the context tagging to prove or
disprove whether it is a valid reference to the symbol you
are searching for references to.  This can cause some files
to be in the list that have no matches.  If you are using the
incremental option, these files will stay in the list, otherwise
they will be weeded out.

Hope this answers your questions.

rh

  • Senior Community Member
  • Posts: 126
  • Hero Points: 6
Re: Go to Reference To <symbol> ... collapsing results
« Reply #2 on: April 03, 2008, 04:04:59 PM »
Find reference incrementally is OFF so I get full results.  But not all the results are expanded.  The ones that remain collapsed can be expanded and do contain references to the symbol searched for.  The two tag files total about 64Mb and reference roughly 10k source files. 

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Go to Reference To <symbol> ... collapsing results
« Reply #3 on: April 08, 2008, 08:54:59 PM »
And the ones that are not expanded are at the end of the list?

See my previous comment about "def_cb_max_references".

rh

  • Senior Community Member
  • Posts: 126
  • Hero Points: 6
Re: Go to Reference To <symbol> ... collapsing results
« Reply #4 on: April 08, 2008, 09:04:02 PM »
That's correct.  Sorry, I forgot to look that up. 

I see def_cb_max_references in the help file but I'm not sure how to alter this setting.  Do I just edit vuserdefs and restart the editor?

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Go to Reference To <symbol> ... collapsing results
« Reply #5 on: April 08, 2008, 09:17:28 PM »
Macro > Set Variable..., then def_cb_max_references.

We are adding this option to the Context Tagging(R) Options screen for 13.0.1.

rh

  • Senior Community Member
  • Posts: 126
  • Hero Points: 6
Re: Go to Reference To <symbol> ... collapsing results
« Reply #6 on: April 08, 2008, 09:21:39 PM »
OH, had not used that part of SE yet.  Thanks.