]> git.eshelyaron.com Git - emacs.git/commitdiff
* progmodes/python.el:
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 26 Nov 2012 23:31:06 +0000 (20:31 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 26 Nov 2012 23:31:06 +0000 (20:31 -0300)
(python-indent-guess-indent-offset): If indentation is guessed
make python-indent-offset variable buffer local.

lisp/ChangeLog
lisp/progmodes/python.el

index a5ce3fcd0b2ca497d9fff67a252ef8e08ac38fb7..13a1bdc0b38c646e7ac44191131324813941ada0 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-26  Fabián Ezequiel Gallina  <fgallina@cuca>
+
+       * progmodes/python.el:
+       (python-indent-guess-indent-offset): If indentation is guessed
+       make python-indent-offset variable buffer local.
+
 2012-11-26  Fabián Ezequiel Gallina  <fgallina@cuca>
 
        Fix Imenu regression.
index cfd3a73e1b0d8421ffadf5b73a5f788ed57b672f..7cd59c0c1b42cad0e41909d11107d0544c98ef0a 100644 (file)
@@ -647,7 +647,7 @@ These make `python-indent-calculate-indentation' subtract the value of
                  (python-util-forward-comment)
                  (current-indentation))))
           (if indentation
-              (setq python-indent-offset indentation)
+              (set (make-local-variable 'python-indent-offset) indentation)
             (message "Can't guess python-indent-offset, using defaults: %s"
                      python-indent-offset)))))))