Reputation: 3061
I am writing a .hs (haskell) file through emacs and loading it with 'load file' (C-c C-l).
For testing the functions, I switchover to Main Prompt Window (C-x o), where I need to type complete function name. I am sure there must be a way to get the function names through auto-completion, but I don't know how to do it and could not find?
Please guide.
Upvotes: 4
Views: 256
Reputation: 3061
This answer found in Jedai's comment on the question.
When in Main prompt window, if you require, say function "doubleMe" , just type initial 2-3 letters like "dou" and then press Meta-/ (the meta key or Alt key and slash together); you will find the auto-completed function name. In this case - "doubleMe".
If you have multiple function names or other words in the buffer and around; which starts with "dou" then keep on pressing Meta-/ , till you find the desired name.
Note that this feature works in all windows.
Upvotes: 1
Reputation: 15813
Yes. I use imenu.el
For C language there are many possibilities.
It is expected that imenu shoud work for all possible languages.
Upvotes: 0