From: Eshel Yaron Date: Sun, 6 Oct 2024 07:00:33 +0000 (+0200) Subject: Revert "Support electric-layout-mode in python-base-mode" X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b15cdb2ee6eb697a2ff1c7fe90c8dbe24cf032aa;p=emacs.git Revert "Support electric-layout-mode in python-base-mode" This reverts commit 9b814a0268e794e6d900a9a16cb45c685b7af8c3. --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index f66e3a1724e..63064ff4de9 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -7066,11 +7066,6 @@ implementations: `python-mode' and `python-ts-mode'." (setq-local electric-indent-inhibit t) (setq-local electric-indent-chars (cons ?: electric-indent-chars)) - (setq-local electric-layout-rules - `((?: . ,(lambda () - (and (zerop (car (syntax-ppss))) - (python-info-statement-starts-block-p) - 'after))))) ;; Add """ ... """ pairing to electric-pair-mode. (add-hook 'post-self-insert-hook