]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix syntax descriptor comparison in python-indent-region
authorAndrea Corallo <akrl@sdf.org>
Mon, 9 May 2022 13:53:45 +0000 (15:53 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 10 May 2022 01:46:43 +0000 (03:46 +0200)
* lisp/progmodes/python.el (python-indent-region): Compare raw
syntax descriptors with equal (bug#45328) (because comparing them with
eq will always be false).

lisp/progmodes/python.el

index 825e94572a76a316de6e5a377f69705881c1474a..cb4be10f5ccfebf94c70747063bcdf244e39df39 100644 (file)
@@ -1297,7 +1297,7 @@ Called from a program, START and END specify the region to indent."
                    ;; Don't mess with strings, unless it's the
                    ;; enclosing set of quotes or a docstring.
                    (or (not (python-syntax-context 'string))
-                       (eq
+                       (equal
                         (syntax-after
                          (+ (1- (point))
                             (current-indentation)