(error "You must be before a list form")

I instrument a function in emacs. Now, this function is calling some other function. I try to step into this new function using the shortcut key i (step-into-function). Emacs throws an error, with this message -

You must be before a list form

The irony is, for forms emacs evaluate, it always places the cursor at the end of a form like this, cursor-position So, why doesn't edebug step-in work properly?

Since my cursor keeps blinking, i have put a black mark for cursor instead of the usual white mark.

  • 1
    Did you try doing what the error message suggests? (I.e. moving the point before the parenthesis which surround the function you want to step into?) – wvxvw Apr 21 '15 at 17:20
  • the point is controlled by the debugger... user doesn't move the point... even if the user moves the point, the debugger will take the control from the place where it left... – Madhavan Apr 21 '15 at 17:21
  • I just tried and I can move the point without a problem, and the debugger will step into the function which is called immediately after the point. I'm using Emacs though, it could've been different before, but, to the best of my memory you could always just move the point in the debug mode and step into the selected function. Maybe you were trying to step into setq? Which is defined in C code, and isn't really a function. – wvxvw Apr 21 '15 at 17:33
  • my issue is seen with elisp coded functions. i used edebug-defun to instrument a function and then move form by form using next shortcut letter - n inside the instrumented function? are you using the same method? – Madhavan Apr 21 '15 at 17:37
  • and do i need to instrument the function manually that i plan to step into? – Madhavan Apr 21 '15 at 17:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.