GNU bug report logs - #53776
Modeline indicator when using define-minor-mode

Previous Next

Package: emacs;

Reported by: goncholden <goncholden <at> protonmail.com>

Date: Fri, 4 Feb 2022 11:56:01 UTC

Severity: wishlist

Tags: notabug

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

Bug is archived. No further changes may be made.

Full log


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

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 53776 <at> debbugs.gnu.org, goncholden <goncholden <at> protonmail.com>
Subject: Re: bug#53776: Modeline indicator when using define-minor-mode
Date: Sun, 06 Feb 2022 04:39:54 +0100
Stephen Berman <stephen.berman <at> 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.

> 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.




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

Previous Next


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