From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#53776: Modeline indicator when using define-minor-mode Date: Fri, 04 Feb 2022 14:35:43 +0100 Message-ID: <87r18in49c.fsf@rub.de> References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27285"; 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 To: goncholden Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 14:36:40 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 1nFylS-0006uw-UH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 14:36:38 +0100 Original-Received: from localhost ([::1]:60424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFylR-0003Dv-OK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 08:36:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFykt-0003CX-Oo for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:36:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFykt-0008Bw-Fp for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:36:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFyks-0005kt-5h for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Feb 2022 13:36:02 +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.164398175422109 (code B ref 53776); Fri, 04 Feb 2022 13:36:02 +0000 Original-Received: (at 53776) by debbugs.gnu.org; 4 Feb 2022 13:35:54 +0000 Original-Received: from localhost ([127.0.0.1]:59070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFykk-0005kX-2b for submit@debbugs.gnu.org; Fri, 04 Feb 2022 08:35:54 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:35811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFyki-0005kI-83 for 53776@debbugs.gnu.org; Fri, 04 Feb 2022 08:35:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643981744; bh=erFHSbbIEruQpE74Q1OVlhyZstHGVEFFeHRzfGouCUQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=hQLhfT5vYGmyZE5fple54/kF2DFBV008yRdgM9HiPD5bHtZ/e6/j6IFO8MFOSfDeU trWWuHiLAuNu5g8inpN3RdnQPK/51O4dVu6c8fOltr/F2dmn5EJmJQauLh+FF/4cqb ZPav1WIWbJbxN9p17fArr6NUt0NA4qb2bZ+PNXGw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.125]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MoO24-1mRUdb3fLM-00ooID; Fri, 04 Feb 2022 14:35:43 +0100 In-Reply-To: <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> (goncholden@protonmail.com's message of "Fri, 04 Feb 2022 13:22:08 +0000") X-Provags-ID: V03:K1:pFNGQQdn3a0+wcgzWa9Gg9lFjYSwLMo/xxqXRlhTtJmXbsX33JB XVgnljvTMKg+Aw/3Xn2na8kwJmzaVurwUVpgaR6mQagft9FPbZ4BxobftW6Ew/ntrjQpKzv J6eeXi+N7PjHnuScTfhUpOu8D61FCqKNxRDU9xUt8mIV6zXWGDh0OZhfWFoGRgoVK86k8W8 7m/qf6tZEd7luYTHYvAiQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ep69ubByAXE=:0C114w4DqSP6E7+/1WRfmW UbcyfaZ/SzKiE0xzWZHQOFM9CNG/sPMBVX5LQtb/81AESkKZc8Zky2UaAPBupyfNwDjWcn30a 1x+lefcGn+DeqBqgr3gmy/Wx2V8Cb3aRrkYoGJVU1ze+1jCylJy4cfo4EPeCZNCphO1SFRGrh shsdmNQWU36zMhs0QIaYBFXjcEshyU1HFgUE4/A9T4gGpt4dMdeT57XFa1941Do78++Iymhez X32aL8FWM8h5ofig0KNBy8POLcaq90RKIIdD3UbXK7Xlak3vZUpXD1w4+aM3IO9v0Azex6Xk+ E3lctkvPltE951IdyRnaL0xU5JwUgV+WWc/YBIVGqks2jcZJVgauvTA+Pdd1MKPSoP7O+YrHy Hmyko1vZ3vCKdFN3C8xt3glNSXFdysnD3TicoJCX3pNZZyfIEmVI2DPZ4VWakyeSBdeuG2WLG 96GRRsKhQB8XhN/pdl0kYyNmHeSGQSFMDM+qT/ySZa44GUm+dFbLtUMh/6JBy9jB3Hdsx4uu5 e54CLl6EvuC9BBowGoltDpbj4pwOm+9INUf5O0F1xU1ccGJN3utrZoQHNQOkBwYd/t9QpJ/D1 Ap+pdWldDfYNfsHvh9H+WxlhkbY2ChGYabR/3Oxvou4TPhIpCNu+h5emNDBif2syKsEEiymQr FNhbKvDwb+N1kdvNTssRzlazGwTIcEM4urdKcAtrdLwZLW+4m1Bx5LwsrX2+T4APm4juv9N7s DXVSxIi6wlMSrj9Ce/NkwN3nhCDQlB4jyvHuBVSLOmd2Dgc/GSR5mzzPb2eSQxEcNoQz+fKB 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:225990 Archived-At: On Fri, 04 Feb 2022 13:22:08 +0000 goncholden wrote: > ------- Original Message ------- > > On Friday, February 4th, 2022 at 1:02 PM, Stephen Berman > wrote: > >> On Fri, 04 Feb 2022 11:55:45 +0000 goncholden via "Bug reports for GNU >> Emacs, the Swiss army knife of text editors" bug-gnu-emacs@gnu.org wrote: >> >> > Have been using define-minor-mode and noticed that when setting the >> > modeline indicator, the text is appended with no space between other >> > modeline indicators. Is this how :lighter is supposed to work? >> >> Yes, the lack of a space is in the definition of `mode-line-modes':` >> (:propertize ("" minor-mode-alist) >> >> I guess the reason is that you can have multiple minor mode lighters and >> providing a space between each would complicate the definition of >> `mode-line-modes', so that's the job of the minor mode definition >> itself: >> >> > (define-minor-mode rich-minor-mode >> > >> > "This is the docstring." >> > :lighter "rich" >> >> So you should do this: :lighter " rich" >> >> Steve Berman > > 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. 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. Steve Berman