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
Dmitry Gutov <dgutov <at> yandex.ru> writes:
> On 08/03/2023 20:10, Lele Gaifax wrote:
>> Are you going to commit that?
>
> With no further comments, I committed it with your test.
>
> Pushed to emacs-29, thanks all, and closing!
Hi Dmitry,
As I mentioned in the other subthread, there is a variation to this
issue that remains unfixed. The following test case, a slightly
modified version of the test case in your commit, has failed (tested on
7e1012765c40):
--8<---------------cut here---------------start------------->8---
(ert-deftest python-indent-after-bare-match ()
(python-tests-with-temp-buffer
"
from re import match
def test_re(string):
if match('^[a-c]+$', string):
print('yes')
else:
"
(python-tests-look-at "else:")
(should (= (python-indent-calculate-indentation) 4))))
--8<---------------cut here---------------end--------------->8---
Does it belong to this bug report? Or should I file a new bug instead?
--
Best,
RY
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.