[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22661: 25.0.91; python.el electric-indent misbehaviour with 'else:'
bug#22661: 25.0.91; python.el electric-indent misbehaviour with 'else:' and nested 'if:'
Sun, 22 Jan 2017 22:34:33 +0000
Hong Xu <address@hidden> writes:
> Thanks for your suggestion, Matthew. I've now fixed it in the new patch
> as attached.
> From b9b742e15174de6abe5134427964fe4e0f852461 Mon Sep 17 00:00:00 2001
> From: Hong Xu <address@hidden>
> Date: Mon, 12 Dec 2016 17:55:25 -0800
> Subject: [PATCH] python-mode: Fix detection for opening blocks.
> * python.el (python-info-dedenter-opening-block-positions): There
> can't be any back-indented lines between an opening block and the
> current line.
I have tested this version of the patch and it fixes both cases I
I have read the new code and it looks correct to me, but I don't claim
to be very familiar with python.el .