GNU bug report logs - #62092
30.0.50; "case" does not work as dedenter in Python

Previous Next

Package: emacs;

Reported by: kobarity <kobarity <at> gmail.com>

Date: Fri, 10 Mar 2023 05:34:01 UTC

Severity: normal

Found in version 30.0.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>
To: kobarity <kobarity <at> gmail.com>
Cc: Lele Gaifax <lele <at> metapensiero.it>, 62092 <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: bug#62092: 30.0.50; "case" does not work as dedenter in Python
Date: Mon, 14 Aug 2023 17:12:15 +0200
The test python-info-dedenter-opening-block-positions-7 added as part of this bug in 8f42db010d ends with

+   (equal (list (python-tests-look-at "case 2:" -1)
+                (python-tests-look-at "case 1:" -1 t))
+            (python-info-dedenter-opening-block-positions))))

which, as you can see, isn't actually a check; the `equal` result is thrown away.
(Emacs master was just changed to detect this, so there is a byte-compiler warning.)

Unfortunately, wrapping the call in `should` fails, so there is more to it.
Would you please take a look?





This bug report was last modified 1 year and 282 days ago.

Previous Next


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