[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 0b2f550e32 1/3: Fix syntax descriptor comparison in python-indent
From: |
Lars Ingebrigtsen |
Subject: |
master 0b2f550e32 1/3: Fix syntax descriptor comparison in python-indent-region |
Date: |
Mon, 9 May 2022 21:46:50 -0400 (EDT) |
branch: master
commit 0b2f550e3229c7a1b001fb1a09e7a5b4e3ecfb3e
Author: Andrea Corallo <akrl@sdf.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
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 825e94572a..cb4be10f5c 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)