To instrument an elisp function means to set up Emacs in such a way that whenever the function gets executed, debug mode is entered so the function can be executed stepwise. To instrument a function, move point into the definition of the function and then do C-u C-M-x
(as explained here).
How can I de-instrument an elisp function I have instrumented so that Emacs won't stop and enter into debug mode every time I execute this function?
According to the Emacs manual,
To remove instrumentation from a definition, simply re-evaluate its definition in a way that does not instrument. There are two ways of evaluating forms that never instrument them: from a file with
load
, and from the minibuffer witheval-expression (M-:)
.
If I use the M-:
then the function will get executed, right? I'd like to avoid this.
So this leaves me with the second option:
from a file with
load
But what does it mean? Does it mean reloading the file where the function is defined by executing C-x C-f
(or, alternatively, M-x revert-buffer
)?