summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Misc/python-mode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 61ae465..96da5de 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -1802,9 +1802,10 @@ it's tried again going backward."
(funcall (if global 'kill-local-variable 'make-local-variable)
'py-indent-offset)
(setq py-indent-offset new-value)
- (message "%s value of py-indent-offset set to %d"
- (if global "Global" "Local")
- py-indent-offset))
+ (or noninteractive
+ (message "%s value of py-indent-offset set to %d"
+ (if global "Global" "Local")
+ py-indent-offset)))
))
(defun py-comment-indent-function ()