From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#30978: 25.3; Suggestion: define-minor-mode should define mode-lighter variable Date: Sat, 26 Jun 2021 10:57:13 +1200 Message-ID: <97892e0eebeeff0413287058d68ad86b@webmail.orcon.net.nz> References: <874l3ou42z.fsf@mouse.gnus.org> <87sgcdft5w.fsf@gnus.org> <87pmwadno8.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3885"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: Stefan Kangas , 30978@debbugs.gnu.org, Stefan Monnier To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 26 00:58:08 2021 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 1lwum0-0000oE-FI for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Jun 2021 00:58:08 +0200 Original-Received: from localhost ([::1]:48176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwulz-0006Qa-HM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Jun 2021 18:58:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwulu-0006QQ-5h for bug-gnu-emacs@gnu.org; Fri, 25 Jun 2021 18:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwult-0006Ea-UI for bug-gnu-emacs@gnu.org; Fri, 25 Jun 2021 18:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lwult-0003sU-Rz for bug-gnu-emacs@gnu.org; Fri, 25 Jun 2021 18:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Jun 2021 22:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30978 X-GNU-PR-Package: emacs Original-Received: via spool by 30978-submit@debbugs.gnu.org id=B30978.162466184914830 (code B ref 30978); Fri, 25 Jun 2021 22:58:01 +0000 Original-Received: (at 30978) by debbugs.gnu.org; 25 Jun 2021 22:57:29 +0000 Original-Received: from localhost ([127.0.0.1]:46916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwulN-0003r8-LT for submit@debbugs.gnu.org; Fri, 25 Jun 2021 18:57:29 -0400 Original-Received: from smtp-2.orcon.net.nz ([60.234.4.43]:40031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwulK-0003qv-GS for 30978@debbugs.gnu.org; Fri, 25 Jun 2021 18:57:28 -0400 Original-Received: from [10.253.37.70] (port=27872 helo=webmail.orcon.net.nz) by smtp-2.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lwul7-000263-FI; Sat, 26 Jun 2021 10:57:14 +1200 Original-Received: from ip-116-251-162-85.kinect.net.nz ([116.251.162.85]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Sat, 26 Jun 2021 10:57:13 +1200 In-Reply-To: <87pmwadno8.fsf@gnus.org> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209006 Archived-At: On 2021-06-26 02:27, Lars Ingebrigtsen wrote: > Does anybody else have an opinion here? The suggestion is to make > define-minor-mode define a `foo-mode-lighter' variable that users can > then change to easily change the lighters. It sounds like a good change. > Or do we have a separate mechanism for this somewhere? We do in GNU ELPA (see https://www.emacswiki.org/emacs/DelightedModes regarding the one I wrote, delight.el), but that and similar libraries mostly exist because there wasn't something as trivial as a variable to set. Delight also takes care of synchronising the label in `mode-line-menu' (down-mouse-3 on `mode-line-modes'), as well as allowing custom names for major modes via the same UI -- but providing an easy way to set minor mode lighters was the actual reason for writing it. -Phil