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#33740: [PATCH] Customizable flymake mode-line indicator Date: Wed, 30 Dec 2020 09:28:22 +0000 Message-ID: References: <87bm4wjhgy.fsf@gmail.com> <87lfdhgy2p.fsf@gnus.org> <87bledgxql.fsf@gnus.org> <87tus4g0ga.fsf@gmail.com> <8735zou1yh.fsf@gnus.org> <87ft3oq8pn.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39095"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 33740@debbugs.gnu.org, Andrii Kolomoiets To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 30 10:29:10 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 1kuXn3-000A3G-SX for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 10:29:09 +0100 Original-Received: from localhost ([::1]:36382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kuXn2-0003v1-O1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Dec 2020 04:29:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kuXmw-0003up-7O for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 04:29:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kuXmw-0008O3-01 for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 04:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kuXmv-0008Ia-Sp for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2020 04:29:01 -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: Wed, 30 Dec 2020 09:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33740 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch Original-Received: via spool by 33740-submit@debbugs.gnu.org id=B33740.160932052731880 (code B ref 33740); Wed, 30 Dec 2020 09:29:01 +0000 Original-Received: (at 33740) by debbugs.gnu.org; 30 Dec 2020 09:28:47 +0000 Original-Received: from localhost ([127.0.0.1]:40912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuXmg-0008I7-NP for submit@debbugs.gnu.org; Wed, 30 Dec 2020 04:28:47 -0500 Original-Received: from mail-il1-f181.google.com ([209.85.166.181]:41535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuXme-0008Ht-0d for 33740@debbugs.gnu.org; Wed, 30 Dec 2020 04:28:45 -0500 Original-Received: by mail-il1-f181.google.com with SMTP id w17so14305976ilj.8 for <33740@debbugs.gnu.org>; Wed, 30 Dec 2020 01:28:43 -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:content-transfer-encoding; bh=WdRwpYyZPiyFtWdYZxOM5vKJ8MDhgeSJGTcXr38FRFg=; b=u1emF7xcYGnrS1YH9Sexk61la/QTdBvC7+aoNrCECOCwEOfA/kwZh2L+akt4emXbFR ge9V/jJQYTy3zERwtc4NOm3OIOxyB0/nsnaRxGyzJNBHrRWV9FzBcZH6URaR6SKAGem1 VvRpVLgR09cGfjpg3491785YJdkSmb4FPTqgyTnnO4lzgTiYn+cpQ7To49HNmJX1lCZi Y/e7tWTyTIp0tIhNn7DeT42SLDHo/b9TWIFYLasQ/2ex+XmzUbLEGA2+U+ETXxQk+D+q DILvHdVXGGS73yB7DcDxRb3InKFYqnsxjqkgi9xct1C1bxCUVjujO02AaHnU8hKUjXtI Q9wg== 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:content-transfer-encoding; bh=WdRwpYyZPiyFtWdYZxOM5vKJ8MDhgeSJGTcXr38FRFg=; b=sLUAOVKNmKKIAoK2fOmALF8bdz2QhGOGMPmxOFJt9I+rbzO8GZBuVkYPZh/DGBM8Uz gZyDKPcpdLEvERbvGMqAkePNrr5T1ekXoKa/0IqH2nMyXdHygnm4FMwrLN88fWdHJn8K eKaxeg7W/x3cQ4Hy+BLsUKZE6xbuQSxDdolIWMYqVUc8oDM8mNkTAR6qSX6PqnJGDpAN fI0+B0p2nj1AZKAgjeW+3pkNJV7bNqluHXH0Aya2utK4ASX7G39vsGfmbF1V7+tKxl2g G+l0gLgPcDTzDb/Wi3Nx6NKmQoh0/lXTifneFZW9JyZNqqXzkSmq3era3G4svE8AA0y3 2CAg== X-Gm-Message-State: AOAM533ypXc3HuG/sNDlkfCr1bGuWRUyJdRZ2kqnot8kQ/2dEY8Nd2E/ bfpM3CRsxIaXvA+eAk8ntuIyH/miTMRVE4dxpYI= X-Google-Smtp-Source: ABdhPJypghPBpxImrPl+GfxzP1fDR1/VM9SBAAjGhiVL93WKRncdnyQ8Dg7RFjyuYvtBijQr4rYJaCcCt0AXIV1z/Q0= X-Received: by 2002:a92:4089:: with SMTP id d9mr46251370ill.199.1609320518428; Wed, 30 Dec 2020 01:28:38 -0800 (PST) In-Reply-To: <87ft3oq8pn.fsf@gnus.org> 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:197013 Archived-At: On Wed, Dec 30, 2020 at 3:22 AM Lars Ingebrigtsen wrote: > > Jo=C3=A3o T=C3=A1vora writes: > > > How is it more feasible to ask her to write such customizations > > inside a string than asking her to write the same customizations > > in a symbolic expression? > > Format spec strings is the common idiom for customising display stuff in > Emacs. Not all of this "stuff" obviously, only the fraction of it that is trivial. Case in point, the very commonly customized mode-line. I appreciate the effort to try to move this along, but if you'd be more aware of Flymake's mode-line mechanics, you'd see the format-spec function is underpowered currently I mean, it _could_ become more powerful. See CL:FORMAT for example (some love it, some hate it, I respect and use it on occasion). It could do the job easily, because it has conditional formatting: http://www.lispworks.com/documentation/HyperSpec/Body/22_cgb.htm So, unless format spec grows something similar, it simply isn't the tool for the job. What growth? See the end of: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33740#71 in this thread for a possible start. > > I don't understand your "don't care" comment. You don't care > > for enhancing format-spec to allow for conditional formattings. > > Whether Flymake offers a way to customise the lighter (or not) is up to > you. I've started work on a `flymake-mode-line` customizable var, where users can add and removed pre-baked pieces to control the main indicator, counters, brackets, etc. If you're interested in enhancing format-spec, let me know, else I'll continue this approach. Jo=C3=A3o