From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Gnus: Thread notes? Date: Wed, 13 Dec 2017 13:42:32 +0100 Message-ID: <87o9n27q9z.fsf@web.de> References: <87o9pc359b.fsf@web.de> <874lr3pz2q.fsf@ericabrahamsen.net> <87o9p6zy4f.fsf@web.de> <878tgavoio.fsf@ericabrahamsen.net> <87fu93ulhz.fsf@web.de> <87o9nq50hi.fsf@ericabrahamsen.net> <877eudsj2x.fsf@web.de> <874lpfjgb2.fsf@ericabrahamsen.net> <87indv6iup.fsf@web.de> <87wp2agxo5.fsf@ericabrahamsen.net> <87mv2om8tj.fsf@web.de> <874lovrhl1.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513168995 11397 195.159.176.226 (13 Dec 2017 12:43:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2017 12:43:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 13 13:43:11 2017 Return-path: Envelope-to: geh-help-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 1eP6NS-0002i0-CR for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Dec 2017 13:43:10 +0100 Original-Received: from localhost ([::1]:35157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP6NZ-0004O0-L6 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Dec 2017 07:43:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eP6N9-0004Nt-Hy for help-gnu-emacs@gnu.org; Wed, 13 Dec 2017 07:42:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eP6N5-0007Re-Hg for help-gnu-emacs@gnu.org; Wed, 13 Dec 2017 07:42:51 -0500 Original-Received: from mout.web.de ([212.227.15.14]:54096) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eP6N5-0007PH-73 for help-gnu-emacs@gnu.org; Wed, 13 Dec 2017 07:42:47 -0500 Original-Received: from drachen.dragon ([92.74.165.17]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lvk56-1f6CYQ0YA8-017QtT; Wed, 13 Dec 2017 13:42:34 +0100 In-Reply-To: <874lovrhl1.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Tue, 12 Dec 2017 09:17:46 -0800") X-Provags-ID: V03:K0:VA/MLQAxCEqQtsvzRQqVluHYapuyvYrxP0HrIjDvMKBKeN5/eWb AM6OUQfxdczy6gSs0DGaY7Af0ArJk7EsYeohg1BLiEEYPyHlJxqkHf5mNtCdQOKIycNp/xN NbrSRVmWrlzktr3tYEnAzrEA8l+C+fbNpsA+6yh0ZmAgRwqI+H7sjp3fbsTn1/5dAEr6Gdl E33znGNgN94KydMSExxjg== X-UI-Out-Filterresults: notjunk:1;V01:K0:CaE9ejFbcMM=:lL0/uLG8Xz6E68MYr4T38/ guAqErECLqYqz2UoGpvwJC2FIEVjAi5RKV2fUfZEKCBepDUjkiXnk2k/EroG7v0YOwiK0E28N R8XU4uSMVdLCPT5/TEQ0/fJ+B2HN4/EvzcwqwwkJj6/gcgoryTaVhX6//SeV3LHhJLijMOu6Y cgEbPpbrDmMe+Kc1zvnF5NWjA+Z3toOpsUOWoZjgkikaDt1y1m+w2q3JsCTOrYUGkVKjWuJvt D67Bx7/NZeshOwF0NDLN0LHMNkEVRkNV1eILBqQG2pX88RdUrJzzCc8XoIkw3xmBPSawsEgaB W4xaWG7V1tHMunTAheUHYOFKWd4qt5iFfUq10IHmxaeSlr+Aq0fBHD2CnRM+UAZR2Cf9n4VdG nPBFyowSkdxU3h0WhPjXC1CZOQZ7jHNliwnpdyuBK6p2dEgD07kPegToXu8l4a8HdtB3u27XT jFnIUXPOfN5hcC9uRz968/KQW2lHA+f0mrf4VP8TBBcooJAqgd2lzE1TlgcGNsTTEbWEIQywg AvucDHUz1utWH14EGjTLc/rEci37OFuX92h/xwoR28ixkCx3fXjIG5H44/Rfo10pjQIazIcOB ynLiiiH5V4I8gyLlYFezzXOcD03IXZjG+mddWWJZVgpNP0VcxJW+ZHwsSHV6dJ3UnS9zB5kNl rP3z5ugEzMuKIGCfgJmE7aSl2Ruj8VCnQpCmObt9geCK5JeWDK0cyVNKlUbbvAa9AV6iC1Y43 CALNoeKAWtdW9S4L/o6PcDbwJ6y6O9Ek7MsLGnSQSr88gH7YFfYHBr0D6Q8RloJ6ecNqY3qi X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115341 Archived-At: Eric Abrahamsen writes: > > `gnus-alter-articles-to-read-function' [...] > > Interesting! I'd never looked at that option before. I'd still like to > keep the manual command, for those who don't want this to happen > automatically, but yes, it wouldn't be hard to refactor. Yes, I agree we should keep it. > It would also require some sort of internal caching first -- right now > it's too slow to have it running each time you enter a group. In my tests, I didn't see a delay. It probably depends on how much you used the registry. > > (1) I think `gnus-alter-articles-to-read-function' should better > > default to a function (lambda (_group-name article-list) > > article-list), not to nil, so that one could use `add-function' on > > it. > > Or the code could coerce the value to a list, and map all the functions. > Maybe that would be more intuitive than `add-function'? But for a list, you can't control how the functions are combined. It is always the same, e.g., all the return values are appended. Then it is impossible to use the thing for limiting shown articles. That's quite a limitation. With `add-function', there would not be such a restriction - and one could use priorities (aka advice depth) to control the order of processing. But I know some people refrain from using `add-function'. We could support both mechanisms at the same time: If `gnus-alter-articles-to-read-function' is `functionp', call it as a function, else, treat it as a list (of functions). Michael.