abo-abo / function-args

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

Automatically activate fa-show #12

Closed tuhdo closed 9 years ago

tuhdo commented 10 years ago

Hi abo,

Is it possible to make fa-show run when point enter a function call (a pair of parentheses) and fa-abort when point exits the function call? I think this is really convenient.

abo-abo commented 10 years ago

It's hardly possible in general, since it can make Emacs unresponsive: the call to fa-show can take some time depending on the size of source base, and the parsing out the current function is regex-based, so it's slow. Still I'd like to see how it looks like, so I'll try to implement this when I have some time.

tuhdo commented 10 years ago

Thanks you.

abo-abo commented 10 years ago

Have a look at fa-auto. It seems a bit annoying at the moment, but it might be useful.

tuhdo commented 10 years ago

Thanks! This feature is great. A few suggestions: