[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31627: 27.0.50; isearch prompt not shown when `inhibit-message` is s
bug#31627: 27.0.50; isearch prompt not shown when `inhibit-message` is set to `t`
Tue, 29 May 2018 14:17:07 +0900
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Christian Schwarzgruber <address@hidden> writes:
> Hello Everybody!
> (setq inhibit-message t) hides isearch prompt. Is this defined behavior
> or a bug?
Its use is not intended to be set globally by users, because you don't
want to suppress all the calls to `message'; `message' is a common way
for Emacs to talk with its users, ask them for input or whatever.
Maybe something could be added in its docstring to make the point clear.
This var is mainly used by package developers in a controlled way:
typically by locally let-binding it around an expression. For example,
imagine the package `foo' having an user option
`foo-verbose' to display/suppress not very important messages:
(defcustom foo-verbose t
"If nil, suppress some messages"
(defun foo-set-vars ()
(message "Setting package variables!")
(setq foo-mint 100)
(setq foo-star -1))
(defun foo-start ()
(message "Initialisation complete!"))
(defun foo-initialize ()
(let ((inhibit-message (not verbose)))
That would be OK.
Another typical use is to suppress garbage messages
when writing tests.