Malabarba / smart-mode-line

A powerful and beautiful mode-line for Emacs.
901 stars 54 forks source link

Modeline trucation in Emacs 29 #261

Open fraricci opened 1 year ago

fraricci commented 1 year ago

sml/version is: 2.13, and emacs version is: 29.0.91.

As shown in the following picture the modeline appears truncated on the right: image

the last piece that appears truncated is the python environment mode. But any other mode that appears at the rightmost of the modeline gets truncated: image

garyo commented 1 year ago

I'm seeing the same thing with latest trunk emacs build. I added this to work around it -- not perfect but helps for me:

(setq sml/extra-filler -6)
fraricci commented 1 year ago

Thanks! Indeed, that works for me as well.

wasamasa commented 1 year ago

Bumping since Emacs 29.1 has been released. The work-around is great, but it would be even greater to use the newly added padding/alignment specs if supported.

ve-nt commented 1 year ago
(setq sml/extra-filler -6)

This is only a partial fix for me. Depending on the size of the window, truncation or excess padding still sometimes occurs. By "excess padding" I mean spaces between the right-flushed bit on the mode-line and the edge of the window. This seems to be caused by the minor modes list on the mode line, and how sml decides to shorten it. I've had a play with the value to set sml/extra-filler but none seem to remove this problem entirely.