From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60865 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: Imroving deleting/stripping MIME parts Date: Fri, 02 Sep 2005 16:07:32 +0900 Organization: Emacsen advocacy group Message-ID: References: <87r7cfxfma.fsf@uwo.ca> <87d5nw88p9.fsf@uwo.ca> <87fysr78gi.fsf@uwo.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1125645046 23651 80.91.229.2 (2 Sep 2005 07:10:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2005 07:10:46 +0000 (UTC) Original-X-From: ding-owner+m9397=ding+2daccount=gmane.org@lists.math.uh.edu Fri Sep 02 09:10:37 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EB5fe-0006NS-RW for ding-account@gmane.org; Fri, 02 Sep 2005 09:09:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EB5fe-0003s4-00 for ding-account@gmane.org; Fri, 02 Sep 2005 02:09:06 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EB5eH-0003rv-00 for ding@lists.math.uh.edu; Fri, 02 Sep 2005 02:07:41 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EB5eG-000515-GM for ding@lists.math.uh.edu; Fri, 02 Sep 2005 02:07:41 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EB5eF-0000fU-00 for ; Fri, 02 Sep 2005 09:07:39 +0200 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1EB5eU-0004XI-N3 for ding@gnus.org; Fri, 02 Sep 2005 02:07:55 -0500 Original-To: ding@gnus.org X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:rzn5kfzybwsDx4iPX/n9RbqeU4o= X-Hashcash: 1:20:050902:ding@gnus.org::1dgpLqvaaOj9bLg9:00000hXK X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60865 Archived-At: --=-=-= >>>>> In Reiner Steib wrote: > I worked for my test cases. Please install. Done. > There is still the problem (probably with `gnus-article-goto-part'; > unrelated to your code), that using `d' repeatedly in a message with > several attachments sometimes fails to advance to the next part (with > `gnus-auto-select-part' set to 1). If you're talking about the case where there are not only buttonized parts but also unbuttonized parts in the article, does the following patch solve it? --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- gnus-art.el~ 2005-09-01 22:14:44 +0000 +++ gnus-art.el 2005-09-02 07:06:35 +0000 @@ -4122,7 +4122,16 @@ n parts) parts))) (gnus-message 9 "Jumping to part %s." n) - (gnus-article-goto-part n))) + (cond ((>= gnus-auto-select-part 1) + (while (and (<= n parts) + (not (gnus-article-goto-part n))) + (setq n (1+ n)))) + ((< gnus-auto-select-part 0) + (while (and (>= n 1) + (not (gnus-article-goto-part n))) + (setq n (1- n)))) + (t + (gnus-article-goto-part n))))) (eval-when-compile (defsubst gnus-article-edit-part (handles &optional current-id) --=-=-=--