[Top][All Lists]

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

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

From: Lars Ingebrigtsen
Subject: bug#30056: 25.3; battery-mode-line-string missing leading space
Date: Tue, 11 Aug 2020 13:19:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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?

(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]