GNU bug report logs - #15812
24.3.50; docstring starting with "return" confuses python-mode indentation

Previous Next

Package: emacs;

Reported by: Friedrich Delgado <friedel <at> nomaden.org>

Date: Tue, 5 Nov 2013 16:56:02 UTC

Severity: normal

Tags: patch

Found in version 24.3.50

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


Message #11 received at 15812 <at> debbugs.gnu.org (full text, mbox):

From: Nathan Trapuzzano <nbtrap <at> nbtrap.com>
To: Friedrich Delgado <friedel <at> nomaden.org>
Cc: 15812 <at> debbugs.gnu.org
Subject: Re: bug#15812: 24.3.50;
 docstring starting with "return" confuses python-mode indentation
Date: Wed, 06 Nov 2013 06:51:42 -0500
Friedrich Delgado <friedel <at> nomaden.org> 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'.




This bug report was last modified 11 years and 223 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.