From 98f99594f7de9e6c1fd120059ed009ccf1223b50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Mon, 26 Nov 2012 20:31:06 -0300 Subject: [PATCH] * progmodes/python.el: (python-indent-guess-indent-offset): If indentation is guessed make python-indent-offset variable buffer local. --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/python.el | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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))))))) -- 2.39.5