diff options
| author | Fabián Ezequiel Gallina | 2013-02-19 15:53:57 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2013-02-19 15:53:57 -0300 |
| commit | 33c0cb2549452f1ba1c1da0a1d0e45559c0be99b (patch) | |
| tree | 6fed42c6fdc75d655f796eebce5d5defb3b693c4 /lisp/progmodes/python.el | |
| parent | 2af3b9c16e340ad034e57e949f09bbafc00bd52c (diff) | |
| download | emacs-33c0cb2549452f1ba1c1da0a1d0e45559c0be99b.tar.gz emacs-33c0cb2549452f1ba1c1da0a1d0e45559c0be99b.zip | |
* progmodes/python.el (python-info-current-defun): Fix failed
defun name retrieval because of unwanted match-data cluttering.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 49eaff637a6..1ee95daa0a9 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2976,7 +2976,10 @@ not inside a defun." | |||
| 2976 | ;; Else go to the end of defun and add | 2976 | ;; Else go to the end of defun and add |
| 2977 | ;; up the current indentation to the | 2977 | ;; up the current indentation to the |
| 2978 | ;; ending position. | 2978 | ;; ending position. |
| 2979 | (python-nav-end-of-defun) | 2979 | (save-match-data |
| 2980 | ;; FIXME: avoid cluttering match-data | ||
| 2981 | ;; where's not wanted. | ||
| 2982 | (python-nav-end-of-defun)) | ||
| 2980 | (+ (point) | 2983 | (+ (point) |
| 2981 | (if (>= (current-indentation) min-indent) | 2984 | (if (>= (current-indentation) min-indent) |
| 2982 | (1+ (current-indentation)) | 2985 | (1+ (current-indentation)) |