0

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?

2
  • What is that function? I have no explanation other than some obscure bug but we'll need details if that is the case.
    – NickD
    Feb 3 at 15:41
  • Show your code, please.
    – Drew
    Feb 3 at 17:17

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.