From: Fabián Ezequiel Gallina Date: Mon, 26 Nov 2012 23:31:06 +0000 (-0300) Subject: * progmodes/python.el: X-Git-Tag: emacs-24.2.91~77 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=98f99594f7de9e6c1fd120059ed009ccf1223b50;p=emacs.git * progmodes/python.el: (python-indent-guess-indent-offset): If indentation is guessed make python-indent-offset variable buffer local. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a5ce3fcd0b2..13a1bdc0b38 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2012-11-26 Fabián Ezequiel Gallina + + * 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 Fix Imenu regression. diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index cfd3a73e1b0..7cd59c0c1b4 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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)))))))