mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
(py-guess-indent-offset): Only print message about py-indent-offset
when in an interactive session (suggested by B. Wiener).
This commit is contained in:
parent
02e5f69c90
commit
d35c255e44
1 changed files with 4 additions and 3 deletions
|
@ -1802,9 +1802,10 @@ it's tried again going backward."
|
||||||
(funcall (if global 'kill-local-variable 'make-local-variable)
|
(funcall (if global 'kill-local-variable 'make-local-variable)
|
||||||
'py-indent-offset)
|
'py-indent-offset)
|
||||||
(setq py-indent-offset new-value)
|
(setq py-indent-offset new-value)
|
||||||
(message "%s value of py-indent-offset set to %d"
|
(or noninteractive
|
||||||
(if global "Global" "Local")
|
(message "%s value of py-indent-offset set to %d"
|
||||||
py-indent-offset))
|
(if global "Global" "Local")
|
||||||
|
py-indent-offset)))
|
||||||
))
|
))
|
||||||
|
|
||||||
(defun py-comment-indent-function ()
|
(defun py-comment-indent-function ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue