When I do something inside Emacs, with the buffer
*Messages* you get some idea what happened. But it's only if that function is echoing a message for the minibuffer. Then
*Messages* keeps a record of messages that are echoed.
I remember there was a buffer where all commands were listed that are executed. But I cannot find it back in the Emacs documentation. It displayed also functions that are not echoing any message at all.
Do anyone know about which function I'm talking?