From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#33005: 27.0.50; Data loss with Gnus registry Date: Wed, 10 Oct 2018 09:08:33 -0700 Message-ID: <87efcxwzr2.fsf@ericabrahamsen.net> References: <871s8yvsrq.fsf@web.de> <87in29x33z.fsf@ericabrahamsen.net> <87r2gxygox.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539187737 18909 195.159.176.226 (10 Oct 2018 16:08:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2018 16:08:57 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 33005@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 10 18:08:53 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAH2a-0004mo-7U for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Oct 2018 18:08:52 +0200 Original-Received: from localhost ([::1]:58109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAH4g-00051A-7j for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Oct 2018 12:11:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAH2r-000408-Kv for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 12:09:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAH2n-0006CD-IC for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 12:09:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39479) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAH2k-0006AO-DT for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 12:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gAH2k-000339-4l for bug-gnu-emacs@gnu.org; Wed, 10 Oct 2018 12:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Oct 2018 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33005 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33005-submit@debbugs.gnu.org id=B33005.153918771811690 (code B ref 33005); Wed, 10 Oct 2018 16:09:02 +0000 Original-Received: (at 33005) by debbugs.gnu.org; 10 Oct 2018 16:08:38 +0000 Original-Received: from localhost ([127.0.0.1]:43737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAH2L-00032U-N9 for submit@debbugs.gnu.org; Wed, 10 Oct 2018 12:08:37 -0400 Original-Received: from mail.ericabrahamsen.net ([50.56.99.223]:51871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAH2K-00032M-5L for 33005@debbugs.gnu.org; Wed, 10 Oct 2018 12:08:36 -0400 Original-Received: from localhost (97-113-224-119.tukw.qwest.net [97.113.224.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 9CDF63F089; Wed, 10 Oct 2018 16:08:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ericabrahamsen.net; s=mail; t=1539187715; bh=k5sJILI5bclKGIdKJ4UYtAp4Z9rI9FGUwarowbEuZdw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=sua0KSZYTGxyU+pLP2Lz0V89LdFhYSXyJT/JwIq7JB/m4v+zhEIoxlVySCU3z17fe n4T/gznB9mSEzq13Px5FksPHsjwNcLBZHEg6JptIWeCT9ztrPZKpv3hbRztIDu4ulh yB3wt7pvA5UvPGmzXIdD3fYUb6wgd2+6TFjpdg0M= In-Reply-To: <87r2gxygox.fsf@web.de> (Michael Heerdegen's message of "Wed, 10 Oct 2018 17:17:18 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151075 Archived-At: Michael Heerdegen writes: > Eric Abrahamsen writes: > >> There were some bugs with registry pruning and precious entries, but >> we fixed those quite a while ago. If you're running Emacs master, you >> should have the Gnus that incorporates those fixes. > > Yes, I think so, too. I have a normal recent Emacs master build. I > typically rebuild daily. > >> On the other hand, what you say above about the docstring makes me >> wonder, as in Gnus master it doesn't say it would default to >> (marks). You're not loading an external Gnus installation, are you? > > No, I'm not. In emacs master branch, "doc/misc/gnus.texi" says > > "default this is just @code{(marks)} so the custom registry marks are" > > in line 26197. Not for you? Sorry, I was looking at the option docstring, not the manual. I'll fix that typo. But that was my only easy solution, unfortunately. You could examine the results of: (registry-collect-prune-candidates gnus-registry-db (registry-size gnus-registry-db) nil) To verify that it is returning candidates that should not be returned. Unfortunately that function uses `cl-loop', which makes edebugging not very helpful. Shameless plug: I'm about to propose a new package called "gnus-mock", which sets up a temporary/trashable/reproducible Gnus installation that you can use for testing feature and hunting bugs, without endangering your own Gnus data. That would be useful in this case. I might have it done today. Eric