From 503112d1f01d5239b53c86fea4e12d851c185572 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel Date: Sat, 13 Aug 2022 18:55:48 +0200 Subject: [PATCH] python-mode: Remove special outline-heading-end-regexp It doesn't work well with the new type annotation syntax introduced in Python 3.5. * lisp/progmodes/python.el (python-mode): Remove buffer-local setting of outline-heading-end-regexp. (Bug#53913) --- lisp/progmodes/python.el | 1 - 1 file changed, 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 5fffb4b7d3d..62fc45b2adf 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -5872,7 +5872,6 @@ REPORT-FN is Flymake's callback function." 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.39.5