From unknown Fri Jun 20 05:29:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#53776 <53776@debbugs.gnu.org> To: bug#53776 <53776@debbugs.gnu.org> Subject: Status: Modeline indicator when using define-minor-mode Reply-To: bug#53776 <53776@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:29:11 +0000 retitle 53776 Modeline indicator when using define-minor-mode reassign 53776 emacs submitter 53776 goncholden severity 53776 wishlist tag 53776 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 06:55:55 2022 Received: (at submit) by debbugs.gnu.org; 4 Feb 2022 11:55:56 +0000 Received: from localhost ([127.0.0.1]:58935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFxBz-0000zz-Oc for submit@debbugs.gnu.org; Fri, 04 Feb 2022 06:55:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:50440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFxBx-0000zr-Be for submit@debbugs.gnu.org; Fri, 04 Feb 2022 06:55:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFxBx-0000qV-55 for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 06:55:53 -0500 Received: from mail-40135.protonmail.ch ([185.70.40.135]:32113) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFxBu-0004sa-4a for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 06:55:52 -0500 Date: Fri, 04 Feb 2022 11:55:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643975747; bh=wlkPnFVuhTgYBt7NhHNuwrkuOT9ESstOyiNznNsDmcc=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc; b=XjDeciHe8Knmu5eRdO8P6bxiARLz8+wGJPI9BYw95YjOgGEKqh0cMySDd16neyl7N 1DuoSVKQot0S2G9U5h+15Rxteps7VUnCvR+hEIYrHQzigxzJnjspnsVWC2LGUaiogH HvSMAU8oQlI2KfCKFk4SHUQycO1W7K7wg6PiA090uzIhoKtercOr1iCtWiNfnJ1zpl mOkeBm2bfVXHLkGr5Jwyqkn88AGTarzbdqAbPn3w6urSUUahbEsw6yyCKcbT8/sHRO VWk6UhNYqWGiFTJx8rKbssNcyXyIoNSeRXfPtRl5+4HuL2MXhDDCgeT3MoNMLUOiqH oKyTVd6vEVkfg== To: "bug-gnu-emacs@gnu.org" From: goncholden Subject: Modeline indicator when using define-minor-mode Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_FPempDcheE5Ypx2SGCPK0yLNxscJncMyHiE6Q7VnWU" X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=185.70.40.135; envelope-from=goncholden@protonmail.com; helo=mail-40135.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: goncholden Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --b1_FPempDcheE5Ypx2SGCPK0yLNxscJncMyHiE6Q7VnWU Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 SGF2ZSBiZWVuIHVzaW5nIGRlZmluZS1taW5vci1tb2RlIGFuZCBub3RpY2VkIHRoYXQgd2hlbiBz ZXR0aW5nIHRoZSBtb2RlbGluZSBpbmRpY2F0b3IsCnRoZSB0ZXh0IGlzIGFwcGVuZGVkIHdpdGgg bm8gc3BhY2UgYmV0d2VlbiBvdGhlciBtb2RlbGluZSBpbmRpY2F0b3JzLiBJcyB0aGlzIGhvdyA6 bGlnaHRlcgppcyBzdXBwb3NlZCB0byB3b3JrPwoKKGRlZmluZS1taW5vci1tb2RlIHJpY2gtbWlu b3ItbW9kZQoiVGhpcyBpcyB0aGUgZG9jc3RyaW5nLiIKOmxpZ2h0ZXIgInJpY2gi --b1_FPempDcheE5Ypx2SGCPK0yLNxscJncMyHiE6Q7VnWU Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 PGRpdiBzdHlsZT0iZm9udC1mYW1pbHk6IGFyaWFsOyBmb250LXNpemU6IDE0cHg7Ij48ZGl2IHN0 eWxlPSJmb250LWZhbWlseTogYXJpYWw7IGZvbnQtc2l6ZTogMTRweDsiPkhhdmUgYmVlbiB1c2lu ZyBkZWZpbmUtbWlub3ItbW9kZSBhbmQgbm90aWNlZCB0aGF0IHdoZW4gc2V0dGluZyB0aGUgbW9k ZWxpbmUgaW5kaWNhdG9yLDxicj48L2Rpdj48ZGl2IHN0eWxlPSJmb250LWZhbWlseTogYXJpYWw7 IGZvbnQtc2l6ZTog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HkiPjwvZGl2PjxkaXYgY2xhc3M9InByb3Rvbm1haWxfc2lnbmF0dXJlX2Jsb2Nr LXByb3RvbiI+PC9kaXY+PC9kaXY+PC9kaXY+PGRpdiBzdHlsZT0iZm9udC1mYW1pbHk6IGFyaWFs OyBmb250LXNpemU6IDE0cHg7Ij48YnI+PC9kaXY+ --b1_FPempDcheE5Ypx2SGCPK0yLNxscJncMyHiE6Q7VnWU-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 08:02:55 2022 Received: (at submit) by debbugs.gnu.org; 4 Feb 2022 13:02:56 +0000 Received: from localhost ([127.0.0.1]:59006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFyEp-0004uF-O8 for submit@debbugs.gnu.org; Fri, 04 Feb 2022 08:02:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:37226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFyEn-0004u9-WD for submit@debbugs.gnu.org; Fri, 04 Feb 2022 08:02:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFyEm-0000ka-4c for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:02:52 -0500 Received: from mout.gmx.net ([212.227.17.22]:57103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFyEg-00013j-Qt for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 08:02:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643979749; bh=fEu2u/KiyqBTL96JAYyOuf1h36Gv/Dl5IR0fPHr+bh8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=D7/C2O6IoTg6VpDlUVQe56oR2jkm/cVsyJBaEIgXHFCCsm+umutA4UAZzNTcuzLl5 esFavyspZAw2jB+f9i0TzUvGcRENqeORUzV0GfA2aH1kl44StlcJwGXreVROvZNsqp HubF4+9wEZpRCNSjqM+Hc6lqLIkGwZxAiU2yu7Ew= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobelfs2 ([89.246.36.125]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MdvmY-1mgMUs3zJG-00azSk; Fri, 04 Feb 2022 14:02:29 +0100 From: Stephen Berman To: goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Subject: Re: bug#53776: Modeline indicator when using define-minor-mode References: Date: Fri, 04 Feb 2022 14:02:27 +0100 In-Reply-To: (goncholden via's message of "Fri, 04 Feb 2022 11:55:45 +0000") Message-ID: <87v8xun5ss.fsf@rub.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:5emyX+x0vPb5iEZ0SwvzB4cKzvW6H8knc040/MWAfYAZ7S5GUFC ejoG79F7C5NeiQQ5k5CXku0Cm7mIJP4cUtArp3MxKH1nVwmOKp0Dq7A5xTts0LMWPnFqOLB IUhS84LS95es2gQQ7bwA0qmSelv6oiEc/whh0PPNSL2/d0kn67OqT+wNNeRirvnhCH8q+16 EsK9HNE2gz/GQLxBIT/Ww== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:YwEY1HO4Klw=:ECeA7rYSLdWALyY+OviH+U 0Z526m++KpG2M8XouN/hx4Bqd/ExqJlZ/MClRdiZGl8eIFFCgO+dHctVuQEoP7LR1zzAEv6Fv 2fb/hgwRgfnD/RidmqyI5aRkwY6x+/8S2u2KRttIOvhnIJFNQfkN9i3Z2T5lIxBH2/xp3OKCz mMjBLBqO7PgPgDkBQlZ8U5vSjwyr3F8MrCgPaqxPzKCvKA3hGYGeE20jFRPbv95ltcOuYfOEh BgeQeENWBKpGWbCVr5pB+yK8wqOWNZJWoYSGmFzLwqP0zGAQJ4JlyfLVG84WfucSDtYOVzBS5 iLdZVytwcv8CcuOMyoQSHVbN+68Wxlpdl3xsXX75WoANMP+CjPq+HHjW4w71OfXh/IgoFbm3U SJD7Ftt9z5dwzw2RlUsDEKtkxDbWc/fLA3ycKcfRDu7okqSaBqvBLe363K9r/c29/cYpP44Hw lbp2qT0W5YSbEo4sablcC1uyzhlSk9oO+1bhlVAcNo8yH+rPUmOB6gxYCA3LHbJuTXB3fSqHl TjgRPtpr7jtM7HlFSgjmV50JtLkZDC8nZtor6fgOyNNgHbn76dn/Shz64IC/6AGn96xvU+F8h 6t1ybicETgQDz/2ZZWOn3pRuGUCUdNQsUmXSMreNRQfBkwjhOkkDtFetqVr2db/5qMUVCHip9 cMVZm0XDK3CgOyEjV8mu7Xv4om7kbN8F6/AvXguPDCUPlduvNC6eu3prw9rMDJRJPhNurFLoo 3b5BDMuD8DFkdDJl+rWWlTEGUF6BVGTCjQwsY/JJ7MMIF/AQ0ljA4XPfzzywQrpMLtZ8bZ7hZ 1Je9i0daMf/AMF8i0JtgsntmjKYX34HAkzEPgb5KNoHEvPev1ismqXMTURA/s///Kdf3H+Vh0 NApBZCI1uYDUny8ve3+mtd2cql1IHEf4CnQdQbPYWjPCwn5GeryhwoGmvtWVV8Cw2DkneR8WW 1pevMrlFGFAmhjYmPUpb+jbB7xuAk9YVh37F7PQDv4aK9jk0mx2YDP3oFW2JAQtiRZbwbMPME lJZcKkpMIoUzqyVWD+KjZ1d2HfyeEtAGGYHRDPID0yYX6F2SRCETHSpQYlglnRe63P7YK8FPi y2JhjAS/Z5dchU= Received-SPF: pass client-ip=212.227.17.22; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: 53776@debbugs.gnu.org, goncholden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) On Fri, 04 Feb 2022 11:55:45 +0000 goncholden via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 08:22:17 2022 Received: (at 53776) by debbugs.gnu.org; 4 Feb 2022 13:22:17 +0000 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 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 Date: Fri, 04 Feb 2022 13:22:08 +0000 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== To: Stephen Berman From: goncholden Subject: Re: bug#53776: Modeline indicator when using define-minor-mode Message-ID: <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> In-Reply-To: <87v8xun5ss.fsf@rub.de> References: <87v8xun5ss.fsf@rub.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: goncholden Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------- 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 08:35:54 2022 Received: (at 53776) by debbugs.gnu.org; 4 Feb 2022 13:35:54 +0000 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 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 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 From: Stephen Berman To: goncholden Subject: Re: bug#53776: Modeline indicator when using define-minor-mode References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> Date: 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") Message-ID: <87r18in49c.fsf@rub.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:pFNGQQdn3a0+wcgzWa9Gg9lFjYSwLMo/xxqXRlhTtJmXbsX33JB XVgnljvTMKg+Aw/3Xn2na8kwJmzaVurwUVpgaR6mQagft9FPbZ4BxobftW6Ew/ntrjQpKzv J6eeXi+N7PjHnuScTfhUpOu8D61FCqKNxRDU9xUt8mIV6zXWGDh0OZhfWFoGRgoVK86k8W8 7m/qf6tZEd7luYTHYvAiQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Ep69ubByAXE=:0C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xHNmJZToQffOEmlDZoHcMqy33WkcHgI4gTQYZB8o422YNJWN4 ZioN3Ak/aGdFNE= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 09:06:11 2022 Received: (at 53776) by debbugs.gnu.org; 4 Feb 2022 14:06:11 +0000 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 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 Date: Fri, 04 Feb 2022 14:05:58 +0000 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== To: Stephen Berman From: goncholden Subject: Re: bug#53776: Modeline indicator when using define-minor-mode Message-ID: In-Reply-To: <87r18in49c.fsf@rub.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; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: goncholden Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------- 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? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 09:38:34 2022 Received: (at 53776) by debbugs.gnu.org; 4 Feb 2022 14:38:34 +0000 Received: from localhost ([127.0.0.1]:59140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFzjO-0007Ib-De for submit@debbugs.gnu.org; Fri, 04 Feb 2022 09:38:34 -0500 Received: from mout.gmx.net ([212.227.15.19]:42481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFzjL-0007IK-OX for 53776@debbugs.gnu.org; Fri, 04 Feb 2022 09:38:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1643985504; bh=nIf+8Mn4OWfax9cXR+U9NS0MgsXLZO6LdTLkRGFQYlY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=KItk/EOTgLoev97uz2Y71f5hAYqQ19iO2M6XSpRBJQsRIEqMTV4enEv6zEFVZBeeI jm+9KCzM3RQrBa3xFxUnwEtJcpy+7TCpO8tp/RYudUAW+OzjQ3lN3sewcsabeaPB8y 8YFj9sOBpVXrLNTGiwgxnt8Vwmt4o/POuNaGydqQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobelfs2 ([89.246.36.125]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N0X8o-1mJtMy1xSe-00wZKg; Fri, 04 Feb 2022 15:38:24 +0100 From: Stephen Berman To: goncholden Subject: Re: bug#53776: Modeline indicator when using define-minor-mode References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> Date: Fri, 04 Feb 2022 15:38:23 +0100 In-Reply-To: (goncholden@protonmail.com's message of "Fri, 04 Feb 2022 14:05:58 +0000") Message-ID: <87mtj6n1cw.fsf@rub.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:qkFiOsjebJ/PT32Efkr5tQH3iYK9OlzK8gsGDnvBnzUQrwujDSz BKrm5spSGYDE1/YltcoHRVSNWrSd3EuU02Ui/Non1iHbUvTkNt7gZ5lfuW6NKvlOrwHPikN 2Mj4iRyUkRylAeCAHbQ9cYAF88iPetn6UZpeJqHZDpbX5EUSW8coi7PdS2g2JjmvPa6mME9 0Vk4L2zvVxZN7nlJpKttw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Ln2C8PZrvR0=:mnVG0CknTCX78DzOYYKZMg qcbhEkbi+ac4eRAVOzV/qHhI5ubrgmllhyrx5eLPeCzsi1nEhPxmjFQbkm9x/Lamzp7FcGN3G P0YHx9853vTIVyd59mszQUqQvQnPg9/iCTAHzEElP/5RJIA543s8BxIChw6/XJZ2sr4i9cCRN eo5sHxIXZW22K9v8RzxdrCVaphwCskAR6coxDWOgxOndSqTaR5qdDYPBTQKvIG5giiirNjEvu ciUsr7eKbJqpcgVFPwKVgdwkXa4maTUf0gce/xIF3CtdaZ69sAmResEShFAZYFByTExiQLlZS HHkf4iwz0jdwh0gp3uFbTSF4hmA8BKlERYFl4pMa9NvEZBKYFvgkJDrf6//veKSs111PS5kr5 K1kzRwQbYN30aS5R/Oi1BZrh/Cvvhhe0TDLr35zad97YvW56W/VURJsK9ZrQZvKPxzMFKA6z4 dnArJXXO8M/bJll9BdCSYr4sWVRVZ98vY6TmZXd7vSyoTIblRmZiaHZW9fUE0Z3kBKmjXTZVK xwon5jYE6bSwFi28hRD82Lm/JPO3pCG4r13qVkxGp72KEgaRQSLQNSgld8JpPiozn5Et3gwSz ZMe4J7Cq3uJg6r1XJEuEQ3cFutJtDCdWMy0UD4EJ1C4YyAINXCttvLmhi/igXPVD6CW+RYSQp 53ZM80HdNXZRwtrvbf8Qe33PeEWJ/a9wNhPN3VuUzri4OOhZZhp83XlpsxLUktEa+EQq56Zeh V3PlZtvjJ9BepE7dbY0CUaQAs9rXkUvUI2OD5wLz33qkc17A7grFAEx1UqejOPUiDcighsent h27f8+LymOXbHQ/gz7+fn1+y+bJBIRH+ghyJ38F0yfSoaqK70FJCj/eJ6CSwsZpYfM4Nda1ZY /1u5/tE56JB7+QK/1MjDVpBvIW+2XsU5lCGrxntanoh5fVBZg1CakEgXyVPfyS0U5XHzHyS37 VfXoYfWVD8GO7AkYmXLnvOTFgyV0c97cn/YYYx1HiCIt+isE41FIW+gSKMxzGEJN7CsRO62+d wflahYu+Xsuhxe7agpo2uuoHqAUhWNi467QWg3OFJdoRVgpCM46QOmWggoaqABG0q/Hth1d+6 qVQidNIqpGta8A= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Fri, 04 Feb 2022 14:05:58 +0000 goncholden wrote: > ------- 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 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 >> > 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? 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 09:43:24 2022 Received: (at 53776) by debbugs.gnu.org; 4 Feb 2022 14:43:24 +0000 Received: from localhost ([127.0.0.1]:59150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFzo4-0007Q5-Ex for submit@debbugs.gnu.org; Fri, 04 Feb 2022 09:43:24 -0500 Received: from mail-40132.protonmail.ch ([185.70.40.132]:30703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFzo2-0007Pr-6i for 53776@debbugs.gnu.org; Fri, 04 Feb 2022 09:43:23 -0500 Date: Fri, 04 Feb 2022 14:43:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643985795; bh=1BkuET1d4ywsSG4Lty4ouHDS4b9q9k+jGQfPnOQHPMo=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=B/q30Vf4TUJQL3XgoSMJ0dOiD87W1gdNDgjRhgPZBvPQvM3UlUEPV34TAJrIYrJQe kwO2+0QmUn308YXV9bGxYY6O7+90HPwO+ADYqRd0idDjg9XWSdSXYVgF2+8gz7HbvG QTcez6IrF3thx/LWMWL5rU7B9Txlkh9TQzMNXF77yU4khx0pYZQrljLAczowb77SrJ m4ME2NGL3gGORmsaElbhCAOGm0EI7CY4jXQsen0rXs6W5aXTA/FUSmKVtZRLuh5d6f LkYZ0MmN9OHs9WJ+ESQGSLgHk+oirMnPvL9QWp3a/8MhfK8r1+VdwO6UhL86rSpAeL cKzNiyOpq7a9A== To: Stephen Berman From: goncholden Subject: Re: bug#53776: Modeline indicator when using define-minor-mode Message-ID: <8ZWYvwRHq37Prq6xw9c2S3yRPI9kbbpDYb3W7qU0nVFICvGWS2w_fivt55PgrbYQQaMUerAb-nHh1Frsa9auUPOVNrzKyDRyKiDmDMgQqPo=@protonmail.com> In-Reply-To: <87mtj6n1cw.fsf@rub.de> References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87mtj6n1cw.fsf@rub.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: goncholden Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------- 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 w= rote: > > ------- 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.c= om 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 fo= r GNU > > > > > Emacs, the Swiss army knife of text editors" bug-gnu-emacs@gnu.or= g 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 light= ers 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 mi= ni-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? From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 09:49:37 2022 Received: (at 53776) by debbugs.gnu.org; 4 Feb 2022 14:49:37 +0000 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 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 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 From: Stephen Berman To: goncholden Subject: Re: bug#53776: Modeline indicator when using define-minor-mode 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> Date: Fri, 04 Feb 2022 15:49:26 +0100 In-Reply-To: <8ZWYvwRHq37Prq6xw9c2S3yRPI9kbbpDYb3W7qU0nVFICvGWS2w_fivt55PgrbYQQaMUerAb-nHh1Frsa9auUPOVNrzKyDRyKiDmDMgQqPo=@protonmail.com> (goncholden@protonmail.com's message of "Fri, 04 Feb 2022 14:43:14 +0000") Message-ID: <87k0ea8z61.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:WxNb2i3U/DcPvXJOIh/16MEvFAN9cmV26NwdtsyzzMkFXDvhmY5 GrmeJqlWRGcX4rOULspYptF0DnNR8C45RGS0TPfFhDzQEvxQDX4Ms7KvacnC+IItE8Klfwd UOZDA3YfXDguu4cDeRfq3uWEay0arAgtjXj6dUnqU3aogRp323o00X9wFd94q+0XawUfV24 ZpjFckqLqpZWWyxTlZ5SQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:TjglJWDMFE4=:74TnRpH3zbtPI2RXgfA+3V 2QvaUHBI4jzZzhLx+5zkuOVPW10LYXcSeCrEcU7X2+n39DEcgHP5DkQkoVtUSMFVw/PL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/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 19:13:09 2022 Received: (at 53776) by debbugs.gnu.org; 5 Feb 2022 00:13:09 +0000 Received: from localhost ([127.0.0.1]:33255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG8hR-0008E1-1S for submit@debbugs.gnu.org; Fri, 04 Feb 2022 19:13:09 -0500 Received: from smtp-3.orcon.net.nz ([60.234.4.44]:32949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG8hP-0008Dr-H8 for 53776@debbugs.gnu.org; Fri, 04 Feb 2022 19:13:08 -0500 Received: from [10.253.37.70] (port=56873 helo=webmail.orcon.net.nz) by smtp-3.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1nG8hG-0008Hv-Oo; Sat, 05 Feb 2022 13:12:59 +1300 Received: from ip-139-180-65-103.kinect.net.nz ([139.180.65.103]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Sat, 05 Feb 2022 13:12:58 +1300 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 05 Feb 2022 13:12:58 +1300 From: Phil Sainty To: goncholden Subject: Re: bug#53776: Modeline indicator when using define-minor-mode In-Reply-To: <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> Message-ID: <909303b92c32e7cdc8510bee1c1e881b@webmail.orcon.net.nz> X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, Stephen Berman X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2022-02-05 02:22, goncholden wrote: > 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 I've not seen anything which looks like your example, however there are several libraries available which are designed to reclaim space in the mode-line by manipulating the appearance of the minor mode lighter text and/or major mode names. https://github.com/tarsius/minions turns the minor mode list into a menu, if you do want a (usually hidden) vertical listing. If you just want to rename (or hide) certain names, take a look at https://www.emacswiki.org/emacs/DelightedModes (or alternatively blackout.el, dim.el, or diminish.el, which are all similar). https://github.com/Malabarba/rich-minority is an approach which lets you target rendered lighters with regexps, and modify them using text properties. I haven't seen anything "hierarchical" (but then minor modes have no inherent hierarchy), however you could fake it to some extent by using conditional elements in your mode-line constructs to combine multiple lighters into a single multi-mode lighter. For example: https://stackoverflow.com/questions/23944477/emacs-how-to-consolidate-lighters-for-minor-modes -Phil From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 05 01:46:07 2022 Received: (at 53776) by debbugs.gnu.org; 5 Feb 2022 06:46:07 +0000 Received: from localhost ([127.0.0.1]:33542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGEpi-00075s-KY for submit@debbugs.gnu.org; Sat, 05 Feb 2022 01:46:06 -0500 Received: from quimby.gnus.org ([95.216.78.240]:42212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGEpg-0006yg-TX for 53776@debbugs.gnu.org; Sat, 05 Feb 2022 01:46:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=w6psa6w09lpvTed7KazHgSHzn2BTMI5PE+hhFLxP4ww=; b=g7DZQD94lyH4R4k+UthYYGCZEt oEFG7tPvMQ3jfeu+7EwHIfUqylBIvlzjk/Ik3SnlBpGAtlZXtg8lYlFvAv+zKsP1I0m2xfVm5JK5E tD8b15t83B3RJRrEY+1h4YUr0X2AfG5nHmzUn4sb67GQH4Sol39O6x24iA+zLF6fcUao=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGEpY-0005Ek-9Y; Sat, 05 Feb 2022 07:45:58 +0100 From: Lars Ingebrigtsen To: Stephen Berman Subject: Re: bug#53776: Modeline indicator when using define-minor-mode 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> <87k0ea8z61.fsf@gmx.net> X-Now-Playing: David Bowie's _Aladdin Sane_: "Time" Date: Sat, 05 Feb 2022 07:45:54 +0100 In-Reply-To: <87k0ea8z61.fsf@gmx.net> (Stephen Berman's message of "Fri, 04 Feb 2022 15:49:26 +0100") Message-ID: <87czk1erq5.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stephen Berman writes: > 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. As has been pointed out, there's many packages that do various minor mode lighter handling, so I don't think there's much to be done on the Emacs side? So I'm therefore closing this bug report. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, goncholden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stephen Berman writes: > 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. As has been pointed out, there's many packages that do various minor mode lighter handling, so I don't think there's much to be done on the Emacs side? So I'm therefore closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 05 01:46:13 2022 Received: (at control) by debbugs.gnu.org; 5 Feb 2022 06:46:13 +0000 Received: from localhost ([127.0.0.1]:33545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGEpo-0007BD-Vi for submit@debbugs.gnu.org; Sat, 05 Feb 2022 01:46:13 -0500 Received: from quimby.gnus.org ([95.216.78.240]:42230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGEpn-00075A-3S for control@debbugs.gnu.org; Sat, 05 Feb 2022 01:46:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ne109VySiZm3XTpuLV0xmQhExhfJIZC/HVFOxl2fxOU=; b=lJiSeann8UhX3I0WYvoAJyCstu MUY+3pxCNRhFV0NwbSgkETd9NfX8/3/hgp36k0SiZhREHowMhYGfyVLvnTIEFlFnbP2Fv5Bny6caL 9ucmoazT//PXP+BAYBM1cAO0viWVc1afOrVYo7OdPlKG1NgYGZ4BKYsMSdSJZHXEaOic=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGEpe-0005Eu-Sr for control@debbugs.gnu.org; Sat, 05 Feb 2022 07:46:05 +0100 Date: Sat, 05 Feb 2022 07:46:02 +0100 Message-Id: <87bkzlerpx.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53776 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 53776 notabug close 53776 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 53776 notabug close 53776 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 05 22:40:05 2022 Received: (at 53776) by debbugs.gnu.org; 6 Feb 2022 03:40:05 +0000 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 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 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 From: Michael Heerdegen To: Stephen Berman Subject: Re: bug#53776: Modeline indicator when using define-minor-mode References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> Date: Sun, 06 Feb 2022 04:39:54 +0100 In-Reply-To: <87r18in49c.fsf@rub.de> (Stephen Berman's message of "Fri, 04 Feb 2022 14:35:43 +0100") Message-ID: <87iltsmzn9.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:NivKgZCvr+19t5N/vciovzxMVfvmfb/WKtMRfFMKsWaBbj8HPhk dwnsK3tz9Fvbew882l0Z7wjsysHbgbk4hsnspl2lBV7IvCCb+RQUHU2FxBPaayF8K9lffYr vVOqXdTL37CJTankqJkdQicYNVSW2LKNS6VL/K6FAfAyv9DMykqlJ9dR0RwXTMd2v3eIzJy ByA+CUGaQ6yGo+VDfjubg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:WtfR2Ov/duo=:1IqTZQEFgC//RBJmu/eEHf b01yve9ZxnEK6beCdcPJ6lfBm3NYJdbH0QCUmn1RDFZl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) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, goncholden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 06 07:52:54 2022 Received: (at 53776) by debbugs.gnu.org; 6 Feb 2022 12:52:54 +0000 Received: from localhost ([127.0.0.1]:36709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGh2E-0006cf-Jd for submit@debbugs.gnu.org; Sun, 06 Feb 2022 07:52:54 -0500 Received: from mout.gmx.net ([212.227.15.18]:51075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGh2C-0006cP-K4 for 53776@debbugs.gnu.org; Sun, 06 Feb 2022 07:52:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644151965; bh=OuqlH9H1qSndHq0PcDCquhTDcWmgCueBOC4UTGKIlP8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=GB+vSZbGANh4sQLJfWrREpngpmF0KgdyBWZ5KC+RppM1Vet5WPMyRJ3mUmF9hNeJW nBeARHmJHTb/4oqNznkSGxnlfz+L03nMxvCFQp9e2R1oc4Pd+gjeNmSixMqvDwRIzT fObivQfDEomHbvWK2X2wEa8YTLp/mTg8bfdtvgeM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobelfs2 ([89.246.36.253]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MfHEP-1mZxgc0jON-00gols; Sun, 06 Feb 2022 13:52:45 +0100 From: Stephen Berman To: Michael Heerdegen Subject: Re: bug#53776: Modeline indicator when using define-minor-mode References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87iltsmzn9.fsf@web.de> Date: Sun, 06 Feb 2022 13:52:44 +0100 In-Reply-To: <87iltsmzn9.fsf@web.de> (Michael Heerdegen's message of "Sun, 06 Feb 2022 04:39:54 +0100") Message-ID: <87tudc2m3n.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:Ctsq25kUvjYNUDjdIClanRvFejvlnKh2Rf7rhnFQiwPt05HFn1g 7F/Hz1noHoy3ClMK519xz9Pfmx9Lv72e7GHogZgMj6QLAg99y74pzaZR8i76a6nBhotSNpk eNZ8gquQEb1yxMkIC+R9bAl82N3yhDqc+7qhydcM28xObMuEX5YD+/koQam8GYKEOPRsCLd NqcNfkmniAWQZNYUQ+5hg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lDnq7NEFLCQzd8gC5etlKjHynd3v4SKQaag G4Aujc/wpabKL6veco/zdLx8j16TUWaOWvJ6Qce4GIa7OK949Bb4H+mW9OHvpDSI+rzpx1/WU HJ9UKPoKlHAdV0= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, goncholden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sun, 06 Feb 2022 04:39:54 +0100 Michael Heerdegen wrote: > Stephen Berman writes: [...] > 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. Nevertheless, I would be interested in trying it and seeing the code. Can you post it? Thanks, Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 06 12:12:40 2022 Received: (at 53776) by debbugs.gnu.org; 6 Feb 2022 17:12:40 +0000 Received: from localhost ([127.0.0.1]:39751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGl5b-0005cy-Od for submit@debbugs.gnu.org; Sun, 06 Feb 2022 12:12:40 -0500 Received: from mail-40138.protonmail.ch ([185.70.40.138]:46328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGl5Y-0005cU-Ls for 53776@debbugs.gnu.org; Sun, 06 Feb 2022 12:12:37 -0500 Date: Sun, 06 Feb 2022 17:12:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1644167550; bh=ywTK72S8c2kF6UXUvc9AhQDuZbhADUHddrpHMi/c4Eg=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=FgFE2+HnFAj8p2Ki7ngZEzsq09hysn4PVPMAym48OO+ln4MqMtAQ0hyo7U75DYXPr TOaQdLeQjeS21vfoORWO6m80s10dBfoQ6Brwk3deoMz/gJB57bHh/sakaGFnSoEztl 4X3JC2PmcLzFZUbPx9r2OjqGqbpSBcLcV2YuhdTR++FeUPZsCcWonv0Y6tQSN2W7mm ARQq0tMKa7wUmsQtZ/3yq1L+Y18x26Fh8bc+WelbJuVtpsSIqAEYFnif581JszS4a7 7cb3Nf9ojxTRh9XD7cLJc56qUlMGILhYv0hG4R+Gl8+hMRvUaRnEy/5dHZcAGwpJCm mDuE3UA5LCBIg== To: Michael Heerdegen From: goncholden Subject: Re: bug#53776: Modeline indicator when using define-minor-mode Message-ID: In-Reply-To: <87iltsmzn9.fsf@web.de> References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87iltsmzn9.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, Stephen Berman X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: goncholden Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------- Original Message ------- On Sunday, February 6th, 2022 at 3:39 AM, Michael Heerdegen wrote: > Stephen Berman stephen.berman@gmx.net 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. It is quite easy to have many minor-modes, and would be good to see them ca= tegorised, perhaps in some kind of menu. Been directed to minions, but would be great= if emacs has such functionality built-in. I am ending with too many minor-modes bei= ng activated. > > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 06 16:52:23 2022 Received: (at 53776) by debbugs.gnu.org; 6 Feb 2022 21:52:23 +0000 Received: from localhost ([127.0.0.1]:39990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGpSJ-0006aB-Co for submit@debbugs.gnu.org; Sun, 06 Feb 2022 16:52:23 -0500 Received: from mout.web.de ([212.227.15.4]:55711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGpSI-0006Zz-1v for 53776@debbugs.gnu.org; Sun, 06 Feb 2022 16:52:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1644184334; bh=QXknHFMayctuaXTa8lwgdNeqh06fH2uVSiX91Y9SmqA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=FJoyjZvIU+8lwTROoqMPraTZRwrnvkwwC9ufhXMlC16SG/XCvLygRMufA/y9uF3EZ /XVF/+Hmkrk9jM73asyHd4Vv0aGNlIvLlTpQJavRfVD/pSICm/k6m/rm1QmYaOsmN/ anoXrBRqO4N3i6Uf5oNuX9R90RFQ7RLooxhivBn4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([84.57.248.31]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MECCP-1nR2bL08Sz-00A79l; Sun, 06 Feb 2022 22:52:14 +0100 From: Michael Heerdegen To: Stephen Berman Subject: Re: bug#53776: Modeline indicator when using define-minor-mode References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87iltsmzn9.fsf@web.de> <87tudc2m3n.fsf@gmx.net> Date: Sun, 06 Feb 2022 22:52:13 +0100 In-Reply-To: <87tudc2m3n.fsf@gmx.net> (Stephen Berman's message of "Sun, 06 Feb 2022 13:52:44 +0100") Message-ID: <878run7jea.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:6MlCvC6MWNjW86j+NI0juEWhsaa/Uf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F+3gR8Sylup1AiWvqdJkq8lY+QNqyt3Zf0J6pSzCKwRYJ32elQQHYeLnjKeqZL9 3vcptUX7ePomUP5RNhDLr8Lkr+NIFW8Xj32XLwDUnqPcC00R4VW7FKmfjAS0K6I2CzGLMh0Dq 7bjj1fAP7pfR/0RQa9OTSabIJczTqLE5qRUTtWZMqyMSg8OwTAth1FLwSZcjLKJ4J9hGEvI45 VwytFTZY+sUlOkKR/1bVd9F4w3O299nkf/LRE8cnzxN8IV+pplEflKCuIC8SjYWeyKn1zlFvo ZKYE5RYpXChSFk= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, goncholden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stephen Berman writes: > Nevertheless, I would be interested in trying it and seeing the code. > Can you post it? I don't have it any more. The basic idea was like #+begin_src emacs-lisp (defvar ml-scroll-amnt 0) (setq-default mode-line-format `(:eval (substring (format-mode-line ',mode-line-format) ml-scroll-amnt))) #+end_src and let mouse-4 and mouse-5 over the mode-line de- and increase `ml-scroll-amnt'. That's all. Be careful when the variable binding of `mode-line-format' changes - the above hack won't survive that, so when a certain mode redefines `mode-line-format' (with other words: doesn't use the default value, like Gnus), you need to do the above after the variable has been set. Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 06 18:13:49 2022 Received: (at 53776) by debbugs.gnu.org; 6 Feb 2022 23:13:49 +0000 Received: from localhost ([127.0.0.1]:40210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGqj7-0002cJ-4J for submit@debbugs.gnu.org; Sun, 06 Feb 2022 18:13:49 -0500 Received: from mout.gmx.net ([212.227.17.22]:44257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGqj6-0002c7-6Q for 53776@debbugs.gnu.org; Sun, 06 Feb 2022 18:13:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644189220; bh=vT0ZR2pmXNr63806NHIATgv3agoh1LBkDXMefOv0/IE=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=DJ6f+KegyYUlHbkswo2g770xtYEJVnWFJ70ZhC2UnHdrJsJDhJox8gD0c4+MCFmtZ xl+uf/nUQ8q6V8i7dEFAMDJnMK1DhxIpdedfyvGYaefLsrv8Q4IrkZHdMqmLrF/3QT 31WFK84XkYra4+hndLpUTjzvmVwiwQTq6FNEOtbM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobelfs2 ([89.246.36.253]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3se8-1oGY7A22nA-00zlDI; Mon, 07 Feb 2022 00:13:40 +0100 From: Stephen Berman To: Michael Heerdegen Subject: Re: bug#53776: Modeline indicator when using define-minor-mode References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87iltsmzn9.fsf@web.de> <87tudc2m3n.fsf@gmx.net> <878run7jea.fsf@web.de> Date: Mon, 07 Feb 2022 00:13:39 +0100 In-Reply-To: <878run7jea.fsf@web.de> (Michael Heerdegen's message of "Sun, 06 Feb 2022 22:52:13 +0100") Message-ID: <87sfsvd1wc.fsf@rub.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:86JqMH25MPmwnzcJ4Nc9wZVHrk7gzLoyvd+dUSs1B5CbVzp70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Ki9yVnFLCJQMTbL4w6TmMcG9Yw/0u3dKu2mvR7LpIfu+HtN03+Y8cG BGmQ1MStpG6Z+FMIXwmPhiCGt+tp54KDEr/xTNA3emohksvNCs2p8WfqqRXtr9gXoPtX/N3UR VYyoK4H0XaKlrc82E/eL4wAEZsSBU+4loUEt7sL++NPDlukhQv/DIYhjujfl+yOMYFwlR1/Qz pq2G6BNCGKy/ZKkz//GJFQPPcv0rC/XAy7eCxm9eHW/UlHrz00KG3cjP/RBq7i88cxXsNbQj5 bhpaNMxKEky4Ec= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, goncholden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Sun, 06 Feb 2022 22:52:13 +0100 Michael Heerdegen wrote: > Stephen Berman writes: > >> Nevertheless, I would be interested in trying it and seeing the code. >> Can you post it? > > I don't have it any more. The basic idea was like > > #+begin_src emacs-lisp > (defvar ml-scroll-amnt 0) > > (setq-default > mode-line-format > `(:eval (substring (format-mode-line ',mode-line-format) > ml-scroll-amnt))) > #+end_src > > and let mouse-4 and mouse-5 over the mode-line de- and increase > `ml-scroll-amnt'. That's all. Thanks, but doesn't this just truncate the mode-line-string continuously? For scrolling back, it seems necessary to store the original mode-line-string and concatenate the previously truncated part of it with the current value. > Be careful when the variable binding of `mode-line-format' changes - the > above hack won't survive that, so when a certain mode redefines > `mode-line-format' (with other words: doesn't use the default value, > like Gnus), you need to do the above after the variable has been set. What I had in mind was something like using auto-hscroll-mode on the mode line, or making it into something like a horizontal scroll bar. Either of these, if possible at all, requires changes in the C code. Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 06 18:59:42 2022 Received: (at 53776) by debbugs.gnu.org; 6 Feb 2022 23:59:42 +0000 Received: from localhost ([127.0.0.1]:40271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGrRV-0008Ij-Pd for submit@debbugs.gnu.org; Sun, 06 Feb 2022 18:59:41 -0500 Received: from mout.web.de ([212.227.15.14]:43057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGrRT-0008IV-BL for 53776@debbugs.gnu.org; Sun, 06 Feb 2022 18:59:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1644191971; bh=F7pMypvUaM08rg+Z2LiF1TuGxAEHfC/Tnd0YZSLSuBk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=FJC13twJ9RnKmrvg/4NaVxtGNHiFCJA87rnociYXUs9J/3/+StGlLWQFFjhu69+ZA +W1wbQ67DYLOU6292VkIYTGkEbr6Ji003yKBKJk41GUioDYBPUgoz27TmKkwyUwIdN nlAKn3f+8OGanAU24bQ4YcVlT+HwD+XF0e1ukuIQ= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([84.57.248.31]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MWQyl-1nobqC39Uh-00XbYD; Mon, 07 Feb 2022 00:59:31 +0100 From: Michael Heerdegen To: Stephen Berman Subject: Re: bug#53776: Modeline indicator when using define-minor-mode References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87iltsmzn9.fsf@web.de> <87tudc2m3n.fsf@gmx.net> <878run7jea.fsf@web.de> <87sfsvd1wc.fsf@rub.de> Date: Mon, 07 Feb 2022 00:59:31 +0100 In-Reply-To: <87sfsvd1wc.fsf@rub.de> (Stephen Berman's message of "Mon, 07 Feb 2022 00:13:39 +0100") Message-ID: <874k5b7di4.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:kIM50iyte3lQYIfli05B9FKDTe/xu/KdYUdHdYwjSOwaQGYDdgO 19uhOZCwWfttjHt1Q+C8hlGOrHRVKGWUrJUoebYFYhBEzkZ50oTPQEYvN/tsnRWa/SEKTQA ROX9Yn7JOva5ZzVf3B4ByvHHjrsT1GEcp8VTW+6KnTsHGfX8CbfHHMTfzVhNz98IU7akdiw rudRGp/PmQd+kMPMLF0tA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:JdatFh8dAdg=:dZCr0zWUch2GdoHhG6QlsD J1T3grRJZuZho4C2i6PiYPEpVpEyiYQkCyzgYNtomc0E22oOY0mRQdomAD2RY41G60821qV8M htDzgwRhc/RA24ElucIPM00sXhRqhTm4CP/CHXha+83TYvACMVKSA/Pinw4aUkVlIzd9q1YqZ O++3QMbMzeqOkuNTEGVelGN2+rfedkJXiZIWEFoXzRcmOGY3JjVmYXc2JUehYqnO5JAxAX0wG PjG/2uEVem3hfs7Re3fK6ZxJAHMdg5qunbwW13Cfd/1+ZvVCFdDPiqNeOSUSnF5u/yZUV1Nvq dWxcKve3pfkump/QmjHqgCe0cBsU7WXRcD/iZpUYLjdTR9hJ30DXjw+ydL89sRevAdfO7mKVB BolIeZikRaVdnyUNH4imjMsXmxa6Ec+hctoHQ93kq+YymUCnYvQp9gj6JQafLfy8brNxscLXq 6zTYrhjZpexZeSk6/RNSHSsJdd9wjYbaM8q98JfrigukW93SnG/jT7TlcpzfrtXxor0nZ1K5f iDLc83Hh0uLvgj1RX/l87tp3GShy7KjuZw8dpRnL9znuFxN0p0vPulx/WY5xsWTqFEl+0HBJV P/OVTYk3WiE1nlfkO7jmL56hnY0hMQSSqYs22pMYtgbGmuquCMzEEJYvWivEpgue06jpeyduB 3OdmeL1lrfv3vF7w7iULPlONOLX6csEsEYmIwxVJgjQ3o2r6MJVe/78CnUX8cbCvXn8KkFCiv KKTMbBXeZfWORUnvBg0fXYD2b6OWIHcU6aWmiQn1O3iadsEvQB42WZjcth47ELKyXSJng3YPb g8QxDmACuPWe2pSK9DADC61SNIgrw8g5VZCvySaX2uAOhPBFUTu/WTZl0X57WryY9TbdJKhgD 9yJrrO0WgosTZK7HeUrufTelhp6EiRAvVBMj8rL58rGfm70cxS+Y+1POq9fP38lr4tkZtfy5T 6EvDHG7UhONIwZpqCp4yn5fpMmafSmYCUScGhYAldJ6YxgvjINAfUGXXSAoe/zRBGrksYtRuy fdvAfq1YAg+WlFxZEVlxE+OJ4FFNpD1hQD65RyrMIwf5JwnImBpZGudn5+VCUOOGtwnlRu+2z 63YKU5OPiTJ/K4= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, goncholden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Stephen Berman writes: > > #+begin_src emacs-lisp > > (defvar ml-scroll-amnt 0) > > > > (setq-default > > mode-line-format > > `(:eval (substring (format-mode-line ',mode-line-format) > > ml-scroll-amnt))) > > #+end_src > > > > and let mouse-4 and mouse-5 over the mode-line de- and increase > > `ml-scroll-amnt'. That's all. > > Thanks, but doesn't this just truncate the mode-line-string > continuously? For scrolling back, it seems necessary to store the > original mode-line-string and concatenate the previously truncated part > of it with the current value. No, you just have to change the value of `ml-scroll-amnt'. Try it. That piece of code doesn't work as you describe. Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 06 19:28:37 2022 Received: (at 53776) by debbugs.gnu.org; 7 Feb 2022 00:28:38 +0000 Received: from localhost ([127.0.0.1]:40343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGrtV-00059a-Nv for submit@debbugs.gnu.org; Sun, 06 Feb 2022 19:28:37 -0500 Received: from mout.gmx.net ([212.227.17.21]:38387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGrtS-00059K-Ty for 53776@debbugs.gnu.org; Sun, 06 Feb 2022 19:28:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644193707; bh=FJCsE56CwxNmekz0VUD3Bq/TBs/nKPAtRf9kENea4AQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=j91m6qCA5wWamp1O1kUIH1R+5X1QK/z67hO7b7KgITr2D2qSAyzpmZFnsfjm+n8AI QTlMSIyrq9l8UC8Ent5Vp5A7c1eF1E6SFEDWkZnJRNLkvKJthfNuGMXxyrWgJK6lbN Lzs9YTkuVYUaDKU4BfqigQtSZDULgPY9X6XLfQBc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobelfs2 ([89.246.36.253]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M42jQ-1nGrtL03rU-0008Oz; Mon, 07 Feb 2022 01:28:27 +0100 From: Stephen Berman To: Michael Heerdegen Subject: Re: bug#53776: Modeline indicator when using define-minor-mode In-Reply-To: <874k5b7di4.fsf@web.de> (Michael Heerdegen's message of "Mon, 07 Feb 2022 00:59:31 +0100") References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87iltsmzn9.fsf@web.de> <87tudc2m3n.fsf@gmx.net> <878run7jea.fsf@web.de> <87sfsvd1wc.fsf@rub.de> <874k5b7di4.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Date: Mon, 07 Feb 2022 01:28:26 +0100 Message-ID: <87mtj3cyfp.fsf@gmx.net> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:MyRCVVYSicAYAqv8tb/B/ekRyba2wrBb27yicNRvEJ4yGYeabWk BcLaax78u9hsA4wBO/yO1F5bDRjdC8UtwQEp4yDZUqg2k/W6dAp6Sr8l3BSvELM0x6RlbNx /SJpBqG4w65u4fIGzyTs8sJujwv/BDMd7gK/hE9iXcF/DGRnqJf1d+ugBiD/HRkoHQ24Rt7 i8b3GixHsOm3iq2Ln/Muw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:y3duxb/iwHY=:4sDDE/5YJFwLXt95H6CNM6 5VGls5y14cBevFrOLNfjcVcr07EvBhFK72kHyVth7vIf9jbjGaIqeqvNw4I/PTXWDFtEYS/WF fr1n4YpNC1KlQSfe95WJxSLJvno1PQ9bpeYmMiSSLOfDeeT5DwsWFHflr5hPPt59GpGuQCe6x PUsXMQlPBvRym/M3z0J3144mkj5NqTSwyOSAFz/OdruLFMez/LhFjqPdwkKn6XhupqT9naAjc Xde0Fs9iMcTGL+u47c444ZMH1dgzQ3FCGms4WA1eEmG8Rl3yARDA91z3t6hcH72ovilXLleoY y3PfKWLLH0mAdkKPk3Xt5cGUyHHhNu4VkBxGeIAp2T0zKazNozv/fsTgwHKviY4szHw6KBIf0 k9y7jc2/T1pa8V/boEGojSCJStslQEVwOm9iSABCaL24NKgc+Fzy4xHduiWqS8TcRTf93yjgH GKF4jflnDVXKK+ErRypOeQZ923cSgvICb0/AtJKt3Barv221L6LZhJuahxFoXp8utwOX1pFpP gppeQmRxR1hxaHCVU2HFC69tK1Yrvmz2MZjsnL6MQBcg5N7fBcBGQzEQDbtsHHPyDGoYAT6V/ cDLDOZ0SFsWFPr1stusbkWQiX1cUAcyt8L9BaMQTphRMsgHoWUiOTAArtWeo4a/WOn08HnJGN O4HPww5coSMy7kTuuCWC0eLvWxCmSb2n9ibZZ9X9xw1EeFe1X1pL51bzrajfb0Fxihjp1Ieb3 4snun/5xnPO8mMqfhgD1Ft4kTDNv9duODfcWjyS30fnxOsWnWykda3nYdAD8t6F4pFIKLHcT9 YQpNiZz3nmDdeGIxXpk9lG67R1JiwTrFb1RmLwJnegU3tgdX3Zf7X3nuNsFU+5BzBJLFbXV4V nN/6nKcSLtA9Gy2/ONThOz3QaXpXKDM1phLUjxEj+UVlLrHCy67VsOI9il/TZQCbUA4eoQoGl WmXsScQeTG/U0JuM8vtHDLPv26xm5PDSkCQdgEi8cHVr2Ukjka/gwmW692tUY7gSQDoC/5RrC fS1/AKYODsy90J1qxeFCRS+eKPSHIh7tXVhfX3WhiKkL3mtqS9omeNFJmvMhNWqB1gGfKHNcN TLniFZciCNMsmw= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, goncholden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Mon, 07 Feb 2022 00:59:31 +0100 Michael Heerdegen wrote: > Stephen Berman writes: > >> > #+begin_src emacs-lisp >> > (defvar ml-scroll-amnt 0) >> > >> > (setq-default >> > mode-line-format >> > `(:eval (substring (format-mode-line ',mode-line-format) >> > ml-scroll-amnt))) >> > #+end_src >> > >> > and let mouse-4 and mouse-5 over the mode-line de- and increase >> > `ml-scroll-amnt'. That's all. >> >> Thanks, but doesn't this just truncate the mode-line-string >> continuously? For scrolling back, it seems necessary to store the >> original mode-line-string and concatenate the previously truncated part >> of it with the current value. > > No, you just have to change the value of `ml-scroll-amnt'. Try it. > That piece of code doesn't work as you describe. Since I don't have mouse-4 and mouse-5, I just tried evaluating that sexp with integral values (1, 0, -1) for ml-scroll-amnt, and only got truncation. Maybe I don't understand what you mean by "let mouse-4 and mouse-5 over the mode-line de- and increase `ml-scroll-amnt'". Can you show me bindings I can try with a 3-button mouse, or just with the keyboard? Steve Berman From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 06 19:51:37 2022 Received: (at 53776) by debbugs.gnu.org; 7 Feb 2022 00:51:37 +0000 Received: from localhost ([127.0.0.1]:40387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGsFk-0001pV-Tw for submit@debbugs.gnu.org; Sun, 06 Feb 2022 19:51:37 -0500 Received: from mout.web.de ([212.227.17.11]:59893) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGsFi-0001pH-Uz for 53776@debbugs.gnu.org; Sun, 06 Feb 2022 19:51:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1644195086; bh=INoK3C5a2hMBXfc4bsCbYdAY/Fi/cbF1C1klwWHjzIs=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=JvYMBE2cK1sOlhhrz/kQDeqAhfiATXtksFZxgkTGjWrdaZRRbKp4KJejy9aAF/QKY 0MlSR9tvlU9Ask4K/i4Jxr2V9Dec9C0kXnsJDT2EGQYkAoK3EY+cUO5u3YUyYHBpoP ubf1tSMjU/5OzHv5miPmEje6j1imnhh/M0Ajb6C4= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([84.57.248.31]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MiuSs-1nviqg2iGK-00erUi; Mon, 07 Feb 2022 01:51:26 +0100 From: Michael Heerdegen To: Stephen Berman Subject: Re: bug#53776: Modeline indicator when using define-minor-mode References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87iltsmzn9.fsf@web.de> <87tudc2m3n.fsf@gmx.net> <878run7jea.fsf@web.de> <87sfsvd1wc.fsf@rub.de> <874k5b7di4.fsf@web.de> <87mtj3cyfp.fsf@gmx.net> Date: Mon, 07 Feb 2022 01:51:25 +0100 In-Reply-To: <87mtj3cyfp.fsf@gmx.net> (Stephen Berman's message of "Mon, 07 Feb 2022 01:28:26 +0100") Message-ID: <87v8xr5wj6.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:6rnN0Sn80E6twGOAmN9OyZTyIGxBM3UUQdVlMBXBY9vzxPnEIUJ kYsPpGJDtvt07fA8WsBFnfrVsjjO/6U9X6DErrbFh2r/i3DyeWBy5sg85ghzSpBNuMEFSZI ar/T4HO+lFof92S3PyabUTjaPokfpnIVyTTBMvJTXYih8JuERzmGjdmx2gjQVTt1wKX5cnN NoTfosV0kTdBL+DhAZ0Lg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:BhN4LwP7iWY=:CjloBEXOlHd7C0enzUH0+a 81A+9yFflgBCuNL7AoyEmY5kxRlQyGGaBMWjYxIdg/hwhhhpri40K3hjwbSHe0kEEqlYroiWc un2QdmikR27PPTcgtbR3HrPqFnDWMKs9KOZLcPZn7Eo/V35b4JTfewWbT116PsOhXP9zSzcU2 enr+BtMy6ICO15o4BSiEY1Ewh3yDdWegTll+Zz+ppEHhkOavuHWvnT6etAbdtW4Cso0QOV4Dg adR3NLluqwtnuLaKFzf4hnU2lU1rPZWEECLbve1bw6Jz8qH450n24C22m4LOsV/QAGvsMkOev HI3d+sUuFWOEBIfKRxBQtHh+8R14UQoMuwfJ7+lWp3FC2HJtd0O5ReF1VfiV4DLsMHp+ELjr4 lrepuNKTaskfvzPhUqjnXGDOyfxqq7I+ZRYrctBHAVf+KFMvMSFvdtOm50cE4j7JSXhPMfU/c UJkMcI2q8MaGqWt8pjI5DnUad//NkxxOcXnQITyj/8/C2scNcnooO6Ych+8KQVTROLVYSOQxB 8cnBf2xOu/maC56NuWFpSSpNvCnoWjb4ThxqbfsdK78mEkQLWkMc/VTBY+/NYlGcxATuN9ydJ HVmgcHN3nIoa3U3FyOJ59A1dXobd434RRLIF1Lort12NHYecQ05ZdH6oiTBX8Fmy+QGZC+upw GJuB7QyOpkGbGnCtof4VJPVoWCt1DQByVOEiokTTIOahd2aE0DgoPXwvLZhZ+h5dG8qIiBRyx +XiLgXzONyzCKQ2FToD+BKbBHh2/uA9PyFL6+a+LVkTsTDWRCih8+z76qo/LYGv3i8zcQm4lW nmWSmZIEQ7aDojkz+5bCrIYOgM/UgY1IZoW695U6jpl2jYeQ5o4H5B8jgO6dG7WA/WiO0BeiU CrAqRB01C3D1Vr3bfHs9HRoa5aeqrRGq6BI4/LtIY58AAicz0rpucVTbmns+n7zg/mWT1UDDA 9UMANHxSxUhe45cwVE6sDLM7jbwdaxjlDbBNssjcR48wBc77B6bKXs9v8QWPFE9Co/wtn7/zC 705rnzMjvvhOeZ6clNbfj1r+61YTt2SJDzclG904DXI4ANYA5PZzdM2GKb2s77aIPOMBZ0R/W UOXn1llkHS2vXg= X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, goncholden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stephen Berman writes: > Since I don't have mouse-4 and mouse-5 These are the "keys" associated with the mouse wheel. In case you want to scroll with the mouse wheel. > I just tried evaluating that sexp with integral values (1, 0, -1) for >ml-scroll-amnt, and only got truncation. Maybe I don't understand what >you mean by "let mouse-4 and mouse-5 over the mode-line de- and >increase `ml-scroll-amnt'". Can you show me bindings I can try with a >3-button mouse, or just with the keyboard? I dunno how you want to scroll. Drag with mouse-1, scroll with a wheel or a key, something else? The code #+begin_src emacs-lisp (defvar ml-scroll-amnt 0) (setq-default mode-line-format `(:eval (substring (format-mode-line ',mode-line-format) ml-scroll-amnt))) #+end_src has to be evaluated once. Mode-line looks like before. (setq ml-scroll-amnt 3) scrolls the mode-line three chars to the left. (setq ml-scroll-amnt 0) to scroll back. Changing `ml-scroll-amnt' changes the scroll amount. How you implement changing the binding of `ml-scroll-amnt' is up to you, depends on how you want it to be. Scrolling to the right would only prepend space to the beginning, so I didn't handle negative `ml-scroll-amnt' values. Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 07 17:40:32 2022 Received: (at 53776) by debbugs.gnu.org; 7 Feb 2022 22:40:32 +0000 Received: from localhost ([127.0.0.1]:44062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHCgS-00063W-1w for submit@debbugs.gnu.org; Mon, 07 Feb 2022 17:40:32 -0500 Received: from mout.gmx.net ([212.227.15.15]:57793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHCgR-000637-1y for 53776@debbugs.gnu.org; Mon, 07 Feb 2022 17:40:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644273623; bh=Ru7alcN1EXPvGPes9tCmlvenEc106WAY0NxFjAsz5K8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=VTMnnSNI9i+wsMp4gEsZwGx4bhsRu4yw67kIByhnIakNx4UooRFDQ9c/lI7qvBDg0 oLSCRt6hc0LgGyjtR9E8BX0lokdwP4c960QXBvnklVOWGrv5DKHue30u1YP+hXKWZz DAqy12HU097HMeyG7IgCUuY3ZwB1TulIJ+VSI7Cw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobelfs2 ([89.246.36.229]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5G9n-1oHaHC2xGf-011BMC; Mon, 07 Feb 2022 23:40:23 +0100 From: Stephen Berman To: Michael Heerdegen Subject: Re: bug#53776: Modeline indicator when using define-minor-mode References: <87v8xun5ss.fsf@rub.de> <2qvgePp1-X8z9KUXXka3Sv4Cy2yj9mgatR8NS8E2VIe1ijRsHK9FNYTgnDVa-5_B1eeSofCm97AnsdYunXTn41Yixq5Ecg_rD35upiG3oec=@protonmail.com> <87r18in49c.fsf@rub.de> <87iltsmzn9.fsf@web.de> <87tudc2m3n.fsf@gmx.net> <878run7jea.fsf@web.de> <87sfsvd1wc.fsf@rub.de> <874k5b7di4.fsf@web.de> <87mtj3cyfp.fsf@gmx.net> <87v8xr5wj6.fsf@web.de> Date: Mon, 07 Feb 2022 23:40:22 +0100 In-Reply-To: <87v8xr5wj6.fsf@web.de> (Michael Heerdegen's message of "Mon, 07 Feb 2022 01:51:25 +0100") Message-ID: <871r0ewbah.fsf@rub.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:+wvWqiKwrr2Jj5vJJH8ZDi4uTGy7ZX58FaCgq/46zt0k6gxKevi uwLj889tHAwwg/QRQ6PJS6IQc1u2LT3oQYYxC7Y3KPNL/fzJfl0MoeGM/iwnruYTOi8m6om r1yQhbFMhLiNjRrpiQnMr9VZuq3h27+GPZUJgBLSu9QSyxzdFdGwoU8wIn1M82MinUQ0yPc t58EsZ2DlzV4IYJ2Fti+Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:uSj2y3bsBus=:aePg+70Dn41WYnDNyigM/h rIkwNakLWd8GyakQaIlFYCZ1mqXCXfnRMJVWaoMp8NkxXRP5D3IchuesL99qFtB/wcXA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debbugs-Envelope-To: 53776 Cc: 53776@debbugs.gnu.org, goncholden X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Mon, 07 Feb 2022 01:51:25 +0100 Michael Heerdegen wrote: > Stephen Berman writes: > >> Since I don't have mouse-4 and mouse-5 > > These are the "keys" associated with the mouse wheel. In case you want > to scroll with the mouse wheel. Ah, ok. >> I just tried evaluating that sexp with integral values (1, 0, -1) for >>ml-scroll-amnt, and only got truncation. Maybe I don't understand what >>you mean by "let mouse-4 and mouse-5 over the mode-line de- and >>increase `ml-scroll-amnt'". Can you show me bindings I can try with a >>3-button mouse, or just with the keyboard? > > I dunno how you want to scroll. Drag with mouse-1, scroll with a wheel > or a key, something else? > > The code > > #+begin_src emacs-lisp > (defvar ml-scroll-amnt 0) > > (setq-default > mode-line-format > `(:eval (substring (format-mode-line ',mode-line-format) > ml-scroll-amnt))) > #+end_src > > has to be evaluated once. Mode-line looks like before. > > (setq ml-scroll-amnt 3) scrolls the mode-line three chars to the left. > (setq ml-scroll-amnt 0) to scroll back. Changing `ml-scroll-amnt' > changes the scroll amount. > > How you implement changing the binding of `ml-scroll-amnt' is up to you, > depends on how you want it to be. Ok. When I have more time to spend on this, I'll try to do it. Steve Berman From unknown Fri Jun 20 05:29:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 08 Mar 2022 12:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator