summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2022-05-09 15:53:45 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-05-10 03:46:43 +0200
commit0b2f550e3229c7a1b001fb1a09e7a5b4e3ecfb3e (patch)
treecd7f4c1003edab00e138c4b8cbb5a6e55f8722d7
parentb299f173490f5c51476ad3c8436b19bb091c1b00 (diff)
downloademacs-0b2f550e3229c7a1b001fb1a09e7a5b4e3ecfb3e.tar.gz
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).
-rw-r--r--lisp/progmodes/python.el2
1 files changed, 1 insertions, 1 deletions
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)