From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#44629: 28.0.50; Eglot noisy with gfm-view-mode and view-read-only Date: Sun, 15 Nov 2020 23:14:19 +0000 Message-ID: References: <875z68p5mr.fsf@tcd.ie> <87v9e8i3yz.fsf@tcd.ie> <838sb4w3i7.fsf@gnu.org> <87zh3ifjrq.fsf@mail.linkov.net> <87tutqi8yv.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007dc51205b42d6c92" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23232"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44629@debbugs.gnu.org, Juri Linkov To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 16 00:15:23 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1keREx-0005wb-6C for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Nov 2020 00:15:23 +0100 Original-Received: from localhost ([::1]:53072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1keREw-0008TY-3d for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Nov 2020 18:15:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1keREg-0008TL-BH for bug-gnu-emacs@gnu.org; Sun, 15 Nov 2020 18:15:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1keREc-0006ex-TO for bug-gnu-emacs@gnu.org; Sun, 15 Nov 2020 18:15:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1keREc-0002iq-Hw for bug-gnu-emacs@gnu.org; Sun, 15 Nov 2020 18:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Nov 2020 23:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44629 X-GNU-PR-Package: emacs Original-Received: via spool by 44629-submit@debbugs.gnu.org id=B44629.160548207810412 (code B ref 44629); Sun, 15 Nov 2020 23:15:02 +0000 Original-Received: (at 44629) by debbugs.gnu.org; 15 Nov 2020 23:14:38 +0000 Original-Received: from localhost ([127.0.0.1]:54547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keRED-0002hs-UN for submit@debbugs.gnu.org; Sun, 15 Nov 2020 18:14:38 -0500 Original-Received: from mail-il1-f181.google.com ([209.85.166.181]:35470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1keREB-0002he-Me for 44629@debbugs.gnu.org; Sun, 15 Nov 2020 18:14:36 -0500 Original-Received: by mail-il1-f181.google.com with SMTP id t13so13479853ilp.2 for <44629@debbugs.gnu.org>; Sun, 15 Nov 2020 15:14:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J4008AVUbaiVoNveJ4mc6FIjGAU4P4WuL9rAu6bMSkA=; b=BcLID8bNsAbCedcI4SuP9if3Ke4xm2J6wO44sWYtyJpyCAYBTmfPhFoZZuyYYTyQli mPoK5eLmM3ATY85oWXwknSLeWUmpsCAopTXz2GKe/3jhsYTeCkUF7Svs3iXFJ26lJe+u YLUNLjRxDb8HC99m02uuswYw+vEqlbONIj2x6SyMeln8qjjQX8ZS+egt+QeE0nxPWmML ICdl542AahZ6bJ10l5IoPbMFP2SB1tf90UCsB+9ZK3P6gps/py08Ft/8jfi+lgHMtbSP wdAv5H0pU8p9hFoRVsA6/3JX82AGZMCKRUPumKkxo9ASlpKpupvfDSAHRXfYmAfKWYT3 WpPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J4008AVUbaiVoNveJ4mc6FIjGAU4P4WuL9rAu6bMSkA=; b=D7gB2Ybv2okTsyMQ7uIPI53sFzdeD+Nf5mzN64HSdGMFHE3wNshSdPTlCHBV+8rGTM rH8V5DANFii5s2IggTIekMIXZpmCl+yghWoCQjdadk3DtMjVuK9ENEzm/8Gg7ebtvt3m K1WcyUf8jC79Y/HiuQxygIcoOt2arAVdT4Kf6w0tRAc0Nsg5T2B7n1JIFMwPYE50nnXi 8E4yKWBA/anUrKRW4Mj0+0L8ml4a4woVPQSCWwI++s0sCIbQP8n1/oKXOW8Wbnet2Nyy F5Zac4aYmf+KyVtNfjxIZL4l5SsV3EBn/GFmuhX+Amxhnxcy8jTzt76tWShBcu8isrJL jWtg== X-Gm-Message-State: AOAM5312W2x2FQesN1odCoBaWULPbAszwsVyppYnFVObcMZ++wFWocDT Q5Yc8NydGppZMW8RXBGGSVUHol11e8cJbX03SqE= X-Google-Smtp-Source: ABdhPJxRrL3iHKJecVt04FQ8rlGR2zSxHN4OGzokBrbVu1P/Ogk8V1IPPdVZ2WTUM7523fcGc9uMAVebTRQZ+x+fuIw= X-Received: by 2002:a92:2c06:: with SMTP id t6mr6338172ile.125.1605482070261; Sun, 15 Nov 2020 15:14:30 -0800 (PST) In-Reply-To: <87tutqi8yv.fsf@tcd.ie> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193391 Archived-At: --0000000000007dc51205b42d6c92 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Nov 15, 2020 at 9:52 PM Basil L. Contovounesios wrote: > The selectivity is that I want the "View mode: ..." message to appear > most of the time, except not when Eglot is doing background processing. Exactly. Or any type of background processing, for that matter. So, if this is a principle, the check for `this-command`, as I proposed it in a patch,should suffice This doesn't change the fact that jsonrpc.el's use of `read-only-mode` should probably be replaced by a simple setting of buffer-read-only, but it could avoid the change to eglot when it calls `gfm-view-mode`. Though maybe that change could be there, too. Jo=C3=A3o --0000000000007dc51205b42d6c92 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Nov 15, 2020 at 9:52 PM Basil L. Contovounesios &l= t;contovob@tcd.ie> wrote:

= > The selectivity is that I want the "View mode: ..." message = to appear
> most of the time, except not when Eglot is doing bac= kground processing.

Exactly.=C2=A0 Or any type of = background processing, for that matter.=C2=A0
So, if this is= a principle, the check for `this-command`, as I proposed
it in a= patch,should suffice

This doesn't change the = fact that jsonrpc.el's use of `read-only-mode`
should pr= obably be replaced by a simple setting of buffer-read-only,
but i= t could avoid the change to eglot when it calls `gfm-view-mode`.
= Though maybe that change could be there, too.

= Jo=C3=A3o
--0000000000007dc51205b42d6c92--