From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#53776: Modeline indicator when using define-minor-mode Date: Sun, 06 Feb 2022 04:39:54 +0100 Message-ID: <87iltsmzn9.fsf@web.de> References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31067"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53776@debbugs.gnu.org, goncholden To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 06 04:41:11 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 1nGYQI-0007zw-V8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Feb 2022 04:41:10 +0100 Original-Received: from localhost ([::1]:51438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGYQH-0008Kr-IJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Feb 2022 22:41:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGYQA-0008KV-B8 for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 22:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGYQA-0001Ey-1f for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 22:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGYQ9-00089S-S6 for bug-gnu-emacs@gnu.org; Sat, 05 Feb 2022 22:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Feb 2022 03:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53776 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 53776-submit@debbugs.gnu.org id=B53776.164411880531251 (code B ref 53776); Sun, 06 Feb 2022 03:41:01 +0000 Original-Received: (at 53776) by debbugs.gnu.org; 6 Feb 2022 03:40:05 +0000 Original-Received: from localhost ([127.0.0.1]:36107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGYPF-00087y-6d for submit@debbugs.gnu.org; Sat, 05 Feb 2022 22:40:05 -0500 Original-Received: from mout.web.de ([212.227.17.12]:35899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGYPC-00087O-SB for 53776@debbugs.gnu.org; Sat, 05 Feb 2022 22:40:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1644118795; bh=J7Bd8mSHRrqTB/ztowvChOl+4EeHahAXk8CI1Ct+lVE=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=ZjzEJeSsWNfJpZ3/fSacUkS0fcgiI2+z05zMsX+GzWTMsrmjIMPUdthixsVBOXyor ApPir1JJG8rp+zAEmYOwjRtEXGvWLmMug+TK/0aozOTD+F+lCOuq39qRW+UbZCZXiD Bz/I7ykGXnk7+XrHVJ6aDoXp9v+B17NfY+TdtEns= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.57.248.31]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MlsKH-1mXtvc0TPX-00j0Xv; Sun, 06 Feb 2022 04:39:55 +0100 In-Reply-To: <87r18in49c.fsf@rub.de> (Stephen Berman's message of "Fri, 04 Feb 2022 14:35:43 +0100") X-Provags-ID: V03:K1:NivKgZCvr+19t5N/vciovzxMVfvmfb/WKtMRfFMKsWaBbj8HPhk dwnsK3tz9Fvbew882l0Z7wjsysHbgbk4hsnspl2lBV7IvCCb+RQUHU2FxBPaayF8K9lffYr vVOqXdTL37CJTankqJkdQicYNVSW2LKNS6VL/K6FAfAyv9DMykqlJ9dR0RwXTMd2v3eIzJy ByA+CUGaQ6yGo+VDfjubg== X-UI-Out-Filterresults: notjunk:1;V03:K0:WtfR2Ov/duo=:1IqTZQEFgC//RBJmu/eEHf b01yve9ZxnEK6beCdcPJ6lfBm3NYJdbH0QCUmn1RDFZlxtK2MfwaAJHFxI2PTTcUfJUwm2uQw /Q4IAkmm5/SAJNj0bQpaZ43Vovk2TvLxz7Aq4xUp6H3jP2zoLyTHWtl3wjUuly4zPYsdUgwo3 Y+o40mj81n3RLQ286vN56N65o3H+NXU7WMBC/4Vgi4zjU93RBR+T0GHHjhpBs+39SgoG0WbbR wnrB3Txwhf6ml1trS+xVZPFdeAtAM4wPPsYTHO9P9/2qqXfe0lMUOEgSKjrDczuTqM/koBmiO GZz6PUYsiamzCGPyyfQVcndXxvKArma1gyltnqGlgWBPzlH64Jrc5CoA+0g52+xDMNGs0jGYH 5/lBtnSMSwSyi4Mnue+56PX0WcbU1kXSyToLkRsXg2YlpquITM9OKsfqZ7xv++/18w0leHVo/ 63VCK9425/ET7Pnc/cAzn1iMlrPz/BwiFqJq95g2t069osDHCcHuUUni64KW5cmb1985q/RN3 L1bJZBVCcOUaRj04+hiNDL5w2o4Eryt+MEHZOgfE8xkC9VpbXcjXsC+x9Di96LmV9bby9WXXO FopiPitUte0/FjBaU6k+miwddZzgtDlTKZf6Nvvt4cfpcGfXX/RCY0X4EJj5ZMk4Fd9+1T53G JThk0ch3UNfmR5J4r4sCTgQI1cDjppiRJ2ogWpg+yF3F3hQbitiBegZACB01PPbVqfIPzrgJ0 6q6wESe4SWwtZJKjjHDwWLNI28ML9JMhVdxC2D41CimTgh2qIRIMOE366sQ4nnte1xqzMNeo 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:226130 Archived-At: Stephen Berman writes: > > 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 > > That would appear to require a multiline mode line, which is not > possible with the current implementation. Maybe goncholden wants to visualize alternative "submodes". That's possible: the :lighter can be any modeline construct so you can do anything here the modeline supports, e.g. using :eval. See the definition of `emacs-lock-mode' for an example. > An alternative, which might be easier to implement (for someone who > knows how, not me), would be to make the mode line horizontally > scrollable. But maybe that's not so easy, since it seems so obviously > useful, yet hasn't been implemented. It's not hard to achieve, no. But it replaces something that is too crowded to be useful with something scrollable that is too crowded to be useful. I tried it once and was very disappointed - a modeline you need to scroll to see everything is worse than using a help command like C-h m. There are better alternatives: The more you use Emacs, the more the minor modes you use don't change any more. Better choose one of the available ways to make the mode indicator less longish in appearance. Michael.