I am attempting to navigate methods in a file. Typically these are javascript or python files, which have a classes at the "top level", which in turn have methods nested within those definitions.

When I try to navigate by defun (end-of-defun or beginning-of-defun) the cursor will often end up at the next or previous class definition, not the next or previous method.

Is this the intended behaviour? How can I navigate by the methods?

  • Not an answer, but see the doc of variable beginning-of-defun-function and command beginning-of-defun. – Drew Jul 22 '20 at 15:05

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.