I have a function that's broken until debugging: it returns nil which it shouldn't. After I flag it for debug and unflag it, it works correctly from then on.
Why?
I have a function that's broken until debugging: it returns nil which it shouldn't. After I flag it for debug and unflag it, it works correctly from then on.
Why?
Sorry guys, the answer was clear in hindsight: edebug also evals it so Emacs will run the function in interpreted mode, not in compiled mode.
That's the biggest reason it can behave different.
If you have the same problem, check if just using eval-defun
has the same effect.