Enhancements for outline integration.
* lisp/progmodes/python.el (python-mode): Properly set outline-heading-end-regexp so that comments after colons for defuns are supported. Fixes: debbugs:17796
This commit is contained in:
parent
97a1ef484e
commit
3114d9e702
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2014-06-21 Fabián Ezequiel Gallina <fgallina@gnu.org>
|
||||
|
||||
Enhancements for outline integration (bug#17796).
|
||||
* progmodes/python.el (python-mode): Properly set
|
||||
outline-heading-end-regexp so that comments after colons for
|
||||
defuns are supported.
|
||||
|
||||
2014-06-21 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* skeleton.el (skeleton-insert): Doc fix.
|
||||
|
|
|
@ -3732,7 +3732,7 @@ returned as is."
|
|||
|
||||
(set (make-local-variable 'outline-regexp)
|
||||
(python-rx (* space) block-start))
|
||||
(set (make-local-variable 'outline-heading-end-regexp) ":\\s-*\n")
|
||||
(set (make-local-variable 'outline-heading-end-regexp) ":[^\n]*\n")
|
||||
(set (make-local-variable 'outline-level)
|
||||
#'(lambda ()
|
||||
"`outline-level' function for Python mode."
|
||||
|
|
Loading…
Add table
Reference in a new issue