[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 503112d1f0 3/3: python-mode: Remove special outline-heading-end-r
From: |
Stefan Kangas |
Subject: |
master 503112d1f0 3/3: python-mode: Remove special outline-heading-end-regexp |
Date: |
Fri, 19 Aug 2022 09:09:48 -0400 (EDT) |
branch: master
commit 503112d1f01d5239b53c86fea4e12d851c185572
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
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 5fffb4b7d3..62fc45b2ad 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."