From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/41140 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-correct-length vs. string-width Date: Sun, 30 Dec 2001 02:32:38 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035176583 4574 80.91.224.250 (21 Oct 2002 05:03:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:03:03 +0000 (UTC) Return-Path: Original-Received: (qmail 11447 invoked from network); 30 Dec 2001 01:41:05 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 30 Dec 2001 01:41:05 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16KUxw-0001jt-00; Sat, 29 Dec 2001 19:40:44 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 29 Dec 2001 19:40:36 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id TAA00398 for ; Sat, 29 Dec 2001 19:40:26 -0600 (CST) Original-Received: (qmail 11429 invoked by alias); 30 Dec 2001 01:40:29 -0000 Original-Received: (qmail 11424 invoked from network); 30 Dec 2001 01:40:28 -0000 Original-Received: from fepd.post.tele.dk (195.41.46.149) by gnus.org with SMTP; 30 Dec 2001 01:40:28 -0000 Original-Received: from defun.localdomain ([195.249.82.222]) by fepD.post.tele.dk (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20011230014025.XRDQ16766.fepD.post.tele.dk@defun.localdomain> for ; Sun, 30 Dec 2001 02:40:25 +0100 Original-To: ding@gnus.org X-Face: &>4YWj)5jy97[$J|&W(MX>,:L.9*|o]WXwhY40_'#-Yc:J-&v+U*?uhK9cqS'eaG(SLj0o E)IS]Ua_g,_"S$Xv)V5^T<^s?U8Tt6XZ~2EdDl^]={px>)aE[grl6~~G`7:vKu!:tZ_.L6,g7qV[; vn><9`4hh(Pf^gH'EJ[!c/$Jog51Q In-Reply-To: (jas@extundo.com's message of "Fri, 28 Dec 2001 17:29:24 +0000 (UTC)") Original-Lines: 27 User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:41140 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:41140 jas@extundo.com (Simon Josefsson) writes: > Jesper Harder writes: > >> Is the built-in function `string-width' known to be broken? > > When I try the examples from the original thread > (<87itf461hj.fsf@inanna.rimspace.net> etc) Thanks for the pointer. I hadn't noticed that it is customizable with `gnus-use-correct-string-widths'. So it's not so bad after all, though I think nil would maybe be a better default, because it is so slow. But there still seems to be a bug in the code in `gnus-parse-simple-format'. If I set `gnus-use-correct-string-widths' to nil, `gnus-correct-length' is still used, although less frequently than before. Hmm, I don't really understand the code, but AFAICS the problem is the condition in line 558 (gnus-spec.el): (if (or max-width cut-width ignore-value (and (featurep 'xemacs) gnus-use-correct-string-widths)) which causes `gnus-correct-pad-form' to be used even if g-u-c-string-widths is nil.