emacs -Q M-x which-func-mode RET visit this file: https://github.com/boostorg/litre/blob/master/cplusplus.py C-x C-v cplusplus.py RET Notice it being really slow. CPU profile report attached.