From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/18443 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: p0.41 MIME error Date: 08 Nov 1998 02:41:07 -0500 Organization: Computer Dept of U Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <2nzpa2k4x8.fsf@zsh.cs.rochester.edu> References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035156967 6200 80.91.224.250 (20 Oct 2002 23:36:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:36:07 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id CAA28956 for ; Sun, 8 Nov 1998 02:34:11 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id BAB14608; Sun, 8 Nov 1998 01:34:05 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 08 Nov 1998 01:33:49 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id BAA03407 for ; Sun, 8 Nov 1998 01:33:39 -0600 (CST) Original-Received: from cayuga.cs.rochester.edu (cayuga.cs.rochester.edu [192.5.53.209]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id CAA28946 for ; Sun, 8 Nov 1998 02:33:33 -0500 (EST) Original-Received: from slate.cs.rochester.edu (slate.cs.rochester.edu [192.5.53.101]) by cayuga.cs.rochester.edu (8.6.9/O) with ESMTP id CAA08172 for ; Sun, 8 Nov 1998 02:33:32 -0500 Original-Received: from brain.cs.rochester.edu (heart.cs.rochester.edu [192.5.53.109]) by slate.cs.rochester.edu (8.6.9/O) with ESMTP id CAA23790 for ; Sun, 8 Nov 1998 02:33:29 -0500 Original-Received: (from zsh@localhost) by brain.cs.rochester.edu (8.9.0/8.8.5) id CAA02490; Sun, 8 Nov 1998 02:41:08 -0500 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: Karl Kleinpaste's message of "07 Nov 1998 22:05:51 -500" Original-Lines: 47 User-Agent: Gnus/5.070041 (Pterodactyl Gnus v0.41) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:18443 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:18443 >>>>> "KK" == Karl Kleinpaste writes: KK> This stack trace... KK> Signaling: (error "format specifier %d doesn't match argument type") KK> format("%d. " nil) KK> gnus-mime-display-alternative(((#"> ("text/plain" ...) 7bit nil nil nil) (#"> ("text/html" ...) 7bit nil nil nil))) KK> gnus-display-mime() KK> gnus-article-prepare-display() KK> gnus-article-prepare(15456 nil) KK> gnus-summary-display-article(15456 nil) KK> gnus-summary-select-article(nil force) KK> gnus-summary-show-article(nil) KK> call-interactively(gnus-summary-show-article) KK> ...occurs with this article containing MIME multipart/alternative... A patch is attached. -- Shenghuo :- cut --- --- ChangeLog 1998/11/08 07:36:02 1.3 +++ ChangeLog 1998/11/08 07:36:56 @@ -1,3 +1,7 @@ +Sun Nov 8 02:36:33 1998 Shenghuo ZHU + + * gnus-art.el (gnus-display-mime): Add id for alternative part. + Sun Nov 8 00:45:13 1998 Shenghuo ZHU * gnus-agent.el (gnus-agent-fetch-articles): Use with-temp-buffer. --- gnus-art.el 1998/11/08 07:22:20 1.1 +++ gnus-art.el 1998/11/08 07:38:13 @@ -2394,7 +2394,9 @@ (delete-region (point) (point-max))) (if (stringp (car handles)) (if (equal (car handles) "multipart/alternative") - (gnus-mime-display-alternative (cdr handles)) + (let ((id (1+ (length gnus-article-mime-handle-alist)))) + (push (cons id handles) gnus-article-mime-handle-alist) + (gnus-mime-display-alternative (cdr handles) nil nil id)) (gnus-mime-display-mixed (cdr handles))) (gnus-mime-display-single handles)))))