GNU bug report logs -
#62031
29.0.60; python-mode indentation after re.match
Previous Next
Reported by: Rob Moss <robm.dev <at> gmail.com>
Date: Tue, 7 Mar 2023 08:55:01 UTC
Severity: normal
Found in version 29.0.60
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi everyone,
Thank you very much for fixing this issue. I've built Emacs 29 from
this commit (34c1443) and the indentation is now correct.
On Thu, 9 Mar 2023 at 09:46, Dmitry Gutov <dgutov <at> yandex.ru> wrote:
> > I think you might want to add a variation to this test, like this:
> >
> > from re import match
> > if match(...): pass
>
> I think this would be testing some different part of the logic (forward
> statement navigation?).
>
> Anyway, if you see any problem with indentation (with that snippet or
> not), please report.
Yes, the above example appears to depend on different logic, because
the else statement is not correctly indented in this example (results
shown after pressing <TAB>):
from re import match
def test_re(string):
if match('^[a-c]+$', string):
pass
else:
pass
Should I file this as a new bug?
Sincerely,
Rob
This bug report was last modified 2 years and 134 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.