Subject: bug#15812: 24.3.50; docstring starting with "return" confuses python-mode indentation

From: Nathan Trapuzzano <[email-masked]>
Date: Wed, 06 Nov 2013 06:51:42 -0500

Friedrich Delgado <[email-masked]> writes:

> emacs -Q
> M-x python-mode
> M-x erase-buffer<RET>y<RET>y
> def foo():
>     "return stuff"
> <TAB>
>
> 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.

Ditto for "break", "continue", "pass", "raise", and "return".  These are
the words that make up `python-indent-block-enders'.