Gnus development mailing list
 help / color / mirror / Atom feed
* Slight bug in the `gnus-use-correct-string-widths' implementation.
@ 2001-08-31  9:17 Daniel Pittman
  2001-09-03  1:32 ` Jinhyok Heo
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Pittman @ 2001-08-31  9:17 UTC (permalink / raw)


The implementation of `gnus-use-correct-string-widths' is really nifty
and stuff, but it's not /quite/ complete at the moment.

When I go into a summary buffer with the following format:

(setq gnus-summary-line-format "%U%R%[%(%4,-4uL %ub%-20,20f%)%]: %B%S\n")

This expands, in the evaluation of the code, to the following Lisp:

,----
| (let ((val (eval (gnus-summary-from-or-to-or-newsgroups gnus-tmp-header))))
|   (if (> (gnus-correct-length val) 20)
|     (gnus-correct-substring val 0 20) val))
`----

As far as I can see, this is the /only/ time that Gnus tries to limit
the length for the `%-20,20f' expansion in the code above.

Now, that isn't strictly correct because, deep inside the code
somewhere, the result of that function (6 columns) is padded with spaces
-- 17 of them.

I get the following header:

! [ 668  Brian J. Watson     ]: [PATCH 2.4.7] generic hash table implementation
! [ 251  Jason Thomas        ]: [PATCH] patch's for vmware 2.0.4 for use with linux-2.4.8 kernel
  [ 810  김용일                 ]: presario 1700 lan card
  [  20 +David S. Miller     ]: Re: [UPDATE] 2.4.10-pre2 PCI64, API changes README

So, it looks like something in the padding code for summary lines isn't
quite right, at least on XEmacs, for `gnus-use-correct-string-widths'.

      Daniel

-- 
It's a kind of war
Where I plant bombs inside
of myself
        -- Anne Sexton, _The Addict_


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-09-10  1:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-31  9:17 Slight bug in the `gnus-use-correct-string-widths' implementation Daniel Pittman
2001-09-03  1:32 ` Jinhyok Heo
2001-09-07 12:07   ` Daniel Pittman
2001-09-07 12:12     ` Daniel Pittman
2001-09-08  1:12     ` Jinhyok Heo
2001-09-08  7:55     ` Simon Josefsson
2001-09-09  3:31       ` Michael Totschnig
2001-09-10  1:13         ` 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).