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


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Howard Melman <hmelman <at> gmail.com>
Cc: 30978 <at> debbugs.gnu.org
Subject: bug#30978: 25.3; Suggestion: define-minor-mode should define mode-lighter variable
Date: Sun, 14 Jul 2019 15:40:36 +0200
Howard Melman <hmelman <at> gmail.com> writes:

> Some packages define a user option to let users configure
> the lighter string used in the mode-line, but some just use
> a hard coded string. Packages such as diminish, delight and
> dim exist to help customize these.
>
> The define-minor-mode macro creates keymaps and other things
> to help mode authors follow conventions. If it created a
> mode-lighter user option when passed in a string (and not a
> symbol) then users would have an easier time configuring
> their mode-line without having to find and install a package
> to do so.

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?

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




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

Previous Next


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