From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80061 Path: news.gmane.org!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus registry upgrade didn't import old registry Date: Mon, 26 Sep 2011 22:35:25 -0400 Message-ID: <87sjnizp8y.fsf@uwo.ca> References: <87ehzkh4j2.fsf@uwo.ca> <87litbxd7x.fsf@lifelogs.com> <87zkhr11n1.fsf@uwo.ca> <87r533111i.fsf@uwo.ca> <87zkhruflt.fsf@lifelogs.com> <87fwjizqbc.fsf@uwo.ca> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317090954 26039 80.91.229.12 (27 Sep 2011 02:35:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2011 02:35:54 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28355@lists.math.uh.edu Tue Sep 27 04:35:49 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R8NWP-0004dT-Gp for ding-account@gmane.org; Tue, 27 Sep 2011 04:35:49 +0200 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 1R8NWG-0007Gp-NF; Mon, 26 Sep 2011 21:35:40 -0500 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 1R8NWF-0007Gb-Do for ding@lists.math.uh.edu; Mon, 26 Sep 2011 21:35:39 -0500 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 1R8NWE-0004lS-K8 for ding@lists.math.uh.edu; Mon, 26 Sep 2011 21:35:39 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R8NWD-0007wN-8B for ding@gnus.org; Tue, 27 Sep 2011 04:35:37 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R8NWC-0004aW-UY for ding@gnus.org; Tue, 27 Sep 2011 04:35:36 +0200 Original-Received: from cpe0023bee5dd21-cm0023bee5dd1e.cpe.net.cable.rogers.com ([99.249.62.111]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Sep 2011 04:35:36 +0200 Original-Received: from jdc by cpe0023bee5dd21-cm0023bee5dd1e.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Sep 2011 04:35:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 41 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpe0023bee5dd21-cm0023bee5dd1e.cpe.net.cable.rogers.com User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:ITSpP/2xp3gjczkosMUqf5BgjjE= X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80061 Archived-At: Dan Christensen writes: >> I have max-entries at 100000, could you try that? > > I did > > (setq gnus-registry-max-entries 100000) > > and still I get the error when trying to import my old .eld file > with 10000 entries. And still > > (registry-size gnus-registry-db) > 10000 I restarted emacs with the increased value in my .gnus.el, and then it worked. But I fear this is just delaying the problem for a decade or two. Here's my guess at the bug: In gnus-registry.el: (defun gnus-registry-fixup-registry (db) (when db (let ((old (oref db :tracked))) ... (oset db :max-hard (or gnus-registry-max-entries most-positive-fixnum)) ... (oset db :max-soft (or gnus-registry-max-pruned-entries most-positive-fixnum)) If the user sets gnus-registry-max-entries but not gnus-registry-max-pruned-entries, then the soft limit might be (much) higher than the hard limit. Maybe the last line should be changed to replace `most-positive-fixnum' with something like `(oget db :max-hard)' (just guessing at how to read a stored value). Dan