Gnus development mailing list
 help / color / mirror / Atom feed
* [BUG] gnus-summary-line-format `%4,-4L' fails with CVS gnus.
@ 2001-05-09  6:23 Daniel Pittman
  0 siblings, 0 replies; only message in thread
From: Daniel Pittman @ 2001-05-09  6:23 UTC (permalink / raw)
  Cc: Lars Magne Ingebrigtsen

In the file `gnus-sum.el', between version 6.60 and 6.61, Lars changed
the type of the `L' format option from a number to a string.

This was done, from reading the diff, to allow "?" to be displayed if
there was no information on the number of lines in a message.

This is a nice change and all, but it broke the handling of maximum size
constraints for the format option.

Specifically, if you specify `%-4L' as a constraint, the following code
is generated in the (semi-)compiled version of the format:

... (if (> 4 (length gnus-tmp-lines)) ...

The problem, of course, is that `gnus-tmp-lines' contains a number if
there was a lines header in the message.

Since `length' will fail (and throw an exception) in this case, this
makes the summary generation fail when this constraint is specified.

I would attach a patch, but I am unsure exactly where the number should
be converted to a string for this to work.

        Daniel

-- 
Psychoanalysis is the mental illness it purports to cure. 
        -- Karl Krauss


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-09  6:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-09  6:23 [BUG] gnus-summary-line-format `%4,-4L' fails with CVS gnus Daniel Pittman

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).