From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82739 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: code query Date: Wed, 26 Dec 2012 10:59:49 +0800 Message-ID: <87d2xx34d6.fsf@ericabrahamsen.net> References: <87bodx5gd0.fsf@ericabrahamsen.net> <87ehieuzcy.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356490579 1804 80.91.229.3 (26 Dec 2012 02:56:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Dec 2012 02:56:19 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31005@lists.math.uh.edu Wed Dec 26 03:56:35 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TnhAU-0002dT-CL for ding-account@gmane.org; Wed, 26 Dec 2012 03:56:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Tnh9e-0002S7-Ft; Tue, 25 Dec 2012 20:55:38 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Tnh9c-0002Rt-Nt for ding@lists.math.uh.edu; Tue, 25 Dec 2012 20:55:36 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Tnh9X-00012v-Rq for ding@lists.math.uh.edu; Tue, 25 Dec 2012 20:55:35 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Tnh9V-0003KN-Pz for ding@gnus.org; Wed, 26 Dec 2012 03:55:29 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Tnh9i-000246-EM for ding@gnus.org; Wed, 26 Dec 2012 03:55:42 +0100 Original-Received: from 114.250.128.45 ([114.250.128.45]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Dec 2012 03:55:42 +0100 Original-Received: from eric by 114.250.128.45 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Dec 2012 03:55:42 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.250.128.45 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:++EVErANogWvxNb8gO11hKt+d9s= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82739 Archived-At: Lars Ingebrigtsen writes: > Eric Abrahamsen writes: > >> The problem with the below is that it seems to create one "pseudo article" >> for each block of consecutive identical messages -- the pseudo article >> is a new copy of that message, but can't be opened or displayed >> properly, nor deleted. They're also persistent, so the more I run my >> function the more "duplicate" messages I get! > > I don't quite understand that problem, but I'm surprised the code works > at all. :-) Me too! >> (my-gnus-mark-duplicates gnus-newsgroup-data) > > [...] > >> (let ((data (sort data (lambda (one two) > > This `sort' is destructive, so you're altering the `gnus-newsgroup-data' > list (most likely truncating it). Put a `copy-sequence' in there > somewhere. Thanks, I'll give that a shot.