recursion-depth

recursion-depth is a built-in function in `C source code'.

(recursion-depth)

Return the current depth in recursive edits.