Subject: bug#44629: 28.0.50; Eglot noisy with gfm-view-mode and view-read-only

From: Juri Linkov <[email-masked]>
Date: Mon, 16 Nov 2020 11:14:56 +0200

>> Inhibiting messages selectively was discussed in bug#42865
>>
>>   (defcustom inhibit-message-regexp "^View mode: type"
>>     "Regexp to inhibit messages."
>>     :type 'regexp)
>>
>>   (defun inhibit-message-function (message)
>>     (string-match-p inhibit-message-regexp message))
>>
>>   (setq set-message-function 'inhibit-message-function)
>
> The selectivity is that I want the "View mode: ..." message to appear
> most of the time, except not when Eglot is doing background processing.

I agree - the primary intention was to use this for user customization
in bug#42865.