diff options
| author | Fabián Ezequiel Gallina | 2014-06-21 08:26:43 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 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.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." | |||
| 3732 | 3732 | ||
| 3733 | (set (make-local-variable 'outline-regexp) | 3733 | (set (make-local-variable 'outline-regexp) |
| 3734 | (python-rx (* space) block-start)) | 3734 | (python-rx (* space) block-start)) |
| 3735 | (set (make-local-variable 'outline-heading-end-regexp) ":\\s-*\n") | 3735 | (set (make-local-variable 'outline-heading-end-regexp) ":[^\n]*\n") |
| 3736 | (set (make-local-variable 'outline-level) | 3736 | (set (make-local-variable 'outline-level) |
| 3737 | #'(lambda () | 3737 | #'(lambda () |
| 3738 | "`outline-level' function for Python mode." | 3738 | "`outline-level' function for Python mode." |