From fbd4cc631f1986a631da8619f58db2da62cbf578 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Sat, 13 Aug 2022 18:55:48 +0200 Subject: [PATCH 4/4] python-mode: Remove special outline-heading-end-regexp It doesn't work well with the new type annotation syntax introduced in Python 3.5, see bug#53913. * lisp/progmodes/python.el (python-mode): Remove buffer-local setting of outline-heading-end-regexp. --- lisp/progmodes/python.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index a373390d94..8eb28eb19e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -5854,7 +5854,6 @@ python-mode nil)) (setq-local outline-regexp (python-rx (* space) block-start)) - (setq-local outline-heading-end-regexp ":[^\n]*\n") (setq-local outline-level (lambda () "`outline-level' function for Python mode." -- 2.37.1