From 0b2f550e3229c7a1b001fb1a09e7a5b4e3ecfb3e Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Mon, 9 May 2022 15:53:45 +0200 Subject: [PATCH] Fix syntax descriptor comparison in python-indent-region * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 825e94572a7..cb4be10f5cc 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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) -- 2.39.2