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 15:49:26 +0100 Message-ID: <87k0ea8z61.fsf@gmx.net> References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87mtj6n1cw.fsf@rub.de> <8ZWYvwRHq37Prq6xw9c2S3yRPI9kbbpDYb3W7qU0nVFICvGWS2w_fivt55PgrbYQQaMUerAb-nHh1Frsa9auUPOVNrzKyDRyKiDmDMgQqPo=@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="40306"; 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 15:50:27 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 1nFzus-000AKE-B0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 15:50:26 +0100 Original-Received: from localhost ([::1]:60522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFzur-0003nk-2Q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 09:50:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFzuU-0003nO-58 for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 09:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFzuT-0005Me-Rv for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 09:50:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFzuT-0007cR-Jw for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 09:50:01 -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 14:50: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.164398617729254 (code B ref 53776); Fri, 04 Feb 2022 14:50:01 +0000 Original-Received: (at 53776) by debbugs.gnu.org; 4 Feb 2022 14:49:37 +0000 Original-Received: from localhost ([127.0.0.1]:59154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFzu5-0007bm-8e for submit@debbugs.gnu.org; Fri, 04 Feb 2022 09:49:37 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:36475) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFzu3-0007bW-9x for 53776@debbugs.gnu.org; Fri, 04 Feb 2022 09:49:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643986168; bh=FlbZw1N3S0H1eUqtjunmO7K1AoNr9BSj9yLyue2rL+g=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=iMK2fNhuBNDbRpw/mwWOl2iyCkDeFXPAGmwgcM2DygtmcQvOjvzIuzceR5tevhoXv KreBRV4jUr3VM3trOxZgRKorwP1XdPRtbZ2yt3FMDrVwFW0+ULret3EZTaa0A6rVKe VAnmZWDOBFW7HYG6r0vOgG/4CrJnjiacf8T7ezBg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.125]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MRmjw-1mnycX3U4I-00TDzZ; Fri, 04 Feb 2022 15:49:27 +0100 In-Reply-To: <8ZWYvwRHq37Prq6xw9c2S3yRPI9kbbpDYb3W7qU0nVFICvGWS2w_fivt55PgrbYQQaMUerAb-nHh1Frsa9auUPOVNrzKyDRyKiDmDMgQqPo=@protonmail.com> (goncholden@protonmail.com's message of "Fri, 04 Feb 2022 14:43:14 +0000") X-Provags-ID: V03:K1:WxNb2i3U/DcPvXJOIh/16MEvFAN9cmV26NwdtsyzzMkFXDvhmY5 GrmeJqlWRGcX4rOULspYptF0DnNR8C45RGS0TPfFhDzQEvxQDX4Ms7KvacnC+IItE8Klfwd UOZDA3YfXDguu4cDeRfq3uWEay0arAgtjXj6dUnqU3aogRp323o00X9wFd94q+0XawUfV24 ZpjFckqLqpZWWyxTlZ5SQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:TjglJWDMFE4=:74TnRpH3zbtPI2RXgfA+3V 2QvaUHBI4jzZzhLx+5zkuOVPW10LYXcSeCrEcU7X2+n39DEcgHP5DkQkoVtUSMFVw/PLaxQmH 400yvDYKYXCBixRLgulZuZr8wh5ozDMe7twOlmmtRR7XqFnzHFd8geZnZt+Dx3yIY9Uh8jBPD mEvjyH4AV0zcvt6ys/pEXroQ8lzEajYwnTOBZt68fwYZoKIWj/ENrErfpWIoa9rtWpt9Cn8Mr vUGT+VMqFiVK40djwnvEalTfW3XLoKs0K6mDHoWo6SXs6ch+qhXFuH8uH1HgXyMDIZ5FBR7w+ u0nZIWI/H7FKLRLqZBuSvgoxGCAUDe/1qILQ9dm0HoaSjKxhagv0ascTMQHAKYw3gEL0T/Ws3 o5Z6p0Ly97Muck3k5F2GfwoKQYJRdfVsSx+eDyKLc3wcasXpvYWi0TzrQcjyTQ1bmr4VDO5hA aWzoUiVj0c9TCbbvG1saMrI+6+uRGwwCPbQ03ZgEPUh3s7C2yyzdpTT2jKs34R4zl/mSLmmcJ Cgw+80lvQmqwximlHz9CtIcjhV2voP5ZGeciXw3KQvtdfSf5VSrjQkE8tWX2ffaaC36XiKpV8 PhUjh6CMer189Oq4sdmyOvtDhUG7OadYiX1VblVTOo8RsgBcSBn6nx83A/Zlndw4C7QQFB4qS L8/LnS/ku6ErNU2Td1j2WlMHS4ef+1hgBhAUgYZHtpIjKipVmDZTbTr1wd9x8vthpL025yRzX 7mL5SWVHga2M7moxwH6AgybKRlBlQtmLyTolpucTnng82zrk6/Q8guRZecM0H0NfdNZrUU+x 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:225999 Archived-At: On Fri, 04 Feb 2022 14:43:14 +0000 goncholden wrote: > ------- Original Message ------- > > On Friday, February 4th, 2022 at 2:38 PM, Stephen Berman > wrote: > >> On Fri, 04 Feb 2022 14:05:58 +0000 goncholden goncholden@protonmail.com wrote: >> > ------- Original Message ------- >> > >> > On Friday, February 4th, 2022 at 1:35 PM, Stephen Berman >> > stephen.berman@gmx.net wrote: >> > >> > > On Fri, 04 Feb 2022 13:22:08 +0000 goncholden goncholden@protonmail.com wrote: >> > > > ------- Original Message ------- >> > > > >> > > > On Friday, February 4th, 2022 at 1:02 PM, Stephen Berman >> > > > stephen.berman@gmx.net 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 any 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 >> > >> > Much useful. Would we be able to include such proposition for emacs? >> >> It could certainly be a feature request. In fact, maybe this bug report >> can be repurposed as such as request, since the lack of a space in the >> minor mode lighter isn't a bug per se. >> >> Steve Berman > > Anything I need to do on my part? Maybe this issue should be retitled, but let's wait and see if the maintainers react, maybe they'll prefer making a separate feature request. Steve Berman