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 13:22:08 +0000 Message-ID: <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> References: <87v8xun5ss.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="24566"; 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 14:36: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 1nFyl0-0006Cv-Lv for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 14:36:10 +0100 Original-Received: from localhost ([::1]:59944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFykz-0002tJ-Lg for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 08:36:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFyYK-0003we-C2 for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:23:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36927) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFyYI-0005qN-6X for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:23:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFyYI-0005QY-0y for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:23: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 13:23: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.164398093720798 (code B ref 53776); Fri, 04 Feb 2022 13:23:01 +0000 Original-Received: (at 53776) by debbugs.gnu.org; 4 Feb 2022 13:22:17 +0000 Original-Received: from localhost ([127.0.0.1]:59057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFyXZ-0005PN-LP for submit@debbugs.gnu.org; Fri, 04 Feb 2022 08:22:17 -0500 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]:29913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFyXX-0005P7-Tw for 53776@debbugs.gnu.org; Fri, 04 Feb 2022 08:22:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643980929; bh=TVPpWRkV69cpm6YO13I2NVVVIZGpyzejzBCc0WROJpY=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=Z01xUYK7GDPJ1IgpzYw5VWXbRC6lCqO5LPIzWqu0kXKgJDg3sVNGu3eC9BxzEnrcE xbuJYVUHBbpn0ViDyiq9wCt0fJYiqsBUAl9dd5ekjDtE+Ka9etkk23Ioeozv2flfJE MbUiwdDw7xaGDr7x6idvrre29xJOtnWajX6kIzbOK4lXZni7JxTmIt7OQVDTGF9+D6 PtKx/LrJfCCjUca2Gcw2QT1myleHJs1UkENCbj9yZsvnq8KphFyHpxbIqz6zaK6pZh r+dScDT1FzGLUw2v9ZAiifS2fZ02BthPx7bMwoXqKK46wU7ZCHjvsI9XRvtLyfD+IS 0YIX+zw4hUmnw== In-Reply-To: <87v8xun5ss.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:225989 Archived-At: ------- 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 Em= acs, 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':` (:pr= opertize ("" 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-buffe= r, is there the capability of making a hierarchical modeline indicator. e.g. Emacs-Lisp company Outl Gon -> rich -> gudin -> cholden