projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
275cef9
)
python-mode: Remove special outline-heading-end-regexp
author
Augusto Stoffel
<arstoffel@gmail.com>
Sat, 13 Aug 2022 16:55:48 +0000
(18:55 +0200)
committer
Stefan Kangas
<stefankangas@gmail.com>
Fri, 19 Aug 2022 12:59:27 +0000
(14:59 +0200)
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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index 5fffb4b7d3d4920b3c26f75d0575bd4d4991da51..62fc45b2adf6977a23c8e71dc95cc00ed656a850 100644
(file)
--- 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."