diff options
author | Fabián Ezequiel Gallina <fgallina@gnu.org> | 2014-06-21 08:26:43 -0300 |
---|---|---|
committer | Fabián Ezequiel Gallina <fgallina@gnu.org> | 2014-06-21 08:26:43 -0300 |
commit | 3114d9e702aada713f029cfd80f8785240c9d940 (patch) | |
tree | e20fc56bdfeae288b7940ca59265909b10429771 /lisp/progmodes/python.el | |
parent | 97a1ef484e61190deece48ee73b9b9d3b6be221c (diff) | |
download | emacs-3114d9e702aada713f029cfd80f8785240c9d940.tar.gz emacs-3114d9e702aada713f029cfd80f8785240c9d940.tar.bz2 emacs-3114d9e702aada713f029cfd80f8785240c9d940.zip |
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
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 240cf8aff8c..f127d4b7028 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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." |