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

Problem of helm-imenu when both declaration and definition are available if using semantic-create-imenu-index #337

Closed
binshengliu opened this issue Nov 15, 2013 · 2 comments
Labels

Comments

@binshengliu
Copy link
Contributor

If the imenu-create-index-function is bind to semantic-create-imenu-index, when there are both declaration and definition of a function, semantic-create-imenu-index generates two items in the imenu list, but using helm-imenu can only jump to one of them.

void foo(); // either item in the imenu list jumps here

void foo() {}

The items generated by semantic-create-imenu-index contains overlay information. I think this information can be used to help fix this.

@thierryvolpiatto
Copy link
Member

Did you try M-x helm-semantic-or-imenu ?
It is working as expected with your sample file above.

@binshengliu
Copy link
Contributor Author

Thanks for reply.

I tried that function. It works if I do not type anything to filter the result. If I type "f" to filter the result, only the item for the prototype is displayed.

thierryvolpiatto pushed a commit that referenced this issue Nov 27, 2013
* helm-semantic.el: Use it.
* helm-imenu.el: idem.
* helm-help.el: Document it.
thierryvolpiatto pushed a commit that referenced this issue Oct 30, 2015
* helm-imenu.el (helm-imenu-source):       Do it.
* helm-semantic.el (helm-semantic-source): Do it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants