defun name retrieval because of unwanted match-data cluttering.
+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
;; 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))