From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74569 Path: news.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir and move Date: Wed, 01 Dec 2010 09:13:16 -0500 Message-ID: <87lj49eg3n.fsf@andy.bu.edu> References: <87wrox5jyh.fsf@andy.bu.edu> <87sjzl5jis.fsf@andy.bu.edu> <8739rl5d9d.fsf@andy.bu.edu> <87vd4h3xmh.fsf@andy.bu.edu> <87sjzap2yk.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291212878 20658 80.91.229.12 (1 Dec 2010 14:14:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 14:14:38 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22928@lists.math.uh.edu Wed Dec 01 15:14:34 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNnS5-00081C-Bb for ding-account@gmane.org; Wed, 01 Dec 2010 15:14:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PNnR5-0004Vw-L3; Wed, 01 Dec 2010 08:13:31 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PNnR4-0004Vm-KR for ding@lists.math.uh.edu; Wed, 01 Dec 2010 08:13:30 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PNnR2-0005s8-Of for ding@lists.math.uh.edu; Wed, 01 Dec 2010 08:13:29 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PNnR2-0007mo-00 for ; Wed, 01 Dec 2010 15:13:28 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PNnR1-0007Uj-Q1 for ding@gnus.org; Wed, 01 Dec 2010 15:13:27 +0100 Original-Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Dec 2010 15:13:27 +0100 Original-Received: from cohen by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 01 Dec 2010 15:13:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: rain.gmane.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:1/N7HuKgCuPgM5cMGHwH66rraIY= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74569 Archived-At: >>>>> "Ted" == Ted Zlatanov writes: Ted> Yeah. Although in a move it needs to know the source so it can Ted> delete that from the list of groups for the article. So you'll Ted> end up with stale knowledge in the registry. I can Ted> special-case nnir in the hooks or you can wrap the move in Ted> (let ((gnus-original-source-group-for-move "xyz")) ...) Ted> WDYT? Ted Sorry to revive this old thread. The last time we discussed this I thought that the let wrapping was the way to go, but in retrospect I'm pretty sure I was wrong. Special-casing nnir in the hooks seems better. I changed my mind when trying to incorporate article deletion in nnir. The problem arises when deleting more than one article at a time. Ordinarily all the articles in a summary buffer come from a single group, but this isn't necessarily true in an nnir buffer. gnus-summary-delete-article deletes all the articles in a batch (no problem here since it just calls nnir-request-delete-article) but then goes through the deleted articles one by one to update the registry. So it's not easy to pass the original article group through the let mechanism when different articles come from different groups. WDYT?