aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorAndrea Corallo2022-05-09 15:53:45 +0200
committerLars Ingebrigtsen2022-05-10 03:46:43 +0200
commit0b2f550e3229c7a1b001fb1a09e7a5b4e3ecfb3e (patch)
treecd7f4c1003edab00e138c4b8cbb5a6e55f8722d7 /lisp/progmodes/python.el
parentb299f173490f5c51476ad3c8436b19bb091c1b00 (diff)
downloademacs-0b2f550e3229c7a1b001fb1a09e7a5b4e3ecfb3e.tar.gz
emacs-0b2f550e3229c7a1b001fb1a09e7a5b4e3ecfb3e.zip
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).
Diffstat (limited to 'lisp/progmodes/python.el')
-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."
1297 ;; Don't mess with strings, unless it's the 1297 ;; Don't mess with strings, unless it's the
1298 ;; enclosing set of quotes or a docstring. 1298 ;; enclosing set of quotes or a docstring.
1299 (or (not (python-syntax-context 'string)) 1299 (or (not (python-syntax-context 'string))
1300 (eq 1300 (equal
1301 (syntax-after 1301 (syntax-after
1302 (+ (1- (point)) 1302 (+ (1- (point))
1303 (current-indentation) 1303 (current-indentation)