bug-gnu-emacs
[Top][All Lists]
Advanced

[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


From: Tino Calancha
Subject: bug#31627: 27.0.50; isearch prompt not shown when `inhibit-message` is set to `t`
Date: Tue, 29 May 2018 14:17:07 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Christian Schwarzgruber <c.schwarzgruber.cs@gmail.com> 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"
  :type 'boolean
  :group 'foo)

(defun foo-set-vars ()
  (message "Setting package variables!")
  (setq foo-mint 100)
  (setq foo-star -1))

(defun foo-start ()
  (foo-procastinate-response)
  (message "Initialisation complete!"))
  
(defun foo-initialize ()
  (let ((inhibit-message (not verbose)))
    (foo-set-vars)
    (foo-start)))

That would be OK.
Another typical use is to suppress garbage messages
when writing tests.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]