Page 1 of 1

Watch elisp functions as they are executed in emacs

Posted: Sun Oct 28, 2012 8:06 pm
by erjoalgo
Is it possible to "watch" elisp commands as they are executed in an emacs session? For example, if I send "C-x C-f filePath", emacs runs the command "find-file filePath". How do I see the the commands, along with their arguments, that get run under an emacs session?

Re: Watch elisp functions as they are executed in emacs

Posted: Mon Oct 29, 2012 4:04 am
by stackman
You are not posting in the correct section of the forum.
Post in the emacs lisp section, you will get more answers.

Also try to be a bit more specific in your queries.
What do you mean by "see" or "watch" commands ?

If you want to display the documentation of a command, use the shortcut C-h f
followed by the name of the command. If you want to know what command is
bound to a shortcut, use C-h k then enter the shortcut. If you are interested in
what has happened so far, just look at the contents of the *Messages* buffer (C-x b RET *Messages* RET).
If you want to list in a buffer all the commands typed so far, use M-x list-command-history.

Re: Watch elisp functions as they are executed in emacs

Posted: Tue Oct 30, 2012 7:33 am
by ramarren
I have moved the topic to Emacs Lisp section.

Re: Watch elisp functions as they are executed in emacs

Posted: Wed Oct 31, 2012 9:08 pm
by erjoalgo
If you want to list in a buffer all the commands typed so far, use M-x list-command-history.
Thank you, that was exactly what I was looking for.