aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-11-26 20:31:06 -0300
committerFabián Ezequiel Gallina2012-11-26 20:31:06 -0300
commit98f99594f7de9e6c1fd120059ed009ccf1223b50 (patch)
tree070e2676567e1d9ecc64752720ca23a921b8d1b2 /lisp/progmodes/python.el
parent207cb73c182d432a00fef797428d3b79ab519287 (diff)
downloademacs-98f99594f7de9e6c1fd120059ed009ccf1223b50.tar.gz
emacs-98f99594f7de9e6c1fd120059ed009ccf1223b50.zip
* progmodes/python.el:
(python-indent-guess-indent-offset): If indentation is guessed make python-indent-offset variable buffer local.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el2
1 files changed, 1 insertions, 1 deletions
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
647 (python-util-forward-comment) 647 (python-util-forward-comment)
648 (current-indentation)))) 648 (current-indentation))))
649 (if indentation 649 (if indentation
650 (setq python-indent-offset indentation) 650 (set (make-local-variable 'python-indent-offset) indentation)
651 (message "Can't guess python-indent-offset, using defaults: %s" 651 (message "Can't guess python-indent-offset, using defaults: %s"
652 python-indent-offset))))))) 652 python-indent-offset)))))))
653 653