Friedrich Delgado writes: > emacs -Q > M-x python-mode > M-x erase-bufferyy > def foo(): > "return stuff" > > > Expected behaviour: The cursor is placed under the first quotation > mark (4 spaces indent) > > Actual behaviour: The cursor is placed at the beginning of the line. Patch attached with regression test. `python-nav-begining-of-statement' puts point on the first non-whitespace character of the statement, so it's safe to use `looking-at' here.