From: Augusto Stoffel Date: Sat, 13 Aug 2022 16:55:48 +0000 (+0200) Subject: python-mode: Remove special outline-heading-end-regexp X-Git-Tag: emacs-29.0.90~1447^2~45 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=503112d1f01d5239b53c86fea4e12d851c185572;p=emacs.git 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) --- 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."