diff options
| author | Augusto Stoffel | 2022-08-13 18:55:48 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2022-08-19 14:59:27 +0200 |
| commit | 503112d1f01d5239b53c86fea4e12d851c185572 (patch) | |
| tree | a676725095f07ea5bd4fac6c9cd372a8969b0c5c /lisp/progmodes/python.el | |
| parent | 275cef9e06b406c6e68ec5cf9fe882ab0fde8999 (diff) | |
| download | emacs-503112d1f01d5239b53c86fea4e12d851c185572.tar.gz emacs-503112d1f01d5239b53c86fea4e12d851c185572.zip | |
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)
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 1 |
1 files changed, 0 insertions, 1 deletions
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." | |||
| 5872 | nil)) | 5872 | nil)) |
| 5873 | 5873 | ||
| 5874 | (setq-local outline-regexp (python-rx (* space) block-start)) | 5874 | (setq-local outline-regexp (python-rx (* space) block-start)) |
| 5875 | (setq-local outline-heading-end-regexp ":[^\n]*\n") | ||
| 5876 | (setq-local outline-level | 5875 | (setq-local outline-level |
| 5877 | (lambda () | 5876 | (lambda () |
| 5878 | "`outline-level' function for Python mode." | 5877 | "`outline-level' function for Python mode." |