10
2
I want to see the definition of an existing function in Emacs. Is this possible?
I've tried C-h d function-name RET
, but it only returns the documentation string for the function, not the actual function itself.
I'm thinking something similar to bash's type
command, which will return the whole definition of a function.
(Embarrassing backstory: I accidentally wrote over a working function in my .emacs
file with a non-working version. The original function is still in memory! And it works! But I cannot for the life of me remember how I did it.)
1If you've kept
.emacs
opened in a buffer, try undoing like crazy. – Gilles 'SO- stop being evil' – 2011-11-11T01:14:00.247