GNU bug report logs -
#34476
fluffy whitespace in the mode-line, despite it running off the screen
Previous Next
Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Date: Thu, 14 Feb 2019 13:53:01 UTC
Severity: wishlist
Tags: fixed
Found in version 5.13
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
> Note a few subtle issues:
>
> . I've limited the feature to the mode line; programs that set
> header-line and tab-line either don't want this, or should format
> those lines to not waste screen space to begin with;
Yup.
> . I've refrained from squeezing spaces if they have non-default
> faces, on the assumption that those spaces are significant -- the
> result is that the trailing spaces of the buffer name are not
> squeezed, but I think we have no choice here, as down that path
> lies madness (think a mode line that plays some fancy games with
> font sizes).
Right, so with the patch, I get these two mode lines (with and without
compaction):
[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
There's four spaces between *scratch* and All because they have
different faces... which makes me wonder why there's trailing spaces in
the buffer name at all, instead of just three spaces after the buffer
name in the mode line format? But that's a different issue; the patch
looks great.
There's also the question of allowing a value of `long' to
mode-line-compact -- which would only compact the mode line if it's
longer than the window width. Would that be difficult to add?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.