From: Howard Melman <hmelman@gmail.com>
To: 56215@debbugs.gnu.org
Subject: bug#56215: Request for decluttering capability on mode-line keywords
Date: Fri, 01 Jul 2022 12:38:34 -0400 [thread overview]
Message-ID: <lywncwg54l.fsf@Lumet.home> (raw)
In-Reply-To: <N5PyfPq--3-2@tutanota.com>
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Phil Sainty <psainty@orcon.net.nz> writes:
>
>> You might find the GNU ELPA package delight.el to be suitable.
>> See https://www.emacswiki.org/emacs/DelightedModes for details.
>>
>> There are other options as well, including these (and maybe
>> more besides):
>>
>> https://emacs.stackexchange.com/a/72194/454
>>
>> Lars, I think this is a duplicate of bug#30978 ?
>
> Yes, sort of. And the conclusion is that there's a bunch of these
> packages out there for a reason -- people have very different needs and
> expectations for the mode line, so different packages makes sense. So
> adding something to the core here wouldn't be helpful, and I'm therefore
> closing this bug report.
As I tried to express in bug#30978, one of the reasons there
are packages to do this is that some modes hardcode their
lighter string and if they defined variables instead, like
many other modes do, users (and these package writers) would
have an easier time. Now that most minor modes use
define-minor-mode there's an easy place to correct this.
I think there are now 3 people supporting this and the only
argument against was:
On the one hand, a `foo-mode-lighter' variable would make
things easy and regular. On the other hand, it means
creating a new user option for each minor mode (i.e., a
defcustom), and it means having these in `minor-mode-alist',
which means one additional variable lookup (per minor mode)
when creating the mode line.
I still think that's a fine trade off. I see ~70 modes in emacs
that use a hard-coded :lighter string and most are specific
to some major mode as opposed to being generally on in all
modes.
I wish you'd reconsider bug#30978.
Also, the elisp manual when discussing :lighter doesn't
mention using a symbol as a value or the customization that
provides to the user and I think it should.
--
Howard
next prev parent reply other threads:[~2022-07-01 16:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-25 13:08 bug#56215: Request for decluttering capability on mode-line keywords carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-26 0:05 ` Phil Sainty
2022-06-26 14:56 ` Lars Ingebrigtsen
2022-07-01 16:38 ` Howard Melman [this message]
[not found] ` <87sfnreamy.fsf@gnus.org-N5VW6WZ--3-2>
2022-06-26 15:09 ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <0c7b006177f251663dfa0f0e0d1e7344@webmail.orcon.net.nz-N5SKEQ_----2>
2022-06-26 8:34 ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-26 9:28 ` Phil Sainty
2022-06-26 10:48 ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-26 20:59 ` Phil Sainty
[not found] ` <N5Uc10f--3-2@tutanota.com-N5UcM5i----2>
2022-06-26 14:07 ` carlmarcos--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-08 15:57 ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=lywncwg54l.fsf@Lumet.home \
--to=hmelman@gmail.com \
--cc=56215@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.