From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25705 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: strange behaviour when `B c'ing an empty article Date: 06 Oct 1999 19:24:09 -0400 Organization: U of Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <5b7ll03wfa.fsf@giga.cs.rochester.edu> References: <874sg46wco.fsf@chow.mat.jhu.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035163043 15425 80.91.224.250 (21 Oct 2002 01:17:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:17:23 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id TAA25994 for ; Wed, 6 Oct 1999 19:26:22 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id SAB28294; Wed, 6 Oct 1999 18:25:20 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 06 Oct 1999 18:26:25 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id SAA25729 for ; Wed, 6 Oct 1999 18:26:15 -0500 (CDT) 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 ESMTP id TAA25967 for ; Wed, 6 Oct 1999 19:24:13 -0400 (EDT) Original-Received: from giga.cs.rochester.edu (giga.cs.rochester.edu [192.5.53.186]) by cayuga.cs.rochester.edu (8.9.3/Q) with ESMTP id TAA06747 for ; Wed, 6 Oct 1999 19:24:10 -0400 (EDT) Original-Received: (from zsh@localhost) by giga.cs.rochester.edu (8.9.1b+Sun/Q++) id TAA25686; Wed, 6 Oct 1999 19:24:09 -0400 (EDT) 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: Dan Christensen's message of "Wed, 06 Oct 1999 16:57:27 -0400" Original-Lines: 24 User-Agent: Gnus/5.07009701 (Pterodactyl Gnus v0.97.1) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:25705 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25705 --=-=-= >>>>> "Dan" == Dan Christensen writes: [...] Dan> When I do the same thing with the second article attached below, Dan> everything is fine. Could it have to do with the fact that the Dan> first article is empty? [...] I guess I just fixed it. The patch follows and has been committed. -- Shenghuo ZHU 1999-10-06 Shenghuo ZHU * nnfolder.el (nnfolder-request-move-article): For empty article, search till (point-max). --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=97-106.diff Index: nnfolder.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/nnfolder.el,v retrieving revision 5.18 diff -u -r5.18 nnfolder.el --- nnfolder.el 1999/08/27 13:18:17 5.18 +++ nnfolder.el 1999/10/06 23:21:37 @@ -368,7 +368,8 @@ (goto-char (point-min)) (while (re-search-forward (concat "^" nnfolder-article-marker) - (save-excursion (search-forward "\n\n" nil t) (point)) t) + (save-excursion (and (search-forward "\n\n" nil t) (point))) + t) (delete-region (progn (beginning-of-line) (point)) (progn (forward-line 1) (point)))) (setq result (eval accept-form)) --=-=-=--