Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: `gnus-mode-non-string-length' default value change
Date: Sun, 05 Sep 2010 21:56:11 +0200	[thread overview]
Message-ID: <m3tym46k2s.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <m3vd6kt20q.fsf@carbon.jhcloos.org>

James Cloos <cloos@jhcloos.com> writes:

> First, it affects the summary mode line, too.
>
> Here is the summary line with nil:
>
> And with 30:

Oh, I see.  Hm.  Yes, that's all wrong.

There's two bugs:

The code tries to find out what the length of the bits that arent the
mode string is, which is what `gnus-mode-non-string-length' means --
it's the length of the other bits that should be displayed (to the
right).  But that should be done dynamically, and not based on a
constant like 30.  I'm not sure how to fix that, though.

The second bug is that it pads the string before using it, and that's
totally meaningless.  I've now changed that (and pushed it out), while I
see whether there's a way to get at the actual length of the bits in the
mode line...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




      reply	other threads:[~2010-09-05 19:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-04 20:34 Štěpán Němec
2010-09-04 20:43 ` Lars Magne Ingebrigtsen
2010-09-04 21:34   ` James Cloos
2010-09-04 21:51     ` Lars Magne Ingebrigtsen
2010-09-05 19:37       ` James Cloos
2010-09-05 19:56         ` Lars Magne Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3tym46k2s.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).