Subject: bug#58183: 29.0.50; Extra spacing before '@' in emacsclient modeline

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 30 Sep 2022 14:59:39 +0200

[email-masked] writes:

> Graphical emacsclient frames have modelines that look something like
>
> U:    @---
>
> instead of
>
> U:@----

It seems to have something to do with the min-width display property.
When the client element is present, the default format is making the "U:"
element five chars wide instead of the entire "U:@---".

To experiment:

(setq mode-line-format
'("%e" mode-line-front-space (:propertize ("" mode-line-mule-info mode-line-client mode-line-modified mode-line-remote) 
              display (min-width (5.0)))
 mode-line-frame-identification mode-line-buffer-identification "   " mode-line-position (vc-mode vc-mode) "  " mode-line-modes mode-line-misc-info mode-line-end-spaces))