GNU bug report logs - #30978
25.3; Suggestion: define-minor-mode should define mode-lighter variable

Previous Next

Package: emacs;

Reported by: Howard Melman <hmelman <at> gmail.com>

Date: Wed, 28 Mar 2018 20:13:02 UTC

Severity: wishlist

Tags: moreinfo, wontfix

Found in version 25.3

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 30978 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 30978 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#30978: 25.3; Suggestion: define-minor-mode should define
 mode-lighter variable
Date: Fri, 25 Jun 2021 16:27:51 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>>> I think this makes sense -- define-minor-mode would define a
>>> buffer-local variable, I guess, that the users could set to change the
>>> lighter?
>>>
>>> Like...  `FOO-mode-lighter' or something?  Any opinions?
>>
>> Yes, it sounds like a good idea.
>>
>> I'm not sure why you propose that it should be buffer-local though.
>> Wouldn't one want to configure this globally by default?
>
> Hm...  yes, a global variable makes more sense.  I was thinking that
> somebody would want a different lighter in different buffers, but that
> does sound rather unlikely.

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.

Or do we have a separate mechanism for this somewhere?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 358 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.