aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorkobarity2022-11-07 22:24:44 +0900
committerEli Zaretskii2022-11-10 12:23:52 +0200
commitf8df45f853752bb842af453dd05ccb64d990b767 (patch)
treec4a398d67b63023f9e4e8c30c4ca3672693bd7c6 /lisp/progmodes/python.el
parentf7694c80d3ec67b4e79dd240fa7e5d9f1b0f9256 (diff)
downloademacs-f8df45f853752bb842af453dd05ccb64d990b767.tar.gz
emacs-f8df45f853752bb842af453dd05ccb64d990b767.zip
Fix indentation for multi-line block start in Python mode
* lisp/progmodes/python.el (python-info-dedenter-opening-block-positions): Fix for multi-line block start. * test/lisp/progmodes/python-tests.el (python-info-dedenter-opening-block-positions-6): New test. (Bug#59009)
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index cec0d54a447..a734e06149e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -5377,6 +5377,7 @@ likely an invalid python file."
5377 ;; block and the current line, otherwise it 5377 ;; block and the current line, otherwise it
5378 ;; is not an opening block. 5378 ;; is not an opening block.
5379 (save-excursion 5379 (save-excursion
5380 (python-nav-end-of-statement)
5380 (forward-line) 5381 (forward-line)
5381 (let ((no-back-indent t)) 5382 (let ((no-back-indent t))
5382 (save-match-data 5383 (save-match-data