Commit 33c0cb25 authored by Fabián Ezequiel Gallina's avatar Fabián Ezequiel Gallina
Browse files

* progmodes/python.el (python-info-current-defun): Fix failed

defun name retrieval because of unwanted match-data cluttering.
parent 2af3b9c1
2013-02-19 Fabián Ezequiel Gallina <fgallina@cuca>
* progmodes/python.el (python-info-current-defun): Fix failed
defun name retrieval because of unwanted match-data cluttering.
2013-02-19 Fabián Ezequiel Gallina <fgallina@cuca>
 
* progmodes/python.el (python-indent-context): Fix
......
......@@ -2976,7 +2976,10 @@ not inside a defun."
;; Else go to the end of defun and add
;; up the current indentation to the
;; ending position.
(python-nav-end-of-defun)
(save-match-data
;; FIXME: avoid cluttering match-data
;; where's not wanted.
(python-nav-end-of-defun))
(+ (point)
(if (>= (current-indentation) min-indent)
(1+ (current-indentation))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment