abo-abo / function-args

C++ completion for GNU Emacs
120 stars 10 forks source link

Start moo-jump-local with focus at semantic-current-tag #15

Closed tuhdo closed 9 years ago

tuhdo commented 9 years ago

One of the nice thing in helm-semantic-or-imenu is that if point is inside tag that is returned by (semantic-current-tag), that tag is selected automatically in helm-semantic-or-imenu bufer. It is useful when I want to know the position of my function/variable definitions in current buffer relative to other tags. Without it, I have to move the highlighter manually because if you type to select a tag, you narrow to only a few tags. It is also useful if someone does not enable global-semantic-sticky-func-mode and the function signature is in previous screen, you don't have to scroll up to see the function signature. You can have a look at helm-semantic-or-imenu to see how a tag is properly selected.

helm-semantic-or-imenu can also focus on tag at point instead of (semantic-current-tag) (which only returns function/variable definitions point is inside, not tag at point), if a prefix argument is supplied.

abo-abo commented 9 years ago

helm-semantic-or-imenu can also focus on tag at point instead of (semantic-current-tag) (which only returns function/variable definitions point is inside, not tag at point), if a prefix argument is supplied.

I think this is too situational to be bound to a prefix of a normal function. If you really need this feature and can explain a use for it, raise a separate issue and I'll write a stand-alone function for it.

tuhdo commented 9 years ago

Now I think about it again, it makes sense in modes where you don't have semantic-idle-summary-mode or it is supported poorly. We got good support for C/C++ so it is not needed.