From: Barry Warsaw Date: Fri, 25 Sep 1998 00:08:38 +0000 (+0000) Subject: (py-guess-indent-offset): Only print message about py-indent-offset X-Git-Tag: v1.5.2a2~251 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d35c255e44e64db7323ef278dd3c5da35808785f;p=python (py-guess-indent-offset): Only print message about py-indent-offset when in an interactive session (suggested by B. Wiener). --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 61ae46518b..96da5de7e8 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 ()