From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87441 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus nnmaildir and notmuch Date: Fri, 24 Mar 2017 11:47:13 -0700 Message-ID: <8760iyfr66.fsf@ericabrahamsen.net> References: <87poh8nwxj.fsf@ecocode.net> <87shm3zeyf.fsf@hanan.ust.hk> <871stnrtn8.fsf@ecocode.net> <87mvcbqe18.fsf@ecocode.net> <87bmsrqdrl.fsf@ecocode.net> <87lgru7k15.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1490381302 10481 195.159.176.226 (24 Mar 2017 18:48:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Mar 2017 18:48:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m35662@lists.math.uh.edu Fri Mar 24 19:48:18 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048035.atla03.us.yomura.com ([107.189.48.35]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crUFy-00020M-DQ for ding-account@gmane.org; Fri, 24 Mar 2017 19:48:14 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048035.atla03.us.yomura.com (Halon) with ESMTPS id 721c4f36-10c2-11e7-b087-b499baabecb2; Fri, 24 Mar 2017 18:48:18 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1crUFS-00020J-2M; Fri, 24 Mar 2017 13:47:42 -0500 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.87) (envelope-from ) id 1crUFP-0001zm-FO for ding@lists.math.uh.edu; Fri, 24 Mar 2017 13:47:39 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1crUFO-0007Ee-G7 for ding@lists.math.uh.edu; Fri, 24 Mar 2017 13:47:39 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1crUFN-0004Iq-3P for ding@gnus.org; Fri, 24 Mar 2017 19:47:37 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1crUFG-0006Kf-0I for ding@gnus.org; Fri, 24 Mar 2017 19:47:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:FjjZsUlmkm8WrsFVA3G+TRQx4fU= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87441 Archived-At: Eric Abrahamsen writes: > Erik Colson writes: > >> Erik Colson writes: >> >>> So this is more of a enhancement request for nnir. >> >> And I should definitely RTFM >> >> "The nnir group made in this way is an ephemeral group, and some changes >> are not permanent: aside from reading, moving, and deleting, you can’t >> act on the original article. But there is an alternative: you can warp >> (i.e., jump) to the original group for the article on the current line >> with A W, aka gnus-warp-to-article. Even better, the function >> gnus-summary-refer-thread, bound by default in summary buffers to A T, >> will first warp to the original group before it works its magic and >> includes all the articles in the thread. From here you can read, move >> and delete articles, but also copy them, alter article marks, >> whatever. Go nuts." >> >> It kinda makes the notmuch search engine loose its purpose, but at least >> it is documented :) > > No, I think this is supposed to work -- at any rate, there is code in > nnir for handling this. I'll try to take a look later. Okay, I looked at it, and the basic problem is that marks from ephemeral groups are explicitly not propagated. The practical definition of an ephemeral group is, "does it have a quit-config parameter", ie, will it be made to disappear somehow when the user leaves the summary. All `gnus-group-ephemeral-p' does is checks if a quit-config parameter is present. `gnus-summary-exit' is responsible for making marks permanent. It checks for a quit-config parameter, and if it's present prevents a whole lot of stuff from happening -- including making the marks permanent. I opened an nnir group and manually killed the quit-config parameter, and can confirm marks were propagated when I exited the group. So that's where we are. nnir groups are supposed to be ephemeral, but that means marks won't be propagated. So long as `gnus-group-make-nnir-group' uses `gnus-group-read-ephemeral-group', we can't avoid this, as the latter function unconditionally installs a quit-config parameter. Andy, I wonder if any of your local changes affect this behavior? Thanks, Eric