[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7307: 24.0.50; Mode line had more than just dashes removed
From: |
Eli Zaretskii |
Subject: |
bug#7307: 24.0.50; Mode line had more than just dashes removed |
Date: |
Sat, 30 Oct 2010 15:49:22 +0200 |
> From: Stephen Berman <stephen.berman@gmx.net>
> Cc: 7307@debbugs.gnu.org
> Date: Sat, 30 Oct 2010 15:27:32 +0200
>
> On Sat, 30 Oct 2010 08:51:14 +0200 Eli Zaretskii <eliz@gnu.org> wrote:
>
> >> From: Stephen Berman <stephen.berman@gmx.net>
> >> Date: Sat, 30 Oct 2010 01:05:32 +0200
> >> Cc:
> >>
> >> The only problem is specifying the length of the
> >> string: (window-width) as the maximum possible length fails here,
> >> because the mode line is constructed before the window-system frame, and
> >> has a value of just 10. So I just picked 200 as a plausible maximum.
> >> Maybe there's a better way, but this seems to work ok.
> >
> > Would it help to use window-width as the maximum?
>
> ?? See above.
Sorry, my bad.
> Anyway, maybe it's less kludgy to introduce a mode line
> %-construct for spaces. Here's a patch for that, which just adapts the
> code for "%-".
IMO, this is cleaner. Thanks.