From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82711 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: code query Date: Tue, 25 Dec 2012 12:48:13 +0100 Message-ID: <87ehieuzcy.fsf@gnus.org> References: <87bodx5gd0.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356436122 9531 80.91.229.3 (25 Dec 2012 11:48:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Dec 2012 11:48:42 +0000 (UTC) Cc: ding@gnus.org To: Eric Abrahamsen Original-X-From: ding-owner+M30977@lists.math.uh.edu Tue Dec 25 12:48:54 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 1TnT09-0001Cb-0G for ding-account@gmane.org; Tue, 25 Dec 2012 12:48:53 +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 1TnSzp-0006IC-JT; Tue, 25 Dec 2012 05:48:33 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1TnSzo-0006Hu-6v for ding@lists.math.uh.edu; Tue, 25 Dec 2012 05:48:32 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1TnSzj-0006t2-FW for ding@lists.math.uh.edu; Tue, 25 Dec 2012 05:48:32 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TnSzi-0007Ft-0E for ding@gnus.org; Tue, 25 Dec 2012 12:48:26 +0100 Original-Received: from ip-90-20-179-93.dialup.ice.net ([93.179.20.90] helo=rusty) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TnSzX-0007KP-Jg; Tue, 25 Dec 2012 12:48:16 +0100 X-Now-Playing: Winston Tong's _Theoretically Chinese_ In-Reply-To: <87bodx5gd0.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 14 Dec 2012 13:53:47 +0800") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1TnSzX-0007KP-Jg MailScanner-NULL-Check: 1357040896.5675@TAUsSoRdl+pNeBmneFs4mQ X-Spam-Status: No X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82711 Archived-At: 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. :-) > (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. -- (domestic pets only, the antidote for overdose, milk.) http://lars.ingebrigtsen.no * Lars Magne Ingebrigtsen