From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56812 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.gnus.general Subject: Re: mm-coding-system-priorities Date: 25 Mar 2004 00:06:28 +0900 Sender: ding-owner@lists.math.uh.edu Message-ID: <871xniz3m3.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <878yhqz69f.fsf@tc-1-100.kawasaki.gol.ne.jp> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080140550 24712 80.91.224.253 (24 Mar 2004 15:02:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Mar 2004 15:02:30 +0000 (UTC) Original-X-From: ding-owner+M5351@lists.math.uh.edu Wed Mar 24 16:02:22 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B69te-0006NT-00 for ; Wed, 24 Mar 2004 16:02:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1B69tD-0007Vk-00; Wed, 24 Mar 2004 09:01:55 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1B69t6-0007Ve-00 for ding@lists.math.uh.edu; Wed, 24 Mar 2004 09:01:48 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id BB0933A003F for ; Wed, 24 Mar 2004 09:01:47 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B69t4-0002fE-00 for ; Wed, 24 Mar 2004 16:01:47 +0100 Original-Received: from yokohama2-61-203-152-168.ap.0038.net ([61.203.152.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 16:01:46 +0100 Original-Received: from miles by yokohama2-61-203-152-168.ap.0038.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Mar 2004 16:01:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 16 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: yokohama2-61-203-152-168.ap.0038.net System-Type: i686-pc-linux-gnu Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56812 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56812 Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes: > I've done it in `mm-sort-coding-systems-predicate' (but I don't > remember exactly why I did it in this way). If you think that your > solution is better, we may change it. The difference would seem to be that doing it in `mm-sort-coding-systems-predicate' ends up doing the mapcar around log-N times, whereas temporarily rebinding mm-coding-system-priorities just does it once. I think N is often around ~30-40 if the message contains any non-ascii characters, so it may be worth changing (though mm-coding-system-priorities is probably usually fairly short, in which case each mapcar is not all that expensive). -Miles -- 80% of success is just showing up. --Woody Allen