From: Andrea Corallo Date: Mon, 9 May 2022 13:53:45 +0000 (+0200) Subject: Fix syntax descriptor comparison in python-indent-region X-Git-Tag: emacs-29.0.90~1910^2~863 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0b2f550e3229c7a1b001fb1a09e7a5b4e3ecfb3e;p=emacs.git 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). --- 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)