Mercurial > cpython-lru_cache-weakref
diff Misc/python-mode.el @ 9142:98dc675d0913 legacy-trunk
(py-guess-indent-offset): Only print message about py-indent-offset
when in an interactive session (suggested by B. Wiener).
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Fri, 25 Sep 1998 00:08:38 +0000 |
| parents | 881b86398c20 |
| children | 520583bdf0b0 |
line wrap: on
line diff
--- a/Misc/python-mode.el Thu Sep 24 23:48:40 1998 +0000 +++ b/Misc/python-mode.el Fri Sep 25 00:08:38 1998 +0000 @@ -1802,9 +1802,10 @@ (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 ()
