bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30056: 25.3; battery-mode-line-string missing leading space


From: Allen Li
Subject: bug#30056: 25.3; battery-mode-line-string missing leading space
Date: Wed, 12 Aug 2020 07:31:17 +0000

On Tue, Aug 11, 2020 at 11:20 AM Lars Ingebrigtsen <larsi@gnus.org> wrote:
Allen Li <darkfeline@felesatra.moe> writes:

> I find that idea intriguing.  It would work, and it's a useful feature
> to have as an Emacs Lisp developer, because it provide a robust solution
> to the problem of "I want to have a space separation in the mode line,
> but I don't know what comes before/after me".
>
> Although personally, I feel a little dirty adding a new %-construct just
> for this.

I think we either have to do this, or introduce a formal convention for
these strings that say either to always add a space to the front or the
back of them.

I guess we don't really see this much as a problem in practice, because
we don't have many of these "non-mode" strings in the mode line.

So perhaps settling on a convention and then altering all the instances
to follow it would be more efficient -- there's probably just a few
dozen of them?

I'm fine with that (I assumed that such a convention already existed previously on this bug's thread).
 

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]