From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#53776: Modeline indicator when using define-minor-mode Date: Sat, 05 Feb 2022 13:12:58 +1300 Message-ID: <909303b92c32e7cdc8510bee1c1e881b@webmail.orcon.net.nz> References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37124"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: 53776@debbugs.gnu.org, Stephen Berman To: goncholden Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 05 01:14:46 2022 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 1nG8j0-0009UP-0x for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 01:14:46 +0100 Original-Received: from localhost ([::1]:58382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG8iy-0006ox-6N for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 19:14:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG8iI-0006oV-EE for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 19:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nG8iH-0006kq-NW for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 19:14:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nG8iH-0008FM-KC for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 19:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Feb 2022 00:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53776 X-GNU-PR-Package: emacs Original-Received: via spool by 53776-submit@debbugs.gnu.org id=B53776.164401998931625 (code B ref 53776); Sat, 05 Feb 2022 00:14:01 +0000 Original-Received: (at 53776) by debbugs.gnu.org; 5 Feb 2022 00:13:09 +0000 Original-Received: from localhost ([127.0.0.1]:33255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG8hR-0008E1-1S for submit@debbugs.gnu.org; Fri, 04 Feb 2022 19:13:09 -0500 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]:32949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG8hP-0008Dr-H8 for 53776@debbugs.gnu.org; Fri, 04 Feb 2022 19:13:08 -0500 Original-Received: from [10.253.37.70] (port=56873 helo=webmail.orcon.net.nz) by smtp-3.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1nG8hG-0008Hv-Oo; Sat, 05 Feb 2022 13:12:59 +1300 Original-Received: from ip-139-180-65-103.kinect.net.nz ([139.180.65.103]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Sat, 05 Feb 2022 13:12:58 +1300 In-Reply-To: <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:226020 Archived-At: On 2022-02-05 02:22, goncholden wrote: > Because one can easily add minor-modes that exceed the mode-line > mini-buffer, is there > the capability of making a hierarchical modeline indicator. > > e.g. > > Emacs-Lisp > company > Outl > Gon -> rich > -> gudin > -> cholden I've not seen anything which looks like your example, however there are several libraries available which are designed to reclaim space in the mode-line by manipulating the appearance of the minor mode lighter text and/or major mode names. https://github.com/tarsius/minions turns the minor mode list into a menu, if you do want a (usually hidden) vertical listing. If you just want to rename (or hide) certain names, take a look at https://www.emacswiki.org/emacs/DelightedModes (or alternatively blackout.el, dim.el, or diminish.el, which are all similar). https://github.com/Malabarba/rich-minority is an approach which lets you target rendered lighters with regexps, and modify them using text properties. I haven't seen anything "hierarchical" (but then minor modes have no inherent hierarchy), however you could fake it to some extent by using conditional elements in your mode-line constructs to combine multiple lighters into a single multi-mode lighter. For example: https://stackoverflow.com/questions/23944477/emacs-how-to-consolidate-lighters-for-minor-modes -Phil