GNU bug report logs -
#44629
28.0.50; Eglot noisy with gfm-view-mode and view-read-only
Previous Next
Reported by: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Date: Sat, 14 Nov 2020 10:59:02 UTC
Severity: minor
Tags: fixed, patch
Found in version 28.0.50
Fixed in version 28.1
Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Bug is archived. No further changes may be made.
Full log
Message #35 received at 44629 <at> debbugs.gnu.org (full text, mbox):
Juri Linkov <juri <at> linkov.net> writes:
>> Can what you want be achieved by setting set-message-function to
>> something suitable?
>
> Inhibiting messages selectively was discussed in bug#42865
> where I forgot that this is indeed easily implementable
> with the help of set-message-function, e.g.:
>
> (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 therefore don't see how this set-message-function is any different to
the other ways of silencing the message that were already mentioned in
this thread. There are many ways of silencing the message, but they
have to be installed somewhere non-globally.
I'll try to write a patch for that tomorrow if no-one else beats me to
it.
Thanks,
--
Basil
This bug report was last modified 4 years and 229 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.