Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to support trace class definition, or list it as the first/top candidate #18

Closed
4u9u5tsong opened this issue Nov 4, 2013 · 5 comments

Comments

@4u9u5tsong
Copy link

I have used xgtags for a long time, now completely switch to this ggtags: very simple and intuitive, very good job!

I'm wondering if it's easy to parse the output from global generally, to prioritize "Htree2::Htree2" the constructor in this example. (very common in C++ code, maybe post-process the output is a good idea, not sure there is a better way?)

screen shot 2013-11-03 at 11 37 17 pm

@leoliu
Copy link
Owner

leoliu commented Nov 4, 2013

Hi richardleo,

Thanks for the bug report. Let's see if there is something to be done to improve this scenario.

If you search Htree2::Htree2, does ggtags give you better results? Try C-u M-. and feed it with Htree2::Htree2. if it does, you can customise ggtags-bounds-of-tag-function to teach ggtags how best to get tag at point.

Do you use the M-} and M-{ that moves from file to file? It could get you to Htree2::Htree2c in two steps per your screenshot.

Thanks,
Leo

@4u9u5tsong
Copy link
Author

Leo,

Thank you for your quick response.

C-u M-. doesn't work for Htree2::Htree2.
Yes, I use M-} and M-{, but usually it's more intuitive to have the definition at the top.

BTW, I tried the latest version, for many variables, it flashes without an output.
I found for some variables, the global command line invoked by M-. is not correct.

Again, good tool, look forward to updates.

Thanks for your development effort!

@leoliu
Copy link
Owner

leoliu commented Nov 5, 2013

Thank you, I just fixed M-.. Let me know if there are other problems.

I just pulled a C++ project to try out. I think what you are missing (i.e. find definition for constructors) is due to the C++ parser in GNU Global. The correct course of action is to make a feature request to GNU Global, whose author seems responsive most times.

But there may be something ggtags can do? For example maybe a jump-to-first error hook? I'll think about this and get back.

Thanks,
Leo

@4u9u5tsong
Copy link
Author

yes, you are right. It seems to be a basic requirement for C++ programmer, I may try to ping the global guy later.
Unfortunately I don't program in elisp, mostly working on C++, otherwise I would like to contribute some efforts too.

Have a upcoming deadline now, I'll let you know my thoughts and experience.
Plus, you seems also a Chinese, www.newsmth.net has a board called "Emacs", you should advertise this tool 👍
I will recommend it to my friends.
Thank you.

@leoliu
Copy link
Owner

leoliu commented Nov 5, 2013

Thank you for your kind words. And yes I do browse newsmth.net from time to time. Don't worry about the elisp thing. Your bugs reports are highly appreciated. - Leo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants