From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#38011: 27.0.50; [PATCH] WIP on allowing Gnus backends to return header data directly Date: Fri, 01 Nov 2019 15:12:20 +0100 Message-ID: <87a79f3cu3.fsf@gnus.org> References: <87y2x0a9bl.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="183247"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 38011@debbugs.gnu.org To: Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 01 15:13:25 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1iQXg4-000lXu-VL for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 15:13:25 +0100 Original-Received: from localhost ([::1]:39560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQXg3-0003uK-Qj for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Nov 2019 10:13:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35072) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQXfj-0003tx-Qc for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 10:13:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQXfi-0004zd-Nv for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 10:13:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47921) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQXfi-0004zQ-KN for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 10:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQXfi-00042k-Ek for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 10:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2019 14:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38011 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157261755115493 (code B ref -1); Fri, 01 Nov 2019 14:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2019 14:12:31 +0000 Original-Received: from localhost ([127.0.0.1]:56742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQXfD-00041p-3E for submit@debbugs.gnu.org; Fri, 01 Nov 2019 10:12:31 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:60442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQXfA-00041h-AW for submit@debbugs.gnu.org; Fri, 01 Nov 2019 10:12:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35005) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQXf9-0003qC-1H for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 10:12:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQXf7-0003xO-VS for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 10:12:26 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:59254) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQXf7-0003u1-Ov for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2019 10:12:25 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQXf3-0006Zo-5g; Fri, 01 Nov 2019 15:12:23 +0100 In-Reply-To: <87y2x0a9bl.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 31 Oct 2019 14:34:06 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] 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: 209.51.188.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:170615 Archived-At: Eric Abrahamsen writes: > This patch provides the possibility for backends to return their own > headers (ie a list of vectors), though it doesn't actually change any of > the backends to do that -- that will be another patch. Great! > I have one question at this stage: the 'nov or 'headers value gets > stored into the `gnus-headers-retrieved-by' variable. That variable is > later checked in a couple of places like so: > > (when (and gnus-fetch-old-headers > (eq gnus-headers-retrieved-by 'nov)) > (if (eq gnus-fetch-old-headers 'invisible) > (gnus-build-all-threads) > (gnus-build-old-threads))) > > If the variable is 'headers, the `gnus-build-*-threads' functions don't > get called at all. > > What's the difference between 'nov and 'headers, and why can we build > threads in one case and not the other? If backends were to return their > own headers, what value should they return? It's not about threading per se, but about displaying information about already-read articles (or more precisely -- about articles not in the set that was requested). Threads are build no matter how the backend delivers the data. If nn-*retrieve-headers supports NOV fetching, then certain Gnus variables about filling in threads with "old" articles is switched on, because fetching extra NOV headers is fast (you just say "fetch 100-150" instead of "fetch 100-110,120-130,150"). With the backends that fetch head by head, this is slow, so it's not done. It's basically a distinction between NNTP and almost all the other backends. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no