From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: bug#38136: [PATCH] Make gnus-group-get-new-news a non blocking thread Date: Fri, 22 Nov 2019 09:30:49 +0100 Message-ID: <87ftigia86.fsf@gmx.de> References: <87imnu1knq.fsf@dick> <87sgmrouxk.fsf@gnus.org> <8736emaxw6.fsf@ericabrahamsen.net> <87sgmlsgxx.fsf@gnus.org> <87zhgsncno.fsf@ericabrahamsen.net> <87lfscesen.fsf@dick> <871ru4n58t.fsf@ericabrahamsen.net> <87ftijdcay.fsf@ericabrahamsen.net> <874kyykd8b.fsf@gnus.org> <87sgmiyd6m.fsf@gmx.de> <87pnhmwvmz.fsf@gmx.de> <87y2wavf1p.fsf@gmx.de> <875zjd5tv7.fsf@gnus.org> <87zhgpjt1m.fsf@gmx.de> <87d0dl2xgr.fsf@gnus.org> <87d0dluvp3.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="208946"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eric Abrahamsen , Lars Ingebrigtsen , dick.r.chiang@gmail.com, emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 22 09:31:31 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iY4Lj-000sEk-Nd for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2019 09:31:31 +0100 Original-Received: from localhost ([::1]:48528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iY4Li-0007yY-4x for ged-emacs-devel@m.gmane.org; Fri, 22 Nov 2019 03:31:30 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45928) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iY4LJ-0007yF-4i for emacs-devel@gnu.org; Fri, 22 Nov 2019 03:31:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iY4LH-000745-Su for emacs-devel@gnu.org; Fri, 22 Nov 2019 03:31:04 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:33189) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iY4LH-00073X-FK for emacs-devel@gnu.org; Fri, 22 Nov 2019 03:31:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1574411451; bh=XvuM2Ae4Wyxhpx0TbqFzogszb6RjCsrMqrZK9+xdN1I=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=h22lx1TMDlkyhgJllOxtWK4WzkkkfuhFcUfGIC5y9RvAMS3v/7a0SZdJHaCw+pz+t 8GiyvnS+mWHAOgU0UScYsd/YNZJbrQEfPz+Gn/+9PH+PGM/eQ/JJinqqGVNwRZauXV FPUGf5syF63+Vz9RL/SV05uydj/MJ6gDljjIyZ+E= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from detlef.gmx.de ([212.86.52.151]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MGhyS-1ibwD317H0-00DsSI; Fri, 22 Nov 2019 09:30:51 +0100 In-Reply-To: (Robert Pluim's message of "Thu, 21 Nov 2019 17:39:36 +0100") X-Provags-ID: V03:K1:Po2LdwuhWLkpBk6VsCGisxfyeF1N1GO5ksSnKK8L7BbzWzKlVC9 z4lfd8+Noh2xBCGP/C+45Dl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.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:242610 Archived-At: Robert Pluim writes: > Michael> Robert, your command in preparation might change slightly > Michael> the scope. Instead of showing all messages for the tagged > Michael> bugs, it might show all messages for the bugs in the > Michael> current Debbugs buffer. This is more general. > > Hey, when did I sign up for this? :-) I could read your mind, you know? :-) > +(defvar debbugs-gnu-read-bugs-limit 10) I would make it a defcustom. Maybe we need also another defconst, which is the upper limit this user option can be. Something like 50, or 100. > +(defun debbugs-gnu-read-current-bugs-with-gnus () > + "Create a Gnus group of the messages from the currently shown bugs." > + (interactive) > + (unless (eq debbugs-gnu-mail-backend 'gnus) > + (error "This function only works with Gnus.")) > + (save-excursion > + (let ((mbox-url (replace-regexp-in-string > + ";mboxstat=yes" "" > + (alist-get 'emacs gnus-bug-group-download-format-alist) > + nil t)) > + ids) > + (goto-char (point-min)) > + (dotimes (i debbugs-gnu-read-bugs-limit) > + (push (cdr (assq 'id (tabulated-list-get-id))) ids) > + (forward-line 1)) > + (setq ids (delete nil (nreverse ids))) > + (gnus-read-ephemeral-bug-group > + ids > + mbox-url) > + (debbugs-gnu-summary-mode 1)))) That works so far for me, thanks. What I'm missing is handling of merged bugs. That is, if a bug in a line shows also merged bug numbers. Create a bug list via (debbugs-gnu-bugs 34322) . And then compare the Gnus buffers, created by either (debbugs-gnu-select-report) or by (debbugs-gnu-read-current-bugs-with-gnus) . We would need also a command debbugs-gnu-read-current-bugs and key bindings for this. Just to be prepared for a possible debbugs-gnu-read-current-bugs-with-rmail. If this is too much for your limited time, commit what you have, and I will adapt the final bits then. > (defun debbugs-read-tagged-bugs-with-gnus () > "Create an ephemeral Gnus group of locally tagged Emacs bugs." I believe, this one is not needed anymore. A list with locally tagged bugs is created now easily via debbugs-gnu-tagged. And there you call debbugs-gnu-read-current-bugs. Thanks, and best regards, Michael.