Mac – Emacs: displaying list of subroutines/functions/classes in a source file

emacssource codetext-editors

I have been using a little-known editor called "FTE" (or eFTE) for years; it has a nice utility that can display the list of the subroutines/functions/classes (or any such thing–depending on what regexp you define in its configuration file) in a source text file (C, C++, Fortran, … what have you). This function allows me to jump quickly from one point to another in a source file. Perhaps the original shortcut in FTE is ^I (Control+I). Does emacs have a similar functionality? Emacs is much more advanced than FTE and I would be surprised if no one ever developed such a facility.

Thanks,
Wirawan

Best Answer

Try M-x occur RET exp RET - this lists in a new buffer all the occurrences of the exp in the current buffer.

Related Question