From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/41017 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-correct-length vs. string-width Date: Sat, 29 Dec 2001 00:24:39 +0100 Organization: Programmerer Ingebrigtsen 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 1035176482 3977 80.91.224.250 (21 Oct 2002 05:01:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:01:22 +0000 (UTC) Return-Path: Original-Received: (qmail 15048 invoked from network); 28 Dec 2001 23:31:49 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 28 Dec 2001 23:31:49 -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 16K6RF-0001LU-00; Fri, 28 Dec 2001 17:29:21 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 28 Dec 2001 17:29:11 -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 RAA22602 for ; Fri, 28 Dec 2001 17:28:59 -0600 (CST) Original-Received: (qmail 14984 invoked by alias); 28 Dec 2001 23:29:03 -0000 Original-Received: (qmail 14979 invoked from network); 28 Dec 2001 23:29:02 -0000 Original-Received: from quimby.gnus.org (HELO quimby2.netfonds.no) (195.204.10.66) by gnus.org with SMTP; 28 Dec 2001 23:29:02 -0000 Original-Received: from news by quimby2.netfonds.no with local (Exim 3.12 #1 (Debian)) id 16K6fO-0004tS-00 for ; Sat, 29 Dec 2001 00:43:58 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 20 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby2.netfonds.no 1009583038 18674 195.204.10.148 (28 Dec 2001 23:43:58 GMT) Original-X-Complaints-To: usenet@quimby2.netfonds.no Original-NNTP-Posting-Date: 28 Dec 2001 23:43:58 GMT Mail-Copies-To: never X-Now-Playing: Hrvatski's _Oiseaux 96-98_: "You Didn't Look High Enough" User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 (i686-pc-linux-gnu) X-Face: &w!^oO~dS|}-P0~ge{$c!h\ writes: > When I try the examples from the original thread > (<87itf461hj.fsf@inanna.rimspace.net> etc) `string-width' works fine. > (format "%-10s" ...) with wide characters still behaves differently > between Emacs and XEmacs though, but that shouldn't matter. It seems to work correctly on Emacs 20, 21 and XEmacs 21, so I think we should probably ditch `gnus-correct-length' and related functions like `gnus-char-width'. Or, at the very least, have gnus-ems.el just check whether `string-width' gives reasonable results, and defalias according to that. Unless somebody has a good reason for why we shouldn't do that... -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen