From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/38456 Path: main.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.gnus.general Subject: Slight bug in the `gnus-use-correct-string-widths' implementation. Date: Fri, 31 Aug 2001 19:17:11 +1000 Organization: Not today, thank you, Mother. Message-ID: <87itf461hj.fsf@inanna.rimspace.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=euc-kr Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035174316 22534 80.91.224.250 (21 Oct 2002 04:25:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:25:16 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 18866 invoked from network); 31 Aug 2001 09:17:29 -0000 Original-Received: from melancholia.rimspace.net (HELO melancholia.danann.net) (203.36.211.210) by gnus.org with SMTP; 31 Aug 2001 09:17:29 -0000 Original-Received: from localhost (melancholia.rimspace.net [203.36.211.210]) by melancholia.danann.net (Postfix) with ESMTP id A281D2A833 for ; Fri, 31 Aug 2001 19:17:13 +1000 (EST) Original-Received: by localhost (Postfix, from userid 1000) id 8E2DD82069; Fri, 31 Aug 2001 19:17:11 +1000 (EST) Original-To: ding@gnus.org X-Homepage: http://danann.net/ User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.5 (artichoke) Original-Lines: 39 Xref: main.gmane.org gmane.emacs.gnus.general:38456 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:38456 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 implementa= tion ! [ 251 Jason Thomas ]: [PATCH] patch's for vmware 2.0.4 for use wi= th linux-2.4.8 kernel [ 810 =B1=E8=BF=EB=C0=CF ]: 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 --=20 It's a kind of war Where I plant bombs inside of myself -- Anne Sexton, _The Addict_