called-interactively-p-functions is a variable defined in `subr.el'.
Its value is

(edebug--called-interactively-skip advice--called-interactively-skip)

  • This variable may be risky if used as a file-local variable.

Special hook called to skip special frames in `called-interactively-p'.
The functions are called with 3 arguments: (I FRAME1 FRAME2),
where FRAME1 is a "current frame", FRAME2 is the next frame,
I is the index of the frame after FRAME2. It should return nil
if those frames don't seem special and otherwise, it should return
the number of frames to skip (minus 1).