From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88221 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.gnus.general Subject: Re: Fixed bug with custom marks in registry Date: Tue, 06 Nov 2018 01:54:15 +0100 Message-ID: <87muqn6n60.fsf@web.de> References: <87efcw1gsn.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1541465559 12310 195.159.176.226 (6 Nov 2018 00:52:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Nov 2018 00:52:39 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: ding@gnus.org To: Eric Abrahamsen Original-X-From: ding-owner+M36431=ding+2Daccount=gmane.org@lists.math.uh.edu Tue Nov 06 01:52:35 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJpba-00030t-Op for ding-account@gmane.org; Tue, 06 Nov 2018 01:52:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.90_1) (envelope-from ) id 1gJpdf-000516-DM for ding-account@gmane.org; Mon, 05 Nov 2018 18:54:39 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gJpdd-000510-TY for ding@lists.math.uh.edu; Mon, 05 Nov 2018 18:54:37 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gJpdb-0005oi-O9 for ding@lists.math.uh.edu; Mon, 05 Nov 2018 18:54:37 -0600 Original-Received: from mout.web.de ([212.227.15.3]) by quimby.gnus.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gJpdZ-0001Il-CP for ding@gnus.org; Tue, 06 Nov 2018 01:54:33 +0100 Original-Received: from drachen.dragon ([94.218.210.177]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MUWCB-1fu9dL3Onz-00RJe3; Tue, 06 Nov 2018 01:54:16 +0100 Original-Received: from drachen.dragon ([94.218.210.177]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MUWCB-1fu9dL3Onz-00RJe3; Tue, 06 Nov 2018 01:54:16 +0100 In-Reply-To: <87efcw1gsn.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 11 Oct 2018 11:26:00 -0700") X-Provags-ID: V03:K1:xPnKJvMzNHF3dW+iMdEFIE9i8DIC3hUCqBc7/C3VbZhbNAAMRIG y9VxdAKTgSbyvJMvdTXOJYbL3EeDoB6JM4GtMxTHfIza9PAULYskA871Thrsqw6U/WrXEDP IV4ggBtozUBHPvPl6WJooJJVzc9nl1gS6u7le3cjWK48x+sOrhjVu/MMbVIqKxvIlkc12gv /JDb8sRm6f6ERIkMyvieQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:GuwEFwWYPyQ=:yoFmZA5ysXtGrQDDAhmOlg 7ReliBtmAiKqGgb6gdNj3yE6UUrT9jXN5qmYCuDRb14O0igXY/OQ8LULF8G2+LFQODcpGGCbo NxtfkzWuliHyiLY5URtbLpa/fRQwVdnOmb7WiyRIl75doZnxN508dNL/3QhON0nin3n1tQOhx Gkzzsj0r+dY5AoMf9gaNfLlQUqjec9fOp/j7JYDi/fsrNsOxPBAPq7/aGAXp59ZzAyW8QnxSg yknPxpw9mAtxC6yEVfeG0z9/sEWRz2XbZ4hbOh1v79sUsr7b2T4KNFqS2rO91AuihqvafUUjY IhyCI8Pgehwz/MVM240pdS1aADiRi0spI4dTCbZxLwYvmZpdXvh7kvbLfcFONLzJm/72JfzsE 1HMM+cEwxSf9MTaoNAn044txEbzuKd5KTWfbvuywjZtW1shVdoUXdHGuQhOTyK3xbWKXkpYp+ 2vfoqqMABlQ30wlui5n33XMH4gCnkV8EIvW6gPMS5L3wTrOpUjEDCT+F/UZ4D30KIBuai1poQ YtRfAEfMZ7nGE4N7xJZ2bKlRcnUllRKH/eznaa0W6fnMDJ5xsvluJ5Uo6OT0CBiglslrmsD5X 5PWyNvd2RfQel9+EHIDxcG1ucwiBLaWhjykXi3xgxpvQX/SiaZs7riq3vjPGWfnZdq5gpYdpM kjaku/OwS60QJs2bUrfiAdlhupQynKB7EA1FFqoAYD/Y1ULneS+RcpBniCAdiBPMlYlHxN9P8 96P2nTrD2gVna2f8/YhwTmCrij2KhOk7lshwlAIyi1dTHoeYgeipkoxm9qUQFMfGhDrk3uSX X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88221 Archived-At: Eric Abrahamsen writes: > Obviously not too many people were using this feature, or else we would > have heard about it sooner, but there was a bug in the Gnus registry > where entries with custom marks attached to them could still be pruned > (deleted), even though they're not supposed to be. > > That's fixed now, and the fix will go into Emacs 26.2 and 27, so if > you'd run into this before and decided not to use custom marks in the > registry, watch for updates. I've a question about the setup. I want Gnus to always auto-show all registry-marked articles in the summary (maybe we should have an option for that?). From the docs I derived that something like this would do: #+begin_src emacs-lisp (add-function :around gnus-alter-articles-to-read-function (defun my-gnus-auto-show-registry-marked (f group-name article-list) (cl-union (delq nil (mapcar (lambda (id) (cdr (gnus-request-head id group-name))) (cl-loop for key being the hash-keys of (oref gnus-registry-db data) using (hash-values v) when (cdr (assoc 'mark v)) collect key))) (funcall f group-name article-list)))) #+end_src That works but has the side effect that when I add or remove a registry mark - e.g. simply M M i or M M I, after that the article line in the summary is duplicated - one line has the mark, the other doesn't. Apart from that, the lines are identical. When I restart Gnus, I get one article line again as expected. Any hints how to do it better? (FWIW, I do not remember that this happened to me in the past, but I'm not sure) Thanks, Michael.