From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Flymake, compilation-mode lighters very noisy Date: Mon, 19 Nov 2018 17:36:10 +0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1542623669 29769 195.159.176.226 (19 Nov 2018 10:34:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Nov 2018 10:34:29 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 19 11:34:25 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOgsr-0007fW-6K for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2018 11:34:25 +0100 Original-Received: from localhost ([::1]:55186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOgux-0001gK-Ll for ged-emacs-devel@m.gmane.org; Mon, 19 Nov 2018 05:36:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gOgul-0001gE-GL for emacs-devel@gnu.org; Mon, 19 Nov 2018 05:36:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gOguk-0003e3-Ph for emacs-devel@gnu.org; Mon, 19 Nov 2018 05:36:23 -0500 Original-Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]:35166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gOguk-0003dq-Lc for emacs-devel@gnu.org; Mon, 19 Nov 2018 05:36:22 -0500 Original-Received: by mail-ot1-x334.google.com with SMTP id 81so27198428otj.2 for ; Mon, 19 Nov 2018 02:36:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=Iml1jf+mjMORYU2yWc/8rpGp7xlCajuiOvKJCYmsmpc=; b=o0d6IPzBzLQIm846+/jUJ0+3Hdc3eujdunG/6uuwsWBM2hNd5jYV9P6c/yJosD22Nb Wn6KpHmK+eNKLXRBAU6HMtOUEmCEGtFwl+7Ca0CH/pGxCGMPYZVaru5MVSdUo7b4OI+C EfoIDBc70Ey7ClOM6dOYJfTk2EOCPP4ZQcOInqfECQfm8bmVAanloftCR56+AnyYSZB/ tWr0Ci+7T/v3xaHJe+FUzHZG7v3tLZT58yl9txFIrQ0OsxGyb0As/fwoaZl+1FGu2wcv 95KoebqqhhMGlcnbKoEKCH1NqoBWsOrMpGv3Bt8VEVOgrMvGURlihnrdxCCQNAXwu0z/ SFrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=Iml1jf+mjMORYU2yWc/8rpGp7xlCajuiOvKJCYmsmpc=; b=pSYUe4hXk6vlA3VImUnQza8D3hSQ3jCuhkCnmC2H+jWa87n3UeIlpRXymxrmZVt7FO Y31jY51S/9hyfvHPxWXfnkMSMLbr6CNDfT74VEJIpR5cSdsh2d4m1qgLJ8dH3mGwEtZO GlLGULNItjoH7MIXqMUw/j7LU7ZE1V9ZykOxOfbGw++eAy4qJvUhaqm8GEVSefNFoaSf EFAv5pz8nTDhBRy50VNanJac0FdrXgeNCToACRgLC9Qe4MX01HTLZ2n9o1AEcfe9QDpG 3ywl6Qp9BP99GHAiBZJX7Gr1MQcSb/sa9tHcEuqF3eg1IX4ZJ0LTgOOlpvQKmakauJPr QKXw== X-Gm-Message-State: AGRZ1gKQEhWnJ+bfmnxJQxprssA3Kaj6H8C0AG9ET3JJSlcj3RUoT3xW fyLB1nfeTeUCiW+Q4S2eO+2lsI1ax//ObvooYz0eBw== X-Google-Smtp-Source: AJdET5fUjXzAWow4bJNNLDIobNRkJbqMLY3ZrCf/q+/cu7zga4z3kk6ctvJ931HOzv7DriqzHCiFooAs3MjLPE4eiJ0= X-Received: by 2002:a9d:411:: with SMTP id 17mr12375590otc.78.1542623781517; Mon, 19 Nov 2018 02:36:21 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::334 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231227 Archived-At: Hello, I was fiddling with my Python development environment to start using python-language-server, and settled on Eglot as a novice-friendly LSP client. Now, one side effect of Eglot is that it enables Flymake unconditionally. Not that I mind, no; actually, I find it very convenient that potential bugs are highlighted as soon as I create them. What I do mind, though, is these two menacing eyes staring at me from the mode line. =E2=80=A6 (Python yas WS SP Flymake[0 0] Projectile[=E2=80=A6] ARev ElD= oc) =E2=86=97 =E2=86=96 bold bright red bold yellow (seriously though, I just find bright/high-constrast spots in my peripheral vision distracting.) Compilation-mode has the same issue, with as many as four eyes: =E2=80=A6 (Compilation:exit [0] [0 0 0]) =E2=86=97 =E2=86=97 =E2=86=97 =E2=86=91 =E2=86=96 green red | green yellow I understand the motivation: provide instant error, warning and info counters, and use color coding to avoid having to explain which counter is for which severity level. However, I wonder if zero counters could be skipped in the mode line. After all, they have nothing to say; they shouldn=E2=80=99t be yelling abou= t that. IMHO. In the case of compilation-mode, I can redefine the =E2=80=98compilation-mode-line-errors=E2=80=99 variable easily enough; it= =E2=80=99s just a mode line fragment referencing a few variables. Flymake, though, delegates the work to the function =E2=80=98flymake--mode-line-format=E2=80=99, which is pretty involved (110 = lines of code). Not much I can do with that, as a user, except copy-pasting that function into my init.el with a minor change. Thoughts?