From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53776: Modeline indicator when using define-minor-mode Date: Fri, 04 Feb 2022 14:05:58 +0000 Message-ID: References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> Reply-To: goncholden 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="9976"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53776@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 15:29:03 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 1nFzaB-0002OX-7P for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 15:29:03 +0100 Original-Received: from localhost ([::1]:40510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFzaA-0005be-7Q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 09:29:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFzF9-0007qc-Og for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 09:07:20 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFzEs-0005WI-F2 for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 09:07:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFzEs-0006Z3-Ak for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 09:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: goncholden Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Feb 2022 14:07: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.164398357125168 (code B ref 53776); Fri, 04 Feb 2022 14:07:02 +0000 Original-Received: (at 53776) by debbugs.gnu.org; 4 Feb 2022 14:06:11 +0000 Original-Received: from localhost ([127.0.0.1]:59112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFzE3-0006Xs-HI for submit@debbugs.gnu.org; Fri, 04 Feb 2022 09:06:11 -0500 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]:13255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFzE0-0006X6-2O for 53776@debbugs.gnu.org; Fri, 04 Feb 2022 09:06:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643983561; bh=alJHcwc13OPXCUhiay9gbX5N7Oo0YA/iAz3IbRaKqLE=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=hV7n4Zw+gn/z1RgCia7rtRKUpdNFjsFvpMThNixIHOGIf7jWrYNEc2+etAq1Nb7DM wr3giN2YjgeX0SUBjMBKdFCzVfXGjr1wvi1nA0X/WWgVvF6B5r57SaaIZ/eKnRLYzf NvZ+nOdf6B8wTtt7EcBci4sXS2oa1H65GPNxecHZ8V3o6HyEZ33wdwIPJgfrW7VgMg /IA00vJ4g8j4wavclk/iUK8qky0JatdPnNCfOO+FAq0In9zbhJxcJSf6na30yIvRZt FzecqrWwVeoXMhpXFeSsHHkyZGSI1qaxTrnUnJpnYFisq6ZEHNkcKklM/AC2UxNPsN SJyC78t5Le41g== In-Reply-To: <87r18in49c.fsf@rub.de> 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" X-ACL-Warn: , goncholden Xref: news.gmane.io gmane.emacs.bugs:225994 Archived-At: ------- Original Message ------- On Friday, February 4th, 2022 at 1:35 PM, Stephen Berman wrote: > On Fri, 04 Feb 2022 13:22:08 +0000 goncholden goncholden@protonmail.com w= rote: > > > ------- 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 GN= U > > > > > > Emacs, the Swiss army knife of text editors" bug-gnu-emacs@gnu.org wr= ote: > > > > > > > Have been using define-minor-mode and noticed that when setting the > > > > modeline indicator, the text is appended with no space between othe= r > > > > 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-b= uffer, > > 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 Much useful. Would we be able to include such proposition for emacs?