]> code.delx.au - gnu-emacs/commitdiff
* progmodes/python.el (python-info-current-defun): Fix failed
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Tue, 19 Feb 2013 18:53:57 +0000 (15:53 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Tue, 19 Feb 2013 18:53:57 +0000 (15:53 -0300)
defun name retrieval because of unwanted match-data cluttering.

lisp/ChangeLog
lisp/progmodes/python.el

index f99cab9edbf11c6dcc8fc9a9d8d880e5d2a56853..390c825ad0a95be3b1f1b56f04fc79dc3a48aeea 100644 (file)
@@ -1,3 +1,8 @@
+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
index 49eaff637a60dcf6b7281400f428040665df8375..1ee95daa0a95a1222071b4f851aa78df6a97fde8 100644 (file)
@@ -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))