emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/emacs-24 r111281: * progmodes/python.el (py


From: Fabián Ezequiel Gallina
Subject: [Emacs-diffs] /srv/bzr/emacs/emacs-24 r111281: * progmodes/python.el (python-info-current-defun): Fix failed
Date: Tue, 19 Feb 2013 15:53:57 -0300
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111281
committer: Fabián Ezequiel Gallina <address@hidden>
branch nick: emacs-24
timestamp: Tue 2013-02-19 15:53:57 -0300
message:
  * progmodes/python.el (python-info-current-defun): Fix failed
  defun name retrieval because of unwanted match-data cluttering.
modified:
  lisp/ChangeLog
  lisp/progmodes/python.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2013-02-19 03:18:32 +0000
+++ b/lisp/ChangeLog    2013-02-19 18:53:57 +0000
@@ -1,5 +1,10 @@
 2013-02-19  Fabián Ezequiel Gallina  <address@hidden>
 
+       * 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  <address@hidden>
+
        * progmodes/python.el (python-indent-context): Fix
        python-info-line-ends-backslash-p call.
        (python-info-line-ends-backslash-p)

=== modified file 'lisp/progmodes/python.el'
--- a/lisp/progmodes/python.el  2013-02-19 03:18:32 +0000
+++ b/lisp/progmodes/python.el  2013-02-19 18:53:57 +0000
@@ -2976,7 +2976,10 @@
                              ;; 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))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]