leoliu / ggtags

Emacs frontend to GNU Global source code tagging system.
http://elpa.gnu.org
577 stars 56 forks source link

How to use this gtags-cscope feature from ggtags.el #204

Open gthaker opened 4 years ago

gthaker commented 4 years ago

https://github.com/dkogan/xcscope.el describes a feature that I would like to use from within ggtags.el The feature is:

Where was this variable assigned-to?

gtags-cscope program of gnu Global suite provides this feature. It would be nice if from ggtags.el I could:

1) find where this variable is assigned-to (and it would search up from the current emacs point and find the nearest assignment within this function. If the variable is not assigned to in this function, the point should move to where this variable is coming into this function as a formal argument.

2) I can then move quickly to places where my function is being called from and repeat this process to, hopefully, quickly find where in the call stack it is likely my variable value was being set.

I hope I am making sense, if needed I can provide code examples.