From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/41617 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, 05 Jan 2002 17:08:30 +0100 Organization: Programmerer Ingebrigtsen Sender: owner-ding@hpc.uh.edu Message-ID: References: <877kqx704t.fsf@inanna.rimspace.net> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035176986 7147 80.91.224.250 (21 Oct 2002 05:09:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:09:46 +0000 (UTC) Return-Path: Original-Received: (qmail 6001 invoked from network); 5 Jan 2002 16:09:45 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 5 Jan 2002 16:09:45 -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 16MtNu-0001vi-00; Sat, 05 Jan 2002 10:09:26 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sat, 05 Jan 2002 10:09:18 -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 KAA13938 for ; Sat, 5 Jan 2002 10:09:05 -0600 (CST) Original-Received: (qmail 5988 invoked by alias); 5 Jan 2002 16:09:08 -0000 Original-Received: (qmail 5983 invoked from network); 5 Jan 2002 16:09:07 -0000 Original-Received: from quimby.gnus.org (HELO quimby2.netfonds.no) (195.204.10.66) by gnus.org with SMTP; 5 Jan 2002 16:09:07 -0000 Original-Received: from news by quimby2.netfonds.no with local (Exim 3.12 #1 (Debian)) id 16MtOT-0006kR-00 for ; Sat, 05 Jan 2002 17:10:01 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 27 Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby2.netfonds.no 1010247001 25575 195.204.10.148 (5 Jan 2002 16:10:01 GMT) Original-X-Complaints-To: usenet@quimby2.netfonds.no Original-NNTP-Posting-Date: 5 Jan 2002 16:10:01 GMT Mail-Copies-To: never X-Now-Playing: 310's _Downtown & Brooklyn Only (1)_: "Stickbag" User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Copyleft, i386-debian-linux) X-Face: |J writes: > (format "%-10s" ...) differs on character vs byte width between XEmacs > and GNU Emacs. This means that the "correct" width is lost when doing > cut operations on wide characters in the summary buffer... Ah, right; that was it. But we could alias those functions to the built-in functions on Emacsen that give us the results we want. This is under XEmacs: (string-width (format "%10s" "ÄãºÃ")) => 12 And this is under Emacs: (string-width (format "%10s" "ÄãºÃ")) => 10 So how about if we just default `gnus-use-correct-string-widths' to `(featurep 'xemacs)'? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen