From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/37418 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug on Summary line. Date: Fri, 03 Aug 2001 10:43:48 -0700 Message-ID: <2nvgk5f38r.fsf@piglet.jia.vnet> References: <2nitggb5vq.fsf@piglet.jia.vnet> <8766c7f4bf.fsf@inanna.rimspace.net> <87d76dxmqo.fsf@inanna.rimspace.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035172837 13787 80.91.224.250 (21 Oct 2002 04:00:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:00:37 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 23557 invoked from network); 3 Aug 2001 17:46:35 -0000 Original-Received: from unknown (HELO zsh.2y.net) (131.241.79.83) by gnus.org with SMTP; 3 Aug 2001 17:46:35 -0000 Original-Received: (from zsh@localhost) by zsh.2y.net (8.11.2/8.11.2) id f73Hhnv20991; Fri, 3 Aug 2001 10:43:49 -0700 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: <87d76dxmqo.fsf@inanna.rimspace.net> (Daniel Pittman's message of "04 Aug 2001 00:05:19 +1000") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.105 Original-Lines: 19 Xref: main.gmane.org gmane.emacs.gnus.general:37418 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:37418 Daniel Pittman writes: > As such, a character that is not one column wide spills further than it > should. For most characters, you have `(= 1 (char-width ch))'. For > double-width characters, that is actually `(= 2 (char-width ch))'. > > So, what you want to do is go into `gnus-spec.el' and find the functions > `gnus-tilde-max-form' and `gnus-tilde-cut-form'. They are, for > reference, on lines 249 and 265. > > You then want to rewrite those so that, rather than using `substring', > they use something akin to `truncate-string-to-width', `string-width' > and `char-width'. truncate-string-to-width and string-width don't work, at least in Emacs 21. I've tried use them to fixed the problem before. Using char-width might slow down listing the summary :-(. ShengHuo