all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Juri Linkov <juri@linkov.net>
Cc: joaotavora@gmail.com, 44629@debbugs.gnu.org
Subject: bug#44629: 28.0.50; Eglot noisy with gfm-view-mode and view-read-only
Date: Sun, 15 Nov 2020 21:52:24 +0000	[thread overview]
Message-ID: <87tutqi8yv.fsf@tcd.ie> (raw)
In-Reply-To: <87zh3ifjrq.fsf@mail.linkov.net> (Juri Linkov's message of "Sun,  15 Nov 2020 22:27:21 +0200")

Juri Linkov <juri@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





  reply	other threads:[~2020-11-15 21:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-14 10:58 bug#44629: 28.0.50; Eglot noisy with gfm-view-mode and view-read-only Basil L. Contovounesios
2020-11-14 11:15 ` Basil L. Contovounesios
2020-11-14 12:02   ` Eli Zaretskii
2020-11-14 12:26     ` Basil L. Contovounesios
2020-11-14 14:46       ` Eli Zaretskii
2020-11-14 15:13         ` João Távora
2020-11-15 20:27     ` Juri Linkov
2020-11-15 21:52       ` Basil L. Contovounesios [this message]
2020-11-15 23:14         ` João Távora
2020-11-17 20:15           ` Basil L. Contovounesios
2020-11-17 20:21             ` Basil L. Contovounesios
2020-11-17 22:55             ` João Távora
2020-11-28 21:27               ` Basil L. Contovounesios
2020-11-29 10:36             ` Lars Ingebrigtsen
2020-12-03 15:26               ` Basil L. Contovounesios
2020-11-16  9:14         ` Juri Linkov
2020-11-14 13:47 ` João Távora
2020-11-14 17:13   ` Basil L. Contovounesios
2020-11-15  9:55     ` João Távora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tutqi8yv.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=44629@debbugs.gnu.org \
    --cc=joaotavora@gmail.com \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.